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

editoast: enhance editoast error context #6662

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

sim51
Copy link
Contributor

@sim51 sim51 commented Feb 16, 2024

See https://github.com/osrd-project/osrd-confidential/issues/281#issuecomment-1948412084 for more details.

This PR contains :

  • context should be an object with parameter to be well displayed in the UI
  • adding needed parameters in some error (like InfraNotFound for example)

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 41 lines in your changes are missing coverage. Please review.

Comparison is base (c37734f) 27.82% compared to head (ae057e2) 27.82%.

Files Patch % Lines
editoast/src/schema/operation/update.rs 20.00% 8 Missing ⚠️
editoast/src/views/search/mod.rs 0.00% 8 Missing ⚠️
editoast/src/views/search/context.rs 25.00% 6 Missing ⚠️
editoast/src/views/infra/pathfinding.rs 0.00% 5 Missing ⚠️
editoast/src/views/infra/edition.rs 0.00% 4 Missing ⚠️
editoast/src/views/projects.rs 0.00% 4 Missing ⚠️
editoast/src/views/search/searchast.rs 55.55% 4 Missing ⚠️
editoast/src/views/sprites.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6662      +/-   ##
============================================
- Coverage     27.82%   27.82%   -0.01%     
  Complexity     2172     2172              
============================================
  Files          1043     1043              
  Lines        128807   128849      +42     
  Branches       2570     2570              
============================================
+ Hits          35841    35851      +10     
- Misses        91480    91512      +32     
  Partials       1486     1486              
Flag Coverage Δ
core 79.36% <ø> (ø)
editoast 75.27% <39.70%> (-0.10%) ⬇️
front 8.35% <ø> (ø)
gateway 2.50% <ø> (ø)
railjson_generator 87.26% <ø> (ø)
tests 81.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sim51 sim51 force-pushed the bsi/error-messages-editoast branch 5 times, most recently from e81d274 to 843c033 Compare February 21, 2024 09:28
@sim51 sim51 marked this pull request as ready for review February 21, 2024 09:55
@sim51 sim51 requested review from a team as code owners February 21, 2024 09:55
Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this PR.

@nicolaswurtz nicolaswurtz added this pull request to the merge queue Feb 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2024
@nicolaswurtz nicolaswurtz added this pull request to the merge queue Feb 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2024
- context should be an object with parameter to be well displayed in the
UI
- adding needed parameters in some errors (like InfraNotFound for example)
@sim51 sim51 force-pushed the bsi/error-messages-editoast branch from 843c033 to ae057e2 Compare February 21, 2024 20:29
@sim51 sim51 enabled auto-merge February 21, 2024 20:35
@sim51 sim51 added this pull request to the merge queue Feb 21, 2024
Merged via the queue into dev with commit 212d4a7 Feb 21, 2024
22 checks passed
@sim51 sim51 deleted the bsi/error-messages-editoast branch February 21, 2024 20:47
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.

3 participants