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

Add Rearchive API #7

Merged
merged 4 commits into from
Feb 20, 2024
Merged

Add Rearchive API #7

merged 4 commits into from
Feb 20, 2024

Conversation

danyalprout
Copy link
Collaborator

Description

This PR adds a new API on the archiver process POST /rearchive?from=<slot>&to=<slot>. When invoked this API will travese all the slots in this range and overwrite the data stored in the data store.

The majority of the changes in this PR is splitting the archiving logic out of the service and moving it into it's own Archiver struct in archiver.go. This allows both the API and background job to interact with the archiving logic.

@danyalprout danyalprout marked this pull request as ready for review February 19, 2024 01:55
@danyalprout danyalprout mentioned this pull request Feb 19, 2024
@danyalprout danyalprout merged commit 88f0b16 into master Feb 20, 2024
4 checks passed
@danyalprout danyalprout deleted the rearchive-request branch February 20, 2024 20:43
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