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

Add validation error handling #45

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Add validation error handling #45

merged 4 commits into from
Oct 21, 2024

Conversation

brysonjbest
Copy link
Collaborator

  • Inputs are checked against the given validation data prior to rule run
  • Errors are thrown by the api regarding how the data does not match the required inputs.
  • Data is first validated for matching type, and then validated for matching the specific requirements of the field.
  • Errors are descriptive regarding the input requirements.
  • Integrated this error process into CSV generation/processing as well, so test scenarios processed by CSV fail and provide feedback in the 'Error?' column regarding any errors with input.
  • Fixed an additional bug regarding deletion handling and updates on the admin page introduced in Search/Filter rules API support #41.

Copy link
Collaborator

@timwekkenbc timwekkenbc left a comment

Choose a reason for hiding this comment

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

New validation service looks great! Very impressive. Love that you worked it into the csv stuff too

Copy link
Collaborator

Choose a reason for hiding this comment

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

Really nice having a proper custom error like this. However, should change the filename because it's not a service.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you, completely missed that!

@brysonjbest brysonjbest merged commit 3e14cfd into dev Oct 21, 2024
2 checks passed
@brysonjbest brysonjbest deleted the feature/validation-errors branch December 19, 2024 23:24
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