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 results display when entering a scenario #10963

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

theocrsb
Copy link
Contributor

@theocrsb theocrsb commented Feb 26, 2025

closes #10946

Some getPathProperties conditions were not in the useEffect depths, so changing these values did not update trainSimulation (which is undefined by default when entering a scenario), preventing the simulation results to be displayed

@theocrsb theocrsb requested a review from a team as a code owner February 26, 2025 13:27
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 26, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 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.60%. Comparing base (a818cef) to head (25e5ac5).
Report is 1 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   #10963      +/-   ##
==========================================
- Coverage   81.60%   81.60%   -0.01%     
==========================================
  Files        1095     1095              
  Lines      110431   110438       +7     
  Branches      742      742              
==========================================
+ Hits        90121    90125       +4     
- Misses      20268    20271       +3     
  Partials       42       42              
Flag Coverage Δ
editoast 72.18% <ø> (-0.01%) ⬇️
front 90.23% <100.00%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 2.98% <ø> (ø)
railjson_generator 87.58% <ø> (ø)
tests 87.90% <ø> (ø)

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.

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 but left a comment

Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm and tested, good job ! Could you put a description in the commit to explain the bug ?

Some getPathProperties conditions were not in the useEffect depths, so changing these values did not update trainSimulation (which is undefined by default when entering a scenario), preventing the simulation results to be displayed

Signed-off-by: theocrsb <[email protected]>
@theocrsb theocrsb force-pushed the tce/front/bug/display-simulation-results branch from f5db792 to 25e5ac5 Compare February 27, 2025 06:02
@theocrsb
Copy link
Contributor Author

I just added the description to the commit :)

@theocrsb theocrsb enabled auto-merge February 27, 2025 06:03
@theocrsb theocrsb added this pull request to the merge queue Feb 27, 2025
Merged via the queue into dev with commit 05dae8a Feb 27, 2025
27 checks passed
@theocrsb theocrsb deleted the tce/front/bug/display-simulation-results branch February 27, 2025 06:26
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.

No simulation results when entering a scenario
4 participants