Refacto: Improve CH code suggestions management. #10401
Labels
area:front
Work on Standard OSRD Interface modules
kind:refacto-task
Task related to Refactorization Epic
module:stdcm
Short-Term DCM
Description
To improve the efficiency and accuracy of updating operational points and their suggestions, we need to refactor the current implementation. The following changes are proposed:
availableSecondaryCodes
inStdcmPathStep
location.availableSecondaryCodes
inStdcmOperationalPoint
when changing the ci.chSuggestions
fromavailableSecondaryCodes
.availableSecondaryCodes
when selecting an op in linked train:searchOperationalPoints
.useSearchOperationalPoint
hook:searchOperationalPoints
function.Acceptance Criteria:
availableSecondaryCodes
field toStdcmPathStep
location.availableSecondaryCodes
inStdcmOperationalPoint
when ci changes.chSuggestions
are built fromavailableSecondaryCodes
.availableSecondaryCodes
when an op is selected in linked trains.useSearchOperationalPoint
hook to return results and accept a query argument.The text was updated successfully, but these errors were encountered: