OpenRailAssociation / OpenRailAssociation/osrd

core: kt-infra: migrate all distances from `double` to `Distance`/`long`

Open
#4,690 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:core module:stdcm
Dominant language
TypeScript
Stars
660
Forks
87
Avg merge
3d 4h
Merged PRs (30d)
269

Description

There are still lots of places that use doubles for distances, in particular anything related to envelopes.

The scope of this change is much larger than just stdcm, I believe it should only be done when we intend on migrating the schedule endpoint and removing all reference of legacy infra.

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

The issue names kt-infra, envelope-related distance handling, the schedule endpoint, and legacy infrastructure, but no files or tests. Start by locating those entry points and cataloguing remaining distance uses; completion requires an agreed migration scope and removal of the legacy references.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.