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: restore miniGET sync by storing scale domain #5601

Merged
merged 5 commits into from
Jan 26, 2024
Merged

Conversation

alexandredamiron
Copy link
Contributor

@alexandredamiron alexandredamiron commented Nov 3, 2023

This will restore sunc between Timeline and GET in domain changes by sliders. Cannot pass D3Scale trhough Store, so it is the retrurn of chartXCGEV, in a readable manner (i hope)

Closes #5367

@alexandredamiron alexandredamiron requested a review from a team as a code owner November 3, 2023 15:13
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: 115 lines in your changes are missing coverage. Please review.

Comparison is base (7ac9bc7) 27.72% compared to head (7baba08) 27.87%.
Report is 18 commits behind head on dev.

Files Patch % Lines
.../simulationResult/components/TimeLine/TimeLine.tsx 0.00% 43 Missing ⚠️
...esult/components/SpaceTimeChart/SpaceTimeChart.tsx 0.00% 36 Missing ⚠️
...ons/operationalStudies/views/SimulationResults.tsx 0.00% 14 Missing ⚠️
front/src/modules/simulationResult/types.ts 0.00% 9 Missing and 1 partial ⚠️
...tionResult/components/SpeedSpaceChart/d3Helpers.ts 0.00% 5 Missing ⚠️
...lt/components/ChartHelpers/enableInteractivity.tsx 0.00% 2 Missing ⚠️
.../simulationResult/components/SpaceCurvesSlopes.tsx 0.00% 2 Missing ⚠️
...ult/components/SpeedSpaceChart/SpeedSpaceChart.tsx 0.00% 2 Missing ⚠️
...ationResult/components/SpaceTimeChart/d3Helpers.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #5601      +/-   ##
============================================
+ Coverage     27.72%   27.87%   +0.15%     
  Complexity     2165     2165              
============================================
  Files          1003     1007       +4     
  Lines        126573   126912     +339     
  Branches       2580     2582       +2     
============================================
+ Hits          35097    35382     +285     
- Misses        89986    90038      +52     
- Partials       1490     1492       +2     
Flag Coverage Δ
core 78.58% <ø> (ø)
editoast 75.48% <ø> (+<0.01%) ⬆️
front 8.65% <7.25%> (+0.28%) ⬆️
gateway 2.50% <ø> (ø)
railjson_generator 87.44% <ø> (ø)
tests 81.95% <ø> (ø)

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.

@alexandredamiron alexandredamiron added area:front Work on Standard OSRD Interface modules module:operational-studies Multi-train simulation with structured studies management labels Nov 3, 2023
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.

Thank you for the PR. Left one comment.

Tested and it works when entering a scenario but if I delete the selected train in the timetable, the synchro with the timeline is lost.
It might work again when this issue will be fixed.

@alexandredamiron
Copy link
Contributor Author

Thank you for the PR. Left one comment.

Tested and it works when entering a scenario but if I delete the selected train in the timetable, the synchro with the timeline is lost. It might work again when this issue will be fixed.

Probably so I'll wait for it

@SharglutDev
Copy link
Contributor

The fix is merged, you can rebase and test if it's working :)

@alexandredamiron
Copy link
Contributor Author

The fix is merged, you can rebase and test if it's working :)

It's working, could you make a last chek ?

SharglutDev
SharglutDev previously approved these changes Nov 27, 2023
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, if you could just remove the comment if not needed :)

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

Thanks for this useful PR, I left some comments :)

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM (only left 1 comment), tested ✅ You just need to rebase and clean your commit, and then it's all good !

clarani
clarani previously approved these changes Dec 22, 2023
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 🙏 ✅

front:no use of chartXDomain

front: no more sync by store

front: no nice

remove useless func def
@clarani clarani dismissed stale reviews from SharglutDev and themself January 22, 2024 16:58

This PR needed a rebase and some adaptations, so the approve is not valid anymore

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.

Thank you for following this PR ! Left some comments

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.

Thank you for the changes. Just two more comments :)

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 !

@clarani clarani disabled auto-merge January 26, 2024 13:43
@clarani clarani added this pull request to the merge queue Jan 26, 2024
Merged via the queue into dev with commit f53b7f5 Jan 26, 2024
21 checks passed
@clarani clarani deleted the adn/syncMiniGET branch January 26, 2024 13:51
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 module:operational-studies Multi-train simulation with structured studies management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

front: timeline chart isn't synchronised anymore
3 participants