-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KC: Make it possible to validate KC config #682
Comments
In that case we need to have 'validate' button for each case we send something custom to kafka on ui. |
I think that is a different use case that I cannot comment on. The original issue refers to Kafka Connect specifically where that is highly advised by the REST API validation error messages themselves |
for sure this is a different use case from backend point but we are talking about UI first so imho this is not good practice from UX perspective: Also if you still ok to implement such approach I can do it |
I see your point about wanting to provide a consistent submission experience across all pages. However, the reason for this discrepancy is that the Kafka Connect REST API already supports validation out of the box, whereas other Kafka configuration endpoints may not (to be fair, I’m not entirely sure if it does). Because of this, the work required on our end to integrate with an existing validate endpoint for Connect is minimal while for Kafka as a platform sounds like a much bigger ask. How do you propose we implement a validate endpoint for the other pages? Are you suggesting creating a manual set of validation methods? If so, that could become a long-term maintenance challenge. On the other hand, if the Kafka SDK offers a built-in way to validate configurations before submission, leveraging that would make more sense. |
thank you for explanation @yeikel ! It's important for me because I just started to figure out with this project. In that case we have to:
Question: do we keep same error messages on UI like now in case validation is not correct? I.e. now in case of incorrect validation we get '400 validation incorrect' |
While I understand your intentions, this may not be needed because it would add unnecessary steps for users that know for "a fact" that their configuration is correct. In my opinion, the validate button should behave independently to the submit button and serve as an aid for users that are still experimenting with configurations before submitting. Ultimately, the "Submit" button will validate invalid configurations
This is no longer true, we are passing more context after #705 The newly introduced "Validate" button should do something similar and expose the message that the validate endpoint returns |
I don't quite get the point of having a validate button present if one can just click submit and in case of an invalid config, get an error :) But anyway I don't mind this enhancement |
The point of the validate button is to validate a configuration but don't submit it yet. This is very useful to make sure that a connector configuration is valid before actually putting the connector in place |
Issue submitter TODO list
Is your proposal related to a problem?
While creating of changing the configuration for connectors, it is often valuable to validate the configuration first before attempting to submit it. The current UI does not expose that feature
Describe the feature you're interested in
We should add a "Validate" button next to the "Submit button" that calls the
/validate/
endpoint of Kafka ConnectDescribe alternatives you've considered
Option 1 : Call the API manually
Option 2: Create the connector and pause it afterwards (not ideal)
Version you're running
c8a8759
Additional context
No response
The text was updated successfully, but these errors were encountered: