OpenRailAssociation / OpenRailAssociation/osrd

Timestop table: power restriction ø displayed even on the whole path

Open
#17,512 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:front kind:bug module:operational-studies severity:minor
Dominant language
TypeScript
Stars
660
Forks
87
Avg merge
3d 4h
Merged PRs (30d)
269

Description

What happened?

For a train without any power restriction apply to the path, if we set a null power restriction on the origin, the ø symbol is displayed.

What did you expect to happen?

If it's the only power restriction apply on the path and if it's on the origin, the result is the same as having nothing so we could just display nothing in the cell in that case.

How can we reproduce it (as minimally and precisely as possible)?
  1. Open the time stops table of a train which has no power restriction yet.
  2. Set the power restriction on the origin to ø (no power restriction)
On which environments the bug occurs?

Recette (SNCF)

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

c38afa2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the frontend code for the train time stops table and reproduce the issue with a train that has no power restriction, then set the origin restriction to ø. Trace how the origin value is rendered in the table. Done means the cell is empty when ø is the only restriction on the path, while other restrictions remain displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.