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 option for setting an event as recurring #9

Open
Frewacom opened this issue Mar 28, 2021 · 2 comments
Open

Add option for setting an event as recurring #9

Frewacom opened this issue Mar 28, 2021 · 2 comments
Assignees
Labels
api Improvement or changes to the API feature New feature future

Comments

@Frewacom
Copy link
Member

Some events happen regularly, e.g. lunch. To make this easier to manage, student nations should be able to mark an event as recurring.

@Frewacom Frewacom added feature New feature api Improvement or changes to the API labels Mar 28, 2021
@McFrappe
Copy link
Member

A flag for the event model might fix this... unless some magic with the DateTime or similar.
Hm i wonder if it would be enough to do the following algorithm:

  • everyday, at a specific time, check for the events that has already occured (from the day before)
  • If they have occured, then remove them or display them as "occured" or similar.
  • If an event has a flag that informs this check that it is a reacurring event, then it does not bother with it and continues along to check other events for their dates.

Anything else one might add to this?

@McFrappe McFrappe self-assigned this May 3, 2021
@McFrappe
Copy link
Member

Commit 0dd6e0e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Improvement or changes to the API feature New feature future
Projects
None yet
Development

No branches or pull requests

2 participants