osrd icon indicating copy to clipboard operation
osrd copied to clipboard

Rvs/front power restrictions v2

Open RomainValls opened this issue 1 year ago • 1 comments

closes #7025

What does the power restriction selector do :

  • Detects the change of electrification on a path
  • creates intervals with the electrification change points values

The user can :

  • Cut intervals manually (cut tool, or with the inputs)
  • Select power restrictions in intervals

Once a power restriction has been selected on an interval :

  • Two pathSteps are created. One where the power restriction begins, and one at the end (calculated with the position on Path)

RomainValls avatar Jun 23 '24 12:06 RomainValls

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

Codecov Report

Attention: Patch coverage is 13.59712% with 1201 lines in your changes missing coverage. Please review.

Project coverage is 28.11%. Comparing base (45b2718) to head (d4a0773).

Files Patch % Lines
.../operationalStudiesConf/powerRestrictionReducer.ts 21.48% 189 Missing and 1 partial :warning:
...ion/hooks/usePowerRestrictionSelectorBehaviours.ts 0.00% 166 Missing and 1 partial :warning:
...modules/powerRestriction/helpers/createPathStep.ts 0.00% 134 Missing and 1 partial :warning:
...striction/hooks/usePowerRestrictionSelectorData.ts 0.00% 108 Missing and 1 partial :warning:
...owerRestriction/helpers/getRestrictionsToResize.ts 0.00% 102 Missing and 1 partial :warning:
...owerRestriction/helpers/formatPowerRestrictions.ts 0.00% 92 Missing and 1 partial :warning:
.../reducers/osrdconf/operationalStudiesConf/utils.ts 22.72% 85 Missing :warning:
...riction/components/PowerRestrictionsSelectorV2.tsx 0.00% 66 Missing and 1 partial :warning:
...werRestriction/helpers/powerRestrictionWarnings.ts 18.96% 47 Missing :warning:
...ront/src/modules/powerRestriction/helpers/utils.ts 0.00% 43 Missing and 1 partial :warning:
... and 28 more

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7824      +/-   ##
============================================
- Coverage     28.22%   28.11%   -0.11%     
  Complexity     2075     2075              
============================================
  Files          1276     1285       +9     
  Lines        156311   157442    +1131     
  Branches       3084     3117      +33     
============================================
+ Hits          44115    44269     +154     
- Misses       110355   111300     +945     
- Partials       1841     1873      +32     
Flag Coverage Δ
core 75.03% <ø> (ø)
editoast 70.81% <ø> (-0.03%) :arrow_down:
front 9.96% <13.59%> (+0.04%) :arrow_up:
gateway 2.34% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 72.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Jun 24 '24 08:06 codecov-commenter