Skip to content

Cannot modify GroupOfStopPlaces due to child-stops from MM being members instead of MM point #249

Description

@assadriaz

Description:

I am unable to make any changes to this stop place group:
https://stoppested.dev.entur.org/group/NSR:GroupOfStopPlaces:31

Image

The issue appears to be that the group contains members that are child-stops belonging to a MM (MultiModal stop), rather than the MM point itself.
The correct structure should be that the MM point is the member, not its individual child-stops.

Steps to reproduce:

Create a MM stop without checking whether its children are already members in a GroupOfStopPlaces (GOSP).
Attempt to edit the GroupOfStopPlaces that contains those child-stops.
Editing is blocked.
Expected behavior:
When creating a MM stop, the system should verify if any of its children are members of a GOSP and replace them with the MM point as the member.
Actual behavior:
The MM stop is created with children that are already members of a GOSP, causing edit restrictions on that group.

Proposed fix:

Update MM stop creation logic to check if any child-stops are members of a GOSP.
If so, replace those child members with the MM point.

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions