Skip to content

Conversation

@jablan
Copy link
Collaborator

@jablan jablan commented Jan 27, 2026

New upload batches API endpoint enables us to perform unmentioned keys cleanup before waiting for all the uploads to finish. This PR makes use of this change and also introduces delete_unmentioned_keys as a configuration file parameter, so it doesn't need to be specified as the CLI argument.

@jablan jablan changed the title feat(API): creating upload batches #SCD-687 feat(go): key cleanup using batches #SCD-687 Jan 27, 2026
@jablan jablan changed the title feat(go): key cleanup using batches #SCD-687 feat(CLI): key cleanup using batches #SCD-687 Jan 27, 2026
@jablan jablan marked this pull request as ready for review January 27, 2026 14:39
@jablan jablan requested a review from Copilot January 27, 2026 14:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces the ability to perform key cleanup using upload batches, allowing cleanup to be scheduled before uploads complete. The changes replace the previous cleanup mechanism with a new batch-based API endpoint and add delete_unmentioned_keys as a configuration file parameter.

Changes:

  • Replaced UploadCleanup function with CreateUploadBatch to use the new upload batches API
  • Added delete_unmentioned_keys configuration parameter support in push section
  • Restructured configuration to use Push and Pull sections instead of Sources and Targets

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
clients/cli/cmd/internal/upload_cleanup.go Updated to call CreateUploadBatch instead of UploadCleanup
clients/cli/cmd/internal/shared.go Renamed and refactored UploadCleanup to CreateUploadBatch with new batch API
clients/cli/cmd/internal/push_source.go Modified to read from config.Push and extract delete_unmentioned_keys parameter
clients/cli/cmd/internal/push.go Updated cleanup logic to work without requiring --wait flag and use config parameter
clients/cli/cmd/internal/pull_target.go Changed to read from config.Pull instead of config.Targets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jablan jablan requested a review from theSoenke January 27, 2026 14:44
@jablan jablan merged commit 3d8f064 into main Jan 28, 2026
11 checks passed
@jablan jablan deleted the scd-687-cli-cleanup-using-batch branch January 28, 2026 11:17
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.

4 participants