redpanda-data / redpanda-data/console
Bug: wrong subject displayed in case of identical schema
Nobody has claimed this yet.
- 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.
I know this depends on the naming strategy but I would expect the UI to follow the TopicNameStrategy if possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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