Skip to content

Multiple events have the same path #3060

@steffenkleinle

Description

@steffenkleinle

Describe the Bug

Due to multiple events using the same path, the search in the frontends is atm broken for the Ostallgäu: https://integreat.app/ostallgaeu/de/search

Another example for pois: https://integreat.app/schwaebischhall/ru/locations (Stadtbibliothek)

We rely on the path/url of all pages (categories, events, pois, ...) to be unique to be able to use them as IDs. This assertion seems to be broken, but should be enforced in the CMS.

Steps to Reproduce

  1. Request https://cms.integreat-app.de/api/v3/ostallgaeu/de/events/?combine_recurring=True
  2. See two items with path: /ostallgaeu/de/events/handarbeits-werkstatt-mit-begegnung-und-austausch-5

Expected Behavior

No events/categories/pois to have the same id.

Actual Behavior

Two events have the same id.

Additional Information

App issue: digitalfabrik/integreat-app#2928
Mattermost discussion: https://chat.tuerantuer.org/digitalfabrik/pl/53jp75ehfj8mbdtwh3u56xhrua

Metadata

Metadata

Assignees

Labels

effort: mediumShould be doable in <12htopic:eventsIssues related to the events module

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions