Repository navigation
Add Project.move_images_to_batch and 'annotation batch move' (REQ-238) - #565
Draft
tonylampada wants to merge 4 commits into
Draft
tonylampada wants to merge 4 commits into
tonylampada wants to merge 4 commits into
Conversation
Moves existing images, by IDs or tag, into an annotation batch named or
identified, via POST /{ws}/{proj}/batches/move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Matches the final SLM-156 contract: path, integer skipped, and the per-call cap for image IDs and tags, surfaced with a hint in the CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A customer's upload script re-uploads images that already exist; dedup leaves them in their old batch, and there is no API-key way to regroup them into the batch they belong in (REQ-238). This adds
Project.move_images_to_batch(...)androboflow annotation batch move -p <project> (--batch-name N | --batch-id ID) (--tag T | --image-id ID ...), which move up to 1000 images (the UI's cap) per call, by ID or by tag, into a batch named (reused or created) or identified. Serves O8 (one API shape on every surface).Draft until the API ships: it calls
POST /{workspace}/{project}/annotation-batches/movefrom roboflow/roboflow#18290, matching its final contract. Docs: roboflow/docs#406.Under review: the command lives under
annotation batch, notbatch(that group is Batch Processing jobs).Type of change
How has this change been tested?
--json, tag-over-cap error, exit codes 1/2/3); all 10 fail onmain. Full suite: 1261 OK.API_URL=http://127.0.0.1:8765), evidence gist.Any specific deployment considerations
None; ships with the next PyPI release, after #18290 is deployed.
🤖 Generated with Claude Code