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

Rake task for purging deleted Monster entries #15

Open
gregmalcolm opened this issue May 9, 2016 · 0 comments
Open

Rake task for purging deleted Monster entries #15

gregmalcolm opened this issue May 9, 2016 · 0 comments

Comments

@gregmalcolm
Copy link
Owner

Need to write something that removes monster imports that need to be deleted.

Prerequisite: Need to implement #14 so we can tell all the records that are 100% updated by the batch job importing data from the Monster.

Rules:

  • Only remove entries where the updaters are 100% EDDiscovery.
  • Work from the child dependencies and work back, only pruning when there are no children.
  • Only remove records that have not been updated in at least 6 hours.
  • If the count of rows to change is above a sensible threshold abort then abort. We don't want to lose everything just because the Monster imports aren't importing for some reason.
  • Provide some kind of scope on each model for pulling back purgable records so it's easy to check them over from the console without actually purging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant