[ar-api] Honor CLI project creation credentials (VID-33) - #536
Merged
Merged
Conversation
Contributor
Author
|
E2E verification on exact PR head
Both exact fixtures were deleted through the public CLI Trash path. Each active GET then returned 404, and Trash listed the matching slug and project ID ( |
digaobarbosa
marked this pull request as ready for review
October 1, 2026 17:38
joaomarcoscrs
approved these changes
Oct 1, 2026
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
project createadvertised an API key override, but used the environment or default workspace key instead. A user targeting another workspace could fail during authentication or lookup before the project was created.The command now uses the explicit key when supplied, otherwise the key stored for the selected workspace. The same key reaches authentication, workspace lookup, and project creation.
Project types, the creation request, and the
id/name/typeoutput remain the same.Validation
python -m unittest tests.cli.test_project_handler: 16 passed. Two tests invoke the public CLI with isolated HTTP responses and assert the key on auth POST, workspace GET, and project POST for explicit and stored-key cases. They also check payload and JSON output for object detection and Action Recognition./kiss: removed one redundant mocked Action Recognition creation test; the real CLI test retains its type, payload, and result assertions.make check_code_quality, test-file Ruff format/check, andgit diff --check: passed.dd32ce87e22222eec319ababbc7e7f6f75c4220e; independent GET and CLI get/list confirmed private Action Recognition projects, followed by exact-fixture Trash cleanup and active GET 404.Runtime scope
The CLI does not expose the create POST's numeric status; E2E confirmed CLI exit 0 and subsequent authenticated GET 200. Testing used disposable private staging projects. No production writes, uploads, training, deployment, or package publication occurred.