Skip to content

front, rmi: stdcm: send consist changes to rmi#16640

Open
Synar wants to merge 1 commit into
devfrom
ali/send-consist-changes-to-raimi
Open

front, rmi: stdcm: send consist changes to rmi#16640
Synar wants to merge 1 commit into
devfrom
ali/send-consist-changes-to-raimi

Conversation

@Synar
Copy link
Copy Markdown
Contributor

@Synar Synar commented May 7, 2026

Close #16505

@Synar Synar requested review from a team as code owners May 7, 2026 16:43
@Synar Synar requested a review from Castavo May 7, 2026 16:43
@github-actions github-actions Bot added area:front Work on Standard OSRD Interface modules area:railway-manager-interface Work on Railway Manager Interface service labels May 7, 2026
@Synar Synar added this to Board PI 20 May 8, 2026
@Synar Synar moved this to Awaiting merge in Board PI 20 May 8, 2026
@DucNg DucNg self-requested a review May 11, 2026 08:31
Copy link
Copy Markdown
Contributor

@Castavo Castavo left a comment

Choose a reason for hiding this comment

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

LGTM to me overall, I'll have to test

Comment thread railway_manager_interface/openapi.yaml
Comment thread railway_manager_interface/osrd_railway_manager_interface/models.py
@@ -114,6 +114,31 @@ components:
description: Error message describing what went wrong
required:
- detail
ConsistChange:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe this object could be a Consist, and could be included in the SimulationReport with an allOf ? It would reduce duplication (but at the cost of making SimulationReport harder to read)

What do you think ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't know we could do that, thanks for the tip! I think I would slightly favor readability over code uniqueness in this case, but if you have a marked preference for the allOf version I'm fine with it too ^^

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't have a marked preference indeed

If you're not convinced either, let's keep the code simpler 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Talked about it with @Khoyo, he convinced me that the allOf version is probably superior.

But also, shouldn't we simply drop the main consist from the simulation report, and add it in the first requested step? That would simplify both the model and the osrd-data code. Though this can be discussed and done later.

Copy link
Copy Markdown
Contributor

@DucNg DucNg left a comment

Choose a reason for hiding this comment

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

Good for front and tested (I can see the consist_change inside the request payload)

Signed-off-by: Alice Khoudli <alice.khoudli@polytechnique.org>
@Synar Synar force-pushed the ali/send-consist-changes-to-raimi branch from 8d88307 to 09cd9f0 Compare May 12, 2026 14:15
@Synar Synar requested review from Castavo and SharglutDev May 12, 2026 14:52
Copy link
Copy Markdown
Contributor

@Castavo Castavo left a comment

Choose a reason for hiding this comment

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

LGTM

Tested with our implem of RaiMI, awesome

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 area:railway-manager-interface Work on Railway Manager Interface service

Projects

Status: Awaiting merge

Development

Successfully merging this pull request may close these issues.

front, rmi: send consist changes to railway manager interface

3 participants