-
Notifications
You must be signed in to change notification settings - Fork 46
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
Adding an error inventory to editoast #6632
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #6632 +/- ##
============================================
+ Coverage 27.74% 27.79% +0.05%
Complexity 2172 2172
============================================
Files 1042 1043 +1
Lines 128465 128710 +245
Branches 2569 2570 +1
============================================
+ Hits 35640 35773 +133
- Misses 91340 91451 +111
- Partials 1485 1486 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c676413
to
42a7338
Compare
3294c2a
to
26f7be8
Compare
26f7be8
to
4d4f1f4
Compare
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.
There are a few changes to make. I haven't reviewed the utoipa part yet.
4d4f1f4
to
65890a3
Compare
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, we need to fix the opened comment.
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.
Thank you for this PR ! Left some comments (most of them on spelling or syntax)
65890a3
to
0fd8ad3
Compare
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.
Reviewed the GitHub CI part, LGTM
cd74fb3
to
885a1d6
Compare
f317a18
to
f2657ee
Compare
61b370c
to
7f6d9fa
Compare
7f6d9fa
to
3d32d79
Compare
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.
Thank you for the changes. Lgtm and tested. Just one last comment (my fault)
- editoast generates API errors definition into openapi.yaml by looking at all object that derives from 'EditoastError' - frontend task "script:i18n-api-errors" reads the openapi.yml and i18n errors.json file to check if there are some missing or invalid values - frontend task is run on the CI, within the check of the openapi
3d32d79
to
a6b59f6
Compare
For memory, I opened this ticket #6685 |
See https://github.com/osrd-project/osrd-confidential/issues/281 for more details
close #6193
What I did is :
openapi.yaml
by looking at all object that derives fromEditoastError
openapi.yml
and i18nerrors.json
file to check if there are some missing or invalid valuescheck_editoast_openapi
)Moreover, the function
extractMessageFromError
infront/src/utils/error.ts
has been changed, to search the message to display in the I18N.