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

Add category term name as notice in opening hours legacy API #1956

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kasperg
Copy link
Contributor

@kasperg kasperg commented Jan 10, 2025

Link to issue

https://reload.atlassian.net/browse/DDFHER-177

Description

The Redia app requires opening hours to have a category for them to be displayed. Currently we only return the category id. However new categories are not likely to be the same as previously. Also we do not provide an API for exposing categories with their ids and titles.

To address this in a simple way we add the category name as a notice for each instance.

It turns out that the Redia app will display opening hours with the notice if the notice is defined no matter what the category id is. Consequently this is a rather simple way to communicate the information.

The Redia app requires opening hours to have a category for them to be
displayed. Currently we only return the category id. However new
categories are not likely to be the same as previously. Also we do not
provide an API for exposing categories with their ids and titles.

To address this in a simple way we add the category name as a notice
for each instance.

It turns out that the Redia app will display opening hours with the
notice if the notice is defined no matter what the category id is.
Consequently this is a rather simple way to communicate the
information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants