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

front: fix stdcm consist length and mass minimum values #10418

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

SharglutDev
Copy link
Contributor

The sum of the rolling stock and towed rolling stock mass was previously rounded down (instead of up) resulting to some invalid values send to the form. If a total mass was 80.7t, the user was allowed to send 80t.

fix #10306

@SharglutDev SharglutDev requested a review from a team as a code owner January 16, 2025 16:16
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 16, 2025
@SharglutDev SharglutDev enabled auto-merge January 16, 2025 16:17
Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

Tested, LGTM !

Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

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

LGTM !

The sum of the rolling stock and towed rolling stock mass was previously rounded down (instead of up) resulting to some invalid values send to the form.
If a total mass was 80.7t, the user was allowed to send 80t.

Signed-off-by: SharglutDev <[email protected]>
@SharglutDev SharglutDev force-pushed the pfn/front/fix-stdcm-consist-length-mass branch from c3cfe24 to c6e2fe5 Compare January 17, 2025 09:33
@SharglutDev SharglutDev requested a review from a team as a code owner January 17, 2025 09:33
@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.66%. Comparing base (833fe27) to head (c6e2fe5).
Report is 10 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10418      +/-   ##
==========================================
+ Coverage   81.62%   81.66%   +0.03%     
==========================================
  Files        1070     1071       +1     
  Lines      105881   106118     +237     
  Branches      727      727              
==========================================
+ Hits        86429    86660     +231     
- Misses      19411    19419       +8     
+ Partials       41       39       -2     
Flag Coverage Δ
editoast 73.70% <ø> (-0.05%) ⬇️
front 89.36% <100.00%> (+0.04%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.05% <ø> (ø)

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.

@SharglutDev SharglutDev added this pull request to the merge queue Jan 17, 2025
Merged via the queue into dev with commit 1f61563 Jan 17, 2025
27 checks passed
@SharglutDev SharglutDev deleted the pfn/front/fix-stdcm-consist-length-mass branch January 17, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picking some rolling stocks triggers unwanted warning
7 participants