-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix loading a schema from registry #489
Conversation
…nges on the indexerDetails object. - Show the schema even if it fails the validations
…api into fix/load-schema-from-registry # Conflicts: # frontend/src/components/Editor/Editor.jsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good refactoring and simplification of logic!
Just some side effects that these changes had in the behavior of the editor which we should resolve.
… validation when user is changing the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more minor change, but I am happy to approve right after! Overall great changes 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 💯
Link to the issue here
Changes on this PR
Refactored Editor file,
-- remove side effects from reformatAll function, solving the main problem of the issue
-- simplified useEffects with logic related to loading the schema, separating concern and focusing them on only one task
-- remove dead code
-- simplified other functions
Refactored logic to validate the schema
-- only validate schemas different from the default
Fixed issue when generating types
Screen.Recording.2024-01-05.at.10.26.09.AM.mov