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

Update event API, editing series should reflect in changed date. DDFHER-132 #1773

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

rasben
Copy link
Contributor

@rasben rasben commented Nov 19, 2024

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

As we use inheritance, we want an updated series to also reflect in the updatedAt API property.
We could implement this, by programmatically saving all instances when the series is saved, but this may have unforseen consequences, as it is running against the Drupal system.
Instead, we'll look up the instance and series changed dates, and take which ever is newer.

If you want to test it, you can try to edit both a series and an instance, and see that the changes are reflected in updatedAt property at /api/v1/events

…ER-132

As we use inheritance, we want an updated series to also reflect in the
updatedAt API property.
We could implement this, by programmatically saving all instances when
the series is saved, but this may have unforseen consequences, as it is
running against the Drupal system.
Instead, we'll look up the instance and series changed dates, and take
which ever is newer.
Copy link
Contributor

@kasperbirch1 kasperbirch1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me! But since it’s not an area I’m deeply familiar with, I’ll leave it to you to decide if you’d like a second opinion.

Based on your explanation, though, I’m happy to approve.

@kasperg kasperg assigned rasben and unassigned kasperg, xendk and kasperbirch1 Nov 20, 2024
@rasben rasben merged commit 3147e01 into develop Nov 28, 2024
19 checks passed
@rasben rasben deleted the DDFHER-132_event-api-changed branch November 28, 2024 06:50
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.

5 participants