Skip to content

Commit 7ce35ed

Browse files
committed
Remove hardcoded version comment from moving quay between stop places
1 parent 08666e1 commit 7ce35ed

5 files changed

Lines changed: 1 addition & 15 deletions

File tree

ui/src/components/stop-registry/stop-areas/stop-area-details/MoveQuayToStopArea/MoveQuayToStopAreaModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ export const MoveQuayToStopAreaModal: FC<MoveQuayToStopAreaModalProps> = ({
151151
toStopPlaceId: areaId,
152152
quayIds: [selectedStop.quayId],
153153
moveQuayFromDate: selectedDate,
154-
fromVersionComment: `Moved quay on ${selectedDate}`,
155-
toVersionComment: `Added quay on ${selectedDate}`,
156154
};
157155

158156
try {

ui/src/components/stop-registry/stop-areas/stop-area-details/MoveQuayToStopArea/utils/helpers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ export async function executeQuayMove(
119119
toStopPlaceId: params.toStopPlaceId,
120120
quayIds: params.quayIds,
121121
moveQuayFromDate: params.moveQuayFromDate,
122-
fromVersionComment: params.fromVersionComment,
123-
toVersionComment: params.toVersionComment,
124122
},
125123
});
126124

ui/src/components/stop-registry/stop-areas/stop-area-details/MoveQuayToStopArea/utils/queries.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ const GQL_MOVE_QUAY_TO_STOP_PLACE = gql`
55
$toStopPlaceId: String!
66
$quayIds: [String!]!
77
$moveQuayFromDate: stop_registry_LocalDate!
8-
$fromVersionComment: String!
9-
$toVersionComment: String!
108
) {
119
stop_registry {
1210
moveQuaysToStop(
1311
toStopPlaceId: $toStopPlaceId
1412
quayIds: $quayIds
1513
moveQuayFromDate: $moveQuayFromDate
16-
fromVersionComment: $fromVersionComment
17-
toVersionComment: $toVersionComment
1814
) {
1915
... on stop_registry_StopPlace {
2016
id

ui/src/components/stop-registry/stop-areas/stop-area-details/MoveQuayToStopArea/utils/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ export type MoveQuayParams = {
44
toStopPlaceId: string;
55
quayIds: ReadonlyArray<string>;
66
moveQuayFromDate: string;
7-
fromVersionComment: string;
8-
toVersionComment: string;
97
};
108

119
export type QuayInfo = {

ui/src/generated/graphql.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74427,8 +74427,6 @@ export type MoveQuayToStopPlaceMutationVariables = Exact<{
7442774427
toStopPlaceId: Scalars['String']['input'];
7442874428
quayIds: ReadonlyArray<Scalars['String']['input']> | Scalars['String']['input'];
7442974429
moveQuayFromDate: Scalars['stop_registry_LocalDate']['input'];
74430-
fromVersionComment: Scalars['String']['input'];
74431-
toVersionComment: Scalars['String']['input'];
7443274430
}>;
7443374431

7443474432

@@ -86677,7 +86675,7 @@ export type GetHistoricalStopAreaDetailsQueryHookResult = ReturnType<typeof useG
8667786675
export type GetHistoricalStopAreaDetailsLazyQueryHookResult = ReturnType<typeof useGetHistoricalStopAreaDetailsLazyQuery>;
8667886676
export type GetHistoricalStopAreaDetailsSuspenseQueryHookResult = ReturnType<typeof useGetHistoricalStopAreaDetailsSuspenseQuery>;
8667986677
export type GetHistoricalStopAreaDetailsQueryResult = Apollo.QueryResult<GetHistoricalStopAreaDetailsQuery, GetHistoricalStopAreaDetailsQueryVariables>;
86680-
export const MoveQuayToStopPlaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"moveQuayToStopPlace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toStopPlaceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quayIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"moveQuayFromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"stop_registry_LocalDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromVersionComment"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toVersionComment"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stop_registry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"moveQuaysToStop"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"toStopPlaceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toStopPlaceId"}}},{"kind":"Argument","name":{"kind":"Name","value":"quayIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quayIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"moveQuayFromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"moveQuayFromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"fromVersionComment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromVersionComment"}}},{"kind":"Argument","name":{"kind":"Name","value":"toVersionComment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toVersionComment"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"stop_registry_StopPlace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"versionComment"}},{"kind":"Field","name":{"kind":"Name","value":"quays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"publicCode"}},{"kind":"Field","name":{"kind":"Name","value":"keyValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"values"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;
86678+
export const MoveQuayToStopPlaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"moveQuayToStopPlace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toStopPlaceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quayIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"moveQuayFromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"stop_registry_LocalDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stop_registry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"moveQuaysToStop"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"toStopPlaceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toStopPlaceId"}}},{"kind":"Argument","name":{"kind":"Name","value":"quayIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quayIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"moveQuayFromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"moveQuayFromDate"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"stop_registry_StopPlace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"versionComment"}},{"kind":"Field","name":{"kind":"Name","value":"quays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"publicCode"}},{"kind":"Field","name":{"kind":"Name","value":"keyValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"values"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;
8668186679
export type MoveQuayToStopPlaceMutationFn = Apollo.MutationFunction<MoveQuayToStopPlaceMutation, MoveQuayToStopPlaceMutationVariables>;
8668286680

8668386681
/**
@@ -86696,8 +86694,6 @@ export type MoveQuayToStopPlaceMutationFn = Apollo.MutationFunction<MoveQuayToSt
8669686694
* toStopPlaceId: // value for 'toStopPlaceId'
8669786695
* quayIds: // value for 'quayIds'
8669886696
* moveQuayFromDate: // value for 'moveQuayFromDate'
86699-
* fromVersionComment: // value for 'fromVersionComment'
86700-
* toVersionComment: // value for 'toVersionComment'
8670186697
* },
8670286698
* });
8670386699
*/

0 commit comments

Comments
 (0)