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: set default tolerances in the store #9977

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

clarani
Copy link
Contributor

@clarani clarani commented Dec 6, 2024

closes #9803

@clarani clarani requested a review from a team as a code owner December 6, 2024 11:09
@clarani clarani requested review from Math-R and achrafmohye December 6, 2024 11:09
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 6, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

⚠️ 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 79.87%. Comparing base (95d3c07) to head (ac697b0).
Report is 4 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    #9977      +/-   ##
==========================================
- Coverage   79.87%   79.87%   -0.01%     
==========================================
  Files        1048     1048              
  Lines      105232   105246      +14     
  Branches      756      756              
==========================================
+ Hits        84057    84063       +6     
- Misses      21134    21142       +8     
  Partials       41       41              
Flag Coverage Δ
editoast 73.41% <ø> (-0.03%) ⬇️
front 89.36% <100.00%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (+0.01%) ⬆️
tests 87.00% <ø> (ø)

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.

@clarani clarani enabled auto-merge December 6, 2024 13:03
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.

Not working for me :/
image

@theocrsb
Copy link
Contributor

theocrsb commented Dec 9, 2024

Not working for me :/ image

After cleaning the local storage, it works well for me

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 and tested !

Copy link
Contributor

@Math-R Math-R left a comment

Choose a reason for hiding this comment

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

lgtm !

@clarani clarani added this pull request to the merge queue Dec 9, 2024
Merged via the queue into dev with commit 0f5f813 Dec 9, 2024
27 checks passed
@clarani clarani deleted the cni/9803-fix-tolerance-in-stdcm branch December 9, 2024 09:33
clarani added a commit that referenced this pull request Dec 11, 2024
tolerances are stored in the store and in the local storage. For some users, this field is still undefined in their local storage.
However, since #9977, we assume that tolerances can not be undefined, which is not true if the
users have not reset their store (=clean their cookies) or manullaly filled it.

To prevent the app from crashing when a user without tolerances opens the stdcm page, I revert the changes in StdcmOrigin and StdcmDestination for now.

Signed-off-by: Clara Ni <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 12, 2024
tolerances are stored in the store and in the local storage. For some users, this field is still undefined in their local storage.
However, since #9977, we assume that tolerances can not be undefined, which is not true if the
users have not reset their store (=clean their cookies) or manullaly filled it.

To prevent the app from crashing when a user without tolerances opens the stdcm page, I revert the changes in StdcmOrigin and StdcmDestination for now.

Signed-off-by: Clara Ni <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 12, 2024
tolerances are stored in the store and in the local storage. For some users, this field is still undefined in their local storage.
However, since #9977, we assume that tolerances can not be undefined, which is not true if the
users have not reset their store (=clean their cookies) or manullaly filled it.

To prevent the app from crashing when a user without tolerances opens the stdcm page, I revert the changes in StdcmOrigin and StdcmDestination for now.

Signed-off-by: Clara Ni <[email protected]>
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.

The default tolerance value is not taken into account
4 participants