fix(cli): Pull namespace for OTs from attr val - #3725
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the namespaced policy migration process for obligation triggers. By shifting the namespace derivation source from the obligation value to the trigger's attribute value, the system now correctly handles cases where these values reside in different namespaces. This change ensures more accurate policy migrations and includes updated test coverage to validate the new derivation logic. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. The namespace was hard to define, / Derived from the wrong dotted line. / With attributes set, / The target is met, / And policies now will align. Footnotes
|
📝 WalkthroughWalkthroughThis PR changes namespace resolution for obligation triggers in the namespacedpolicy migration planner to derive the target namespace from the trigger's attribute value instead of its obligation value, removes the now-unused helper, and updates unit and E2E test fixtures/assertions accordingly. ChangesObligation-trigger namespace derivation
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: Suggested reviewers:
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the namespaced policy migration logic to derive the namespace of an obligation trigger from its attribute value instead of its obligation value. The unused helper function namespaceFromObligationValue has been removed, and both unit and end-to-end tests have been updated to reflect and verify this change. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
|
Summary
Fixes namespaced policy migration for obligation triggers so the target namespace is derived from the trigger’s attribute value, not the obligation
value.
Changes
Summary by CodeRabbit
Bug Fixes
Tests