TromsFylkestrafikk / ragnarok

Harvest public transport data for statistics usage
0 stars 0 forks source link

Don't delete old raw data #52

Closed tfk-kaare closed 7 months ago

tfk-kaare commented 8 months ago

Problem / Motivation

It's easy to accidentally delete data. Ragnarok is ment for a safe house for historic data, and then we need a better mechanism for protecting the older data set.

Suggested resolution

Don't allow deletion of data older than X, where X is configurable, possibly per sink. This means chunks must have an assocciated date with it.

tfk-kaare commented 7 months ago
  1. Use permissions? I.e. 'allow delete old chunks'
  2. UI restriction only?
  3. Combination?
tfk-kaare commented 7 months ago

So far there is config + ui restrictions, with no possibility for super-duper-admins to delete old chunks. Probably good for now.