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

COPDS-1489: remove old requests #99

Merged
merged 7 commits into from
Apr 3, 2024
Merged

COPDS-1489: remove old requests #99

merged 7 commits into from
Apr 3, 2024

Conversation

alex75
Copy link
Contributor

@alex75 alex75 commented Feb 29, 2024

In this PR:

  • Added an entry point "remove-old-requests" to remove requests older than X days (default days=365)
  • the entry points remove also requests-related events (this via a new delete-cascade db rule)
  • the old records of adaptor_properties are removed too if they are without any child requests (using a new timestamp column)
  • the PK request_id of system_requests is useless (and dangerous, it's an integer sequence instead of a biginteger), so it was removed, the new primary key is request_uid

@FussyDuck
Copy link

FussyDuck commented Feb 29, 2024

CLA assistant check
All committers have signed the CLA.

@alex75 alex75 self-assigned this Feb 29, 2024
@alex75 alex75 merged commit 6725fa3 into main Apr 3, 2024
7 of 9 checks passed
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