provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.9k stars 1.2k forks source link

Schema registry : Schema references #1713

Open David-hod opened 2 years ago

David-hod commented 2 years ago

One of the main features of confluent schema registry is to reference a schema from other topic. schema registry documentation we want to use this feature to manage multiple events on this topic. We can view it on the the kafka ui today (we cannot see the references ), but we cannot create a 'subject' with references which makes us use the cli instead.

This feature is not so hard to implement since we just need to add the references section on the request to schema registry.


POST /subjects/test/versions HTTP/1.1
Host: schemaregistry.example.com
Accept: application/vnd.schemaregistry.v1+json, application/vnd.schemaregistry+json, application/json

{
  "schema":
    "{
       \"type\": \"record\",
       \"name\": \"test\",
       \"fields\":
         [
           {
             \"type\": \"string\",
             \"name\": \"field1\"
           },
           {
             \"type\": \"com.acme.Referenced\",
             \"name\": \"int\"
           }
          ]
     }",
  "schemaType": "AVRO",
  "references": [
    {
       "name": "com.acme.Referenced",
       "subject":  "childSubject",
       "version": 1
    }
  ]
}
Haarolean commented 2 years ago

Hey, thanks for the suggestion. We'll consider implementing this in the future release.

David-hod commented 2 years ago

@Haarolean do you want me to try to create a pull request for it ?

Thanks David

Haarolean commented 2 years ago

@David-hod would be really cool!

David-hod commented 2 years ago

@Haarolean does pull request is by fork or should i have permissions to the repo

Haarolean commented 2 years ago

@David-hod you have to fork the repo

David-hod commented 2 years ago

@Haarolean intellij checkstyle plugin does not work with the checkstyle file you use on this repo, since it is old. It is not easy to do checkstyle manually without intellij. Can you take care for it ?

Haarolean commented 2 years ago

@David-hod

what is old exactly? It should work fine via checkstyle plugin for IDEA (but you have to adjust imports settings manually, these are not affected by the import for some reason).

paulolimarb commented 2 years ago

Hi

Is it possible to know when this feature will be available?

Thank you very much

Haarolean commented 2 years ago

@David-hod hey, any luck?

David-hod commented 2 years ago

@Haarolean i had great luck when doing the backend. Was so close to finish, than my laptop drank lot of water and all my work gone. I need to go over from the beginning.

Haarolean commented 2 years ago

@Haarolean i had great luck when doing the backend. Was so close to finish, than my laptop drank lot of water and all my work gone. I need to go over from the beginning.

I'm so sorry to hear that :( I can suggest using git in it's full force in the future and committing more frequently :) Anyways, if you're willing to do that again, let me know if I should keep you assigned.