✨ feat(repository,cli): add namespace registry with DynamoDB records and CLI commands#382
Merged
Conversation
…tration (#369) Add full namespace lifecycle management (register, list, delete, recover, purge) with CLI commands. Extend sync code generator to handle asyncio.gather(*iterable) pattern, enabling concurrent bulk registration in both async and sync variants via _run_in_executor with default-arg capture lambdas. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ommands Add pagination tests for list_namespaces, list_orphan_namespaces, and purge_namespace GSI4 queries. Cover reserved namespace edge case in recover_namespace. Add 44 CLI tests for all namespace subcommands including error branches and validation errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #382 +/- ##
==========================================
+ Coverage 91.48% 91.82% +0.33%
==========================================
Files 33 33
Lines 7118 7385 +267
==========================================
+ Hits 6512 6781 +269
+ Misses 606 604 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Member
Author
Review: PR #382 — Namespace Registry + CLI (#369)All 47 acceptance criteria verified against issue #369. CI green across all checks. Acceptance Criteria Summary
Code Quality Notes
Test Coverage
One Observation (Non-Blocking)
Closes #369. Ready to merge. 🤖 Generated with Claude Code |
Replace direct _get_client() usage in `namespace show` CLI command with a proper Repository.get_namespace() method. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Repository:register_namespace,register_namespaces,list_namespaces,delete_namespace,recover_namespace,list_orphan_namespaces, andpurge_namespacenamespaceCLI subcommand group withregister,list,show,delete,recover,orphans, andpurgecommands#NAMESPACE#) and reverse (#NSID#) DynamoDB records under the reserved_/SYSTEM#partitionregister_namespaces()usingasyncio.gather/_run_in_executor_is rejected withValueErroracross all operationsTest plan
tests/unit/test_namespace_registry.py)tests/unit/test_cli.py)tests/integration/test_namespace_registry.py)uv run pytest tests/unit/passesuv run mypy src/zae_limiter/passeshatch run generate-sync)Closes #369
🤖 Generated with Claude Code