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

feature(errors): Refact charge models validation errors and more #484

Merged
merged 3 commits into from
Sep 22, 2022

Conversation

vincent-pochet
Copy link
Collaborator

Context

Error handling in services and the way it's rendered in API and GraphQL needs a complete refactoring.

Description

The objective of this PR is to refactor the charge models validations to use the BaseValidator class previously introduce and use BaseResult::ValidationFailure to handle the validation messages

It has been validated that this change does not require updating the frontend, as it only triggers a generic error.

@vincent-pochet vincent-pochet force-pushed the feature/more-errors-again branch from 6f6fa96 to 7ce80d9 Compare September 22, 2022 09:07
Copy link
Contributor

@jdenquin jdenquin left a comment

Choose a reason for hiding this comment

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

great job!

@vincent-pochet vincent-pochet merged commit 98814c9 into main Sep 22, 2022
@vincent-pochet vincent-pochet deleted the feature/more-errors-again branch September 22, 2022 10:06
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