smui icon indicating copy to clipboard operation
smui copied to clipboard

Deletion of rule collection without rules, but existing event history

Open pbartusch opened this issue 3 years ago • 1 comments

A rule collection can be deleted (admin screen), if no rules (inputs) are maintained for it. Anyway, if that collection has a history of (deleted) events assigned to it, those events will not get deleted, and stay in the database.

There are different options to deal with this:

  1. Do not allow the deletion of a rule collections, if history events are associated with it.
  2. Reconfirm deletion of a rule collection, if history events are associated with it, e.g. "There exist a history for the rule collection. Do you really want to delete it? [Yes] [No]"
  3. Just delete the history without further communication.

I am curious for your thoughts on this.

pbartusch avatar Jan 05 '22 12:01 pbartusch

Hi @pbartusch, why should it even matter, if there's any history event associated with it? How I understand it: with any creation, edition etc. of a rule, a history event is created. If this is correct, you would have a history for every collection, that ever held even a single rule.

MikeAtBT avatar May 11 '22 16:05 MikeAtBT