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

Move purger API endpoints to compactor #2644

Merged
merged 5 commits into from
Aug 8, 2022

Conversation

LeviHarrison
Copy link
Contributor

@LeviHarrison LeviHarrison commented Aug 3, 2022

What this PR does

This PR moves the purger API endpoints to the compactor component.

There are two implementation decisions I made but am not entirely sure about:

  • The endpoints are now under /compactor, not /purger.
  • Internally, the endpoints were part of a seperate module: TenantDeletion. When transferring over the endpoints I merged them directly into the Compactor module instead of keeping the separate TenantDeletion module. My reasoning was that none of the other compactor API endpoints are part of a separate module.

Which issue(s) this PR fixes or relates to

Fixes #2190

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@LeviHarrison LeviHarrison force-pushed the move-purger-to-compactor branch 2 times, most recently from eaceb02 to 792cefb Compare August 3, 2022 21:02
@pracucci pracucci self-requested a review August 4, 2022 09:45
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! What you did is just right 👍

Note to reviewers: this breaking change is allowed because tenant deletion APIs are still marked as experimental.

Few more comments:

  • Please update docs/sources/operators-guide/configure/about-versioning.md. We mention "Purger: Tenant deletion API". It should be moved under "Compactor" section in the list.
  • Please remove the purger from development/tsdb-blocks-storage-s3/ and integration/

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

CHANGELOG.md Outdated Show resolved Hide resolved
@pracucci pracucci enabled auto-merge (squash) August 8, 2022 12:10
@pracucci pracucci merged commit 23afa07 into grafana:main Aug 8, 2022
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.

Move purger API endpoint to another component
2 participants