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: separate StdcmPathStep and PathStep types #9129

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Conversation

clarani
Copy link
Contributor

@clarani clarani commented Oct 1, 2024

closes #9462

⚠️ you will need to clean your local storage to test this PR since I modified the store (or modify all the fields). You may need to clean your local storage also when you will leave my branch

@clarani clarani requested a review from a team as a code owner October 1, 2024 08:39
@clarani clarani marked this pull request as draft October 1, 2024 13:05
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from 2f4d327 to b75559b Compare October 1, 2024 13:06
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2024

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

Codecov Report

Attention: Patch coverage is 94.14062% with 15 lines in your changes missing coverage. Please review.

Project coverage is 79.82%. Comparing base (c6daa01) to head (0f877cf).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
front/src/reducers/index.ts 50.00% 6 Missing ⚠️
.../reducers/osrdconf/operationalStudiesConf/index.ts 57.14% 6 Missing ⚠️
front/src/utils/timeManipulation.ts 33.33% 2 Missing ⚠️
front/src/reducers/osrdconf/types.ts 0.00% 1 Missing ⚠️

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

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #9129   +/-   ##
=======================================
  Coverage   79.81%   79.82%           
=======================================
  Files        1053     1054    +1     
  Lines      105485   105544   +59     
  Branches      727      727           
=======================================
+ Hits        84198    84248   +50     
- Misses      21245    21254    +9     
  Partials       42       42           
Flag Coverage Δ
editoast 73.71% <ø> (-0.03%) ⬇️
front 89.14% <94.14%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
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 force-pushed the cni/8986-fix-stdcm-ch-2 branch from b75559b to 2179ccb Compare October 7, 2024 07:34
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from 2179ccb to d242e0d Compare November 15, 2024 15:37
@clarani clarani changed the title front: refacto stdcm store front: separate StdcmPathStep and PathStep types Nov 15, 2024
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from d242e0d to a74fa54 Compare November 15, 2024 16:23
@github-actions github-actions bot added area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service area:gateway labels Nov 18, 2024
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from b9eca3c to e7e1857 Compare November 18, 2024 10:26
@github-actions github-actions bot removed area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service area:gateway labels Nov 18, 2024
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch 2 times, most recently from e3dff86 to 8463e56 Compare November 18, 2024 11:19
@clarani clarani marked this pull request as ready for review November 18, 2024 13:31
@clarani clarani requested review from Synar, SharglutDev and emersion and removed request for SharglutDev November 18, 2024 13:31
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from 8463e56 to 4754ed0 Compare November 20, 2024 10:08
Copy link
Contributor

@Synar Synar 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 force-pushed the cni/8986-fix-stdcm-ch-2 branch 2 times, most recently from 7ae095b to 4135171 Compare December 12, 2024 16:16
@clarani clarani enabled auto-merge December 12, 2024 16:16
@clarani clarani disabled auto-merge December 12, 2024 16:16
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

Just two nits, looks good to me!

@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from 4135171 to e551146 Compare December 13, 2024 13:35
@clarani clarani enabled auto-merge December 13, 2024 15:12
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch 2 times, most recently from fb2b63b to 208fab9 Compare December 13, 2024 17:21
@clarani clarani requested a review from a team as a code owner December 13, 2024 17:21
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch 3 times, most recently from 3eb8813 to dd61598 Compare December 16, 2024 09:09
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch 2 times, most recently from 7aa2d4b to 2f5b29d Compare December 17, 2024 09:32
…udies one

Move the actions upsertViaFromSuggestedOP and upsertSeveralViasFromSuggestedOP.

Signed-off-by: Clara Ni <[email protected]>
- completely separate StdcmPathStep and PathStep types
- remove all the fake uic path item location (which were equal to -1)
- add a transformer in the persist config so the date are correctly deserialized from the local storage

Signed-off-by: Clara Ni <[email protected]>
@clarani clarani force-pushed the cni/8986-fix-stdcm-ch-2 branch from 3678bfe to 0f877cf Compare December 17, 2024 15:12
@clarani clarani added this pull request to the merge queue Dec 17, 2024
Merged via the queue into dev with commit 69df2c4 Dec 17, 2024
27 checks passed
@clarani clarani deleted the cni/8986-fix-stdcm-ch-2 branch December 17, 2024 15:44
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.

front: separate PathStep and StdcmPathStep types
6 participants