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

Return Constraint Compilation Errors #967

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

goetzrrGit
Copy link
Contributor

Currently, if a constraint compilation error occurs, the server swallows it, making it difficult for users to develop constraints in Aerie. This is because users cannot see why the constraint is not running or where the error is located.

This PR changes this behavior and will display compilation errors in the UI console. This will allow users to quickly identify and fix compilation errors, improving their constraint development experience.

Additionally, this PR updates the gql call to support receiving errors or results per constraint. This will be used in a future PR to stop the Merlin server from short-circuiting and not running the full list of constraints.

@goetzrrGit goetzrrGit requested a review from a team as a code owner October 26, 2023 18:54
@goetzrrGit goetzrrGit changed the title Aerie 1117 return compilation errors Return Constraint Compilation Errors Oct 26, 2023
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 5841777 to 9b80ee1 Compare October 30, 2023 23:24
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 9b80ee1 to 0209d71 Compare October 31, 2023 21:31
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 0209d71 to be3b95a Compare October 31, 2023 21:46
@goetzrrGit goetzrrGit temporarily deployed to test-workflow October 31, 2023 21:46 — with GitHub Actions Inactive
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from be3b95a to 3e52246 Compare November 7, 2023 18:54
src/utilities/effects.ts Outdated Show resolved Hide resolved
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 3e52246 to 853ba6d Compare November 7, 2023 23:34
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 853ba6d to f23d2da Compare November 7, 2023 23:37
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from f23d2da to 2c30531 Compare November 8, 2023 00:00
This will return an object containing all constraints processed by the server, including whether they have compilation errors or ran successfully.
@goetzrrGit goetzrrGit force-pushed the aerie-1117--Return_compilation_errors branch from 2c30531 to f388c79 Compare November 8, 2023 00:28
Copy link
Collaborator

@duranb duranb left a comment

Choose a reason for hiding this comment

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

lgtm! thank you!

@goetzrrGit goetzrrGit merged commit d9e41bb into develop Nov 8, 2023
4 checks passed
@goetzrrGit goetzrrGit deleted the aerie-1117--Return_compilation_errors branch November 8, 2023 00:36
JosephVolosin pushed a commit that referenced this pull request Aug 20, 2024
* Update GQL to match what the server will return for constraints and compilation errors.

* Update the UI to parse the ConstraintViolation response differently.

This will return an object containing all constraints processed by the server, including whether they have compilation errors or ran successfully.
JosephVolosin pushed a commit that referenced this pull request Oct 21, 2024
* Update GQL to match what the server will return for constraints and compilation errors.

* Update the UI to parse the ConstraintViolation response differently.

This will return an object containing all constraints processed by the server, including whether they have compilation errors or ran successfully.
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.

2 participants