console icon indicating copy to clipboard operation
console copied to clipboard

Referenced schema not shown after a click on its link

Open Petkomat opened this issue 1 year ago • 5 comments

When I go to Schema Registry subpage and choose a schema, e.g.,

{
    "type": "record",
    "name": "car",
    "fields": [
       ...,
        {
            "name": "owner",
            "type": "io.example.Human"
        }
    ]
}

I am viewing it at http://localhost:6088/schema-registry/subjects/io.example.Car?version=latest and correctly see the referenced schema io.example.Human in the References section. However, if I click on the link that is supposed to take me to io.example.Human, nothing happens, unless I change the version in

http://localhost:6088/schema-registry/subjects/io.example.Human?version=1

to

http://localhost:6088/schema-registry/subjects/io.example.Human?version=latest.

Human is explicitly defined to have version 1.

Petkomat avatar Aug 19 '24 11:08 Petkomat

Thanks for the report @Petkomat , what Console version are you using?

weeco avatar Aug 19 '24 12:08 weeco

I am using docker image redpandadata/console:latest (image id: e592ab596862)

Petkomat avatar Aug 19 '24 12:08 Petkomat

Does this resolve to v2.7.1 which is the actual latest version? I do not recommend using latest due to local image caching. I couldn't find the image id

weeco avatar Aug 19 '24 12:08 weeco

Now, it behaves interestingly. Our schemas have more references and I noticed the following:

  1. When I choose any reference A and click on it at least once, nothing happens (except for the url change in the browser, after the first click).
  2. No matter how many clicks (1 or more) were performed on the reference A, when I click on any other reference B, I am taken to the reference B immediately.
  3. Independently of 2, if click(s) on A are followed by the click on the refresh button (next to the schema name and auto refresh button), the page is refreshed and shows reference A.

Petkomat avatar Aug 19 '24 13:08 Petkomat

Could you share a recording? Ideally show the network tab and check the console for error logs as well.

weeco avatar Aug 19 '24 14:08 weeco