Skip to content
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

Validate schema and encoding issues when testing kafka connections #460

Merged
merged 2 commits into from Dec 19, 2023

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Dec 19, 2023

At the end of the connection creation flow we have a testing process, which currently for Kafka is able to validate issues connecting to and reading messages. However, it does not currently validate that the messages themselves are well-formed according to the format that's been configured.

This adds such support, which can catch issues like the wrong format being selected or incorrectly selecting/not selecting confluent schema registry.

@@ -27,7 +27,7 @@ export const CreateProfile = ({
const [error, setError] = useState<string | null>(null);
const [valid, setValid] = useState<boolean | null>(null);
const [validating, setValidating] = useState<boolean>(false);
const [state, setState] = useState<any | null>(null);
const state = useRef<any | null>(null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes a bug introduced in #454 which caused changes to the form to not always propagate to the state that was actually saved

Base automatically changed from kafka_autocomplete to master December 19, 2023 17:30
@mwylde mwylde force-pushed the autodetect_schema branch 2 times, most recently from 8703b77 to 0e7e658 Compare December 19, 2023 19:32
@mwylde mwylde enabled auto-merge (squash) December 19, 2023 19:59
@mwylde mwylde merged commit ca3df56 into master Dec 19, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants