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

core: change pathfinding errors on rolling-stock constraints #7953

Open bougue-pe opened 1 week ago

bougue-pe commented 1 week ago

Change interface for pathfinding errors on rolling-stock constraints and project RS constraints on the relaxed path. ⚠️ this breaks core interface and will be handled in another PR by editoast.

TODO:

Fix: #7719

codecov-commenter commented 1 week 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 81.30081% with 23 lines in your changes missing coverage. Please review.

Project coverage is 28.09%. Comparing base (e65899e) to head (fe3b779).

Files Patch % Lines
.../api_v2/pathfinding/PathfindingBlocksEndpointV2.kt 86.02% 4 Missing and 9 partials :warning:
...api/api_v2/pathfinding/PathfindingBlockResponse.kt 57.14% 2 Missing and 7 partials :warning:
...r/sncf/osrd/signaling/impl/MockSigSystemManager.kt 0.00% 1 Missing :warning:

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #7953 +/- ## ============================================ + Coverage 28.06% 28.09% +0.03% - Complexity 2075 2077 +2 ============================================ Files 1289 1289 Lines 157764 157834 +70 Branches 3121 3134 +13 ============================================ + Hits 44281 44350 +69 + Misses 111606 111592 -14 - Partials 1877 1892 +15 ``` | [Flag](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7953/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/7953/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `75.18% <81.30%> (+0.15%)` | :arrow_up: | | [editoast](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7953/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `70.78% <ø> (-0.02%)` | :arrow_down: | | [front](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7953/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `9.94% <ø> (ø)` | | | [gateway](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7953/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/7953/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/7953/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.