Skip to content

Fix schema registry overview status fallback#2431

Open
peter941221 wants to merge 1 commit intoredpanda-data:masterfrom
peter941221:issue/redpanda-2422
Open

Fix schema registry overview status fallback#2431
peter941221 wants to merge 1 commit intoredpanda-data:masterfrom
peter941221:issue/redpanda-2422

Conversation

@peter941221
Copy link
Copy Markdown

Summary

Fixes #2422.

The Overview page currently conflates three different Schema Registry states into the same null value:

  • Schema Registry is not configured
  • The overview fetch was skipped
  • The overview fetch failed

That lets request failures or skipped requests render as Not configured, even when Schema Registry is configured and working.

This patch keeps the change frontend-only and narrows the Not configured fallback so it is only shown when the backend explicitly reports feature-not-configured semantics.

What changed

  • add schemaRegistryError to the overview state
  • request schema registry info unless permissions are explicitly resolved to canViewSchemas === false
  • treat Code.Unimplemented as Not configured
  • keep other schema-registry errors as errors instead of collapsing them into null
  • show Unavailable in the Overview card when the schema-registry overview request fails

This intentionally does not change the existing UX for users whose schema permissions are explicitly denied.

Testing

  • vitest --config=vitest.config.unit.mts src/state/backend-api.test.ts
  • vitest --config=vitest.config.integration.mts src/components/pages/overview/overview.test.tsx

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.

[Bug] Schema Registry Overview card shows "Not configured" intermittently despite SR being properly configured

1 participant