You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More info about this can be found on this
[issue](#483)
Changes on this PR:
- Validate code & schema before registering the indexer
Logic: If formatting either the code or the schema fails, the `Publish`
button is disabled. Only if type generation errors or no errors are
detected, the `Publish` button will be enabled. More about this on this
[discussion](#480 (comment))
https://github.com/near/queryapi/assets/15988846/68f89cb4-f561-4e8a-9fa7-81c1a38e548c
Additionally
- Created a reusable Modal with a global context to manage it, so we can
trigger it from any component to display some info
- Updated schema with granular error types for improved clarity
- Created a custom error class to filter by type Error. We can add more
fields on it if needed
---------
Co-authored-by: Juan Luis Santana <[email protected]>
Co-authored-by: Roshaan Siddiqui <[email protected]>
At the moment, we allow users to publish invalid code to the registry.
We should validate the JS code in the editor alongside the current schema validation before publishing code.
This should prevent users from making unnecessary and wrong changes to their indexer.
The text was updated successfully, but these errors were encountered: