redpanda-data / redpanda-data/console

Bug: wrong subject displayed in case of identical schema

Open
#2,221 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

frontend ui/ux
Dominant language
TypeScript
Stars
4.3k
Forks
432
Avg merge
3d 6h
Merged PRs (30d)
40

Description

I've 2 topics with the exact same schema. The schema registry shows 2 distinct subjects (one per topic value). But since the schema are the same, the registry (in my case redpanda) only uses one id for both.

The API returns the 2 subjects as expected

$ curl http://localhost:8081/schemas/ids/14/versions | jq .
[
  {
    "subject": "topic-v3-value",
    "version": 3
  },
  {
    "subject": "topic-v2-value",
    "version": 3
  }
]

But when displaying a topic, the UI only take the first one in consideration and doesn't check that the subject concerns a topic. In the screenshot below, the topic topic-v2 displays the subject topic-v3-value. And when I click on it, of course I go to the wrong subject.

Image

I know this depends on the naming strategy but I would expect the UI to follow the TopicNameStrategy if possible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the topic UI that displays schema subjects and compare its selection with the Schema Registry /schemas/ids/{id}/versions response shown in the issue. Ensure the displayed subject and link correspond to the current topic, including when identical schemas share one ID; verify the topic-v2 and topic-v3 case described in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.