OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
GNU Lesser General Public License v3.0
419 stars 40 forks source link

Rvs/front power restrictions v2 #7824

Closed RomainValls closed 5 days ago

RomainValls commented 3 weeks ago

closes #7025

What does the power restriction selector do :

The user can :

Once a power restriction has been selected on an interval :

codecov-commenter commented 3 weeks ago

: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 ```diff @@ 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](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [core](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `75.03% <ø> (ø)` | | | [editoast](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `70.81% <ø> (-0.03%)` | :arrow_down: | | [front](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `9.96% <13.59%> (+0.04%)` | :arrow_up: | | [gateway](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `2.34% <ø> (ø)` | | | [railjson_generator](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `87.49% <ø> (ø)` | | | [tests](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7824/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `72.93% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#carryforward-flags-in-the-pull-request-comment) to find out more.

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