OpenRailAssociation / OpenRailAssociation/osrd
Timestop table: power restriction ø displayed even on the whole path
Nobody has claimed this yet.
- 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)?
- Open the time stops table of a train which has no power restriction yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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