-
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
fix speed limit restriction #6436
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #6436 +/- ##
============================================
+ Coverage 28.01% 28.03% +0.02%
- Complexity 2167 2169 +2
============================================
Files 1034 1034
Lines 127681 127745 +64
Branches 2602 2603 +1
============================================
+ Hits 35764 35813 +49
- Misses 90403 90417 +14
- Partials 1514 1515 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1ba6994
to
1df9d83
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.
I reviewed the editoast part. It seems like the initial approach of using validator::Validate
will be heavy. My comments are aligned with this approach.
We can discuss implementing manually Deserialize
instead of Validate
.
editoast/migrations/2024-01-26-150237_change_zero_speed_limit_to_null/up.sql
Outdated
Show resolved
Hide resolved
core/src/test/java/fr/sncf/osrd/envelope_sim_infra/MRSPTest.java
Outdated
Show resolved
Hide resolved
7c1f8c8
to
0239ca1
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.
A small fix and we're good to merge it!
0239ca1
to
f485eef
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 =)
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
core/src/main/java/fr/sncf/osrd/infra/api/tracks/undirected/SpeedLimits.java
Outdated
Show resolved
Hide resolved
editoast: check speedLimit greater than 0 editoast: migration speed_limit to null instead of 0 editoast: add speed_section validation on edit infra and load railjson endpoints core: fix test editoast: fix migration remove entries in speed_limit_by_tag where value <= 0 core: fix test editoast: fix lint error front: display error message when speed limit validation fail editoast: fix lint core: refacto. validation on RJSpeedSection editoast: change validation strategy editoast: clean
f485eef
to
802e1de
Compare
Closes #6407