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

set recurrence_id based on event _id #1936

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

petrjasek
Copy link
Member

so we can later check which event is the initial one

CPCN-695

@@ -223,7 +223,7 @@ def on_create(self, docs):
recurring_events = generate_recurring_events(event)
generated_events.extend(recurring_events)
# remove the event that contains the recurring rule. We don't need it anymore
docs.remove(event)
docs.remove(event) # todo: why we remove that event and not update it?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can fix this by skipping the first event inside generate_recurring_events function, that way the passed in Event will not need to be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, will avoid further changes at this stage but might fix it later

@petrjasek petrjasek merged commit 0f6cda1 into superdesk:hotfix/2.6.3 Mar 25, 2024
14 of 17 checks passed
@petrjasek petrjasek deleted the fix-recurrence-id-random branch March 25, 2024 08:54
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.

2 participants