Skip to content

Missing Structures to publish in APIv2 #4436

@Chatewgne

Description

@Chatewgne

Describe the bug

Structures appear in APIv2 if they are related to a published Trek or a published Touristic Content. This is not exhaustive, we should also check for 7 other models that are related to Structure : Infrastructure, Signage, POI, Service, Touristic Event, Site, Course.

(As a result, some objects might not appear in GeotrekAggregator because their mandatory structure wasn't found and they aren't downloaded - we have to bypass this by not aggregating the Structure)

Here is the draft for a fix : #4435 but this isn't viable because the request is way too slow.

We need to find a more efficient way to filter for published related objects in APIv2, especially if we have so many different models to check for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions