Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: drop unused STDCM-related fields in PathStep #10231

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions front/src/modules/pathfinding/hooks/usePathfinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ const usePathfinding = (
const theoreticalMargin = i === 0 ? step.theoreticalMargin || '0%' : step.theoreticalMargin;

const stopFor = i === pathStepsInput.length - 1 && !step.stopFor ? '0' : step.stopFor;
const stopType = i === pathStepsInput.length - 1 && !step.stopFor ? undefined : step.stopType;

return {
...step,
positionOnPath: pathResult.path_item_positions[i],
stopFor,
stopType,
theoreticalMargin,
...(correspondingOp && {
name: correspondingOp.name,
Expand Down
3 changes: 0 additions & 3 deletions front/src/modules/pathfinding/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export const formatSuggestedOperationalPoints = (
uic: op.extensions?.identifier?.uic,
ch: op.extensions?.sncf?.ch,
kp: op.part.extensions?.sncf?.kp,
chLongLabel: op.extensions?.sncf?.ch_long_label,
chShortLabel: op.extensions?.sncf?.ch_short_label,
ci: op.extensions?.sncf?.ci,
trigram: op.extensions?.sncf?.trigram,
offsetOnTrack: op.part.position,
track: op.part.track,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export type SuggestedOP = {
name?: string;
uic?: number;
ch?: string;
chLongLabel?: string;
chShortLabel?: string;
ci?: number;
kp?: string;
trigram?: string;
offsetOnTrack: number;
Expand Down
4 changes: 0 additions & 4 deletions front/src/reducers/osrdconf/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ export type PathStep = PathItemLocation & {
If true, the train schedule is consider as invalid and must be edited */
deleted?: boolean;
arrival?: IsoDurationString | null;
arrivalType?: ArrivalTimeTypes;
arrivalToleranceBefore?: number;
arrivalToleranceAfter?: number;
locked?: boolean;
stopFor?: string | null;
stopType?: StdcmStopTypes;
theoreticalMargin?: string;
receptionSignal?: ReceptionSignal;
kp?: string;
Expand Down
Loading