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

Fix delete #92

Merged
merged 16 commits into from
Jan 24, 2014
Merged

Fix delete #92

merged 16 commits into from
Jan 24, 2014

Conversation

pypingou
Copy link
Member

No description provided.

This field is in fact only set by a GET parameter
Find the meeting date closest to the date specified, it is either the date specified or the
next occurence, use this as reference date.

- If all the meeting is specified: kill the recursivity one day before the next iteration.

- If all the meeting is false: kill the recursivity one day before the next iteration, copy the
old meeting into a new one, this new meeting starts at the next iteration, so
<frequency> days after the date found ealier and ends at the original recursion end.

Fixes https://fedorahosted.org/fedocal/ticket/101
- forward the form_date argument up to delete_meeting

- call appropriately the delete_recursive_meeting function from the internal API
days=meeting.recursion_frequency)
new_meeting.recursion_ends = original_rec_end

new_meeting.save(session)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this missing a session.commit()?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's in the controller (for some reasons :/)

@ralphbean
Copy link
Contributor

👍 to merge! 🏩

pypingou added a commit that referenced this pull request Jan 24, 2014
@pypingou pypingou merged commit a180246 into master Jan 24, 2014
@pypingou pypingou deleted the fix_delete branch January 24, 2014 17: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.

2 participants