Skip to content

Conversation

@jvorcak
Copy link
Collaborator

@jvorcak jvorcak commented Mar 13, 2025

Screenshot 2025-03-13 at 10 18 09
Screenshot 2025-03-13 at 10 24 13

@jvorcak jvorcak changed the title Bettern ACL error message in the overview tab Better ACL error message in the overview tab Mar 13, 2025
@jvorcak jvorcak force-pushed the fix/bettter-acl-error-message-in-overview branch from 645d1a8 to 8993d9b Compare March 13, 2025 09:30
Comment on lines +324 to +326
const aclCount = overview.kafkaAuthorizerInfo
? overview.kafkaAuthorizerInfo.aclCount
: (overview.kafkaAuthorizerError?.message ?? 'Authorizer not configured');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should work with the error codes we return in connectrpc responses. Possibly we should tackle this as an initiative but these error codes have been introduced so that we have more control over how we can present errors in the UI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm working on a new way of data fetching right now, so I'll take this into consideration.

Copy link
Contributor

@malinskibeniamin malinskibeniamin Mar 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvorcak you can check how we render toasts and how queries/mutations in custom hooks handle errors, you can also experiment with ConnectError.from()

@weeco weeco self-requested a review April 11, 2025 10:29
@jvorcak jvorcak merged commit 2867373 into master Apr 11, 2025
8 checks passed
@jvorcak jvorcak deleted the fix/bettter-acl-error-message-in-overview branch April 11, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants