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 preventing deletion of unrelated events #477

Merged
merged 1 commit into from
Jun 25, 2021

Conversation

Rillke
Copy link
Contributor

@Rillke Rillke commented Apr 29, 2021

  • It's unexpected that SHOW_TOS has ruled whether scheduled
    events not created by Stud.IP would be deleted or not.
  • Stud.IP should not always delete events scheduled in Opencast
    by other software, e.g. the Opencast admin interface.
  • By default, the new option to delete events not created by
    Stud.IP is turned off.
  • Always delete events which have been created by Stud.IP if the
    course date can't be found in Stud.IP anymore (i.e. the date had
    been ereased).

@Rillke Rillke changed the title Add option preventing deletion of unrelated events WIP: Add option preventing deletion of unrelated events Apr 29, 2021
@Rillke Rillke force-pushed the rr/optionManageAllOcEvents branch from ecf3bf7 to f42ad89 Compare April 30, 2021 05:12
@Rillke Rillke changed the title WIP: Add option preventing deletion of unrelated events Add option preventing deletion of unrelated events Apr 30, 2021
@Rillke Rillke changed the title Add option preventing deletion of unrelated events WIP: Add option preventing deletion of unrelated events May 3, 2021
@Rillke
Copy link
Contributor Author

Rillke commented May 3, 2021

I noticed an edge case which may cause to deletion of events that are perfectly fine if they are scheduled in the moment the cronjob runs. This is now fixed, too.

@Rillke Rillke force-pushed the rr/optionManageAllOcEvents branch from f42ad89 to 6012c0f Compare May 3, 2021 07:08
@Rillke Rillke changed the title WIP: Add option preventing deletion of unrelated events Add option preventing deletion of unrelated events May 3, 2021
- It's unexpected that SHOW_TOS has ruled whether scheduled
  events not created by Stud.IP would be deleted or not.
- Stud.IP should not always delete events scheduled in Opencast
  by other software, e.g. the Opencast admin interface.
- By default, the new option to delete events not created by
  Stud.IP is *turned off*.
- Always delete events which have been created if the course
  date can't be found in Stud.IP anymore (i.e. the date had
  been ereased).
- Determine events to be deleted more safely: First ask
  Opencast so it can't return events scheduled while the
  cronjob was running and queried the Stud.IP DB for known
  schedule.
@Rillke Rillke force-pushed the rr/optionManageAllOcEvents branch from 6012c0f to c8e7cfe Compare May 8, 2021 18:53
@Rillke
Copy link
Contributor Author

Rillke commented May 8, 2021

  • rebased
  • db update renumbered

@Rillke
Copy link
Contributor Author

Rillke commented Jun 7, 2021

@tgloeggl If you are ready to merge this, please let me know, or just rename the DB update after merge :)

It's in our production for a while and produces nice logs on every run (and only deletes those events it should).

@tgloeggl
Copy link
Member

tgloeggl commented Jun 25, 2021

Das sieht gut aus, danke!

@tgloeggl tgloeggl merged commit cd09a22 into elan-ev:master Jun 25, 2021
@tgloeggl tgloeggl added this to the Opencast >1.26 milestone Jun 25, 2021
@tgloeggl tgloeggl self-requested a review June 25, 2021 09:27
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