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

Support various data retention policies #62

Open
17 of 26 tasks
oubiwann opened this issue Jan 31, 2023 · 0 comments
Open
17 of 26 tasks

Support various data retention policies #62

oubiwann opened this issue Jan 31, 2023 · 0 comments
Labels
Milestone

Comments

@oubiwann
Copy link
Contributor

oubiwann commented Jan 31, 2023

Due to the issue in #59, we're taking a more creative (and flexible) approach to deleting records.

0.7.0 Tasks:

  • Add "active" and "deleted" fields to metadata
  • Update rm command to not delete the record, but rather update the metadata
  • Add support for updating a record to "inactive" (active=false)
  • Add command to list deleted records
  • Update listing displays to optionally include status (active, inactive, deleted)
  • Add set status (active, inactive, deleted) subcommand

0.9.0 Tasks:

  • Add config section [retention]
    • add option purge_on_shutdown (default false)
    • add option archive_deletes (default true)
    • add option delete_inactive (default false)
  • Add config section [output]
    • add option show_inactive
    • add option show_deleted
  • Add support for executing callbacks on shutdown
  • Add logic and tests for new config options above:
    • Add testing configs and the ability to use them for specific tests
    • Add logic for scanning all records and completely removing those that have been labeled as deleted
    • Add logic for scanning all inactive records and setting them to deleted
    • Update output opts to add flags for showing inactive/deleted
    • Update output results to show/hide based upon these flags
  • Add/update subcommands
    • config re-init
    • Rename rm module to delete and rename the subcommand, too
    • delete inactive ... note that this implies a two-stage delete process
    • purge deleted
    • purge inactive ... this would skip the two stage process and go right to "delete"
@oubiwann oubiwann added the epic label Jan 31, 2023
@oubiwann oubiwann modified the milestones: 0.7.0, 0.8.0 Jan 31, 2023
@oubiwann oubiwann modified the milestones: 0.8.0, 0.9.0 Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant