Repository navigation
M3 followup after testing prod candidate - #5242
Conversation
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Manager decisions and rollback writes remain non-atomic, allowing concurrent requests to overwrite or reopen completed decisions.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Ports the M3 production-candidate follow-up from PR #5241, improving manager-request handling and company/approval-list edge cases.
Changes:
- Adds conflict handling for already-decided manager requests.
- Improves company parent selection and timestamp ordering.
- Allows approval-list removals when no repositories exist.
| File | Description |
|---|---|
docs/M3_ORG_LENS_API.md |
Documents manager-request conflicts. |
cla-backend-legacy/internal/store/companies.go |
Compares normalized creation timestamps. |
cla-backend-legacy/internal/store/companies_test.go |
Tests timestamp ordering. |
cla-backend-go/v2/cla_manager/service.go |
Defines pending/conflict state. |
cla-backend-go/v2/cla_manager/requests.go |
Adds decision checks and recovery logic. |
cla-backend-go/v2/cla_manager/requests_test.go |
Tests decisions, ACL recovery, and conflicts. |
cla-backend-go/v2/cla_manager/handlers.go |
Maps decided requests to HTTP 409. |
cla-backend-go/swagger/cla.v2.yaml |
Declares conflict responses. |
cla-backend-go/signatures/repository.go |
Handles missing repositories during removals. |
cla-backend-go/signatures/approval_list_removal_test.go |
Tests repository-free GitHub removal. |
cla-backend-go/company/repository_external_id.go |
Distinguishes parent from signing-entity rows. |
cla-backend-go/company/repository_external_id_test.go |
Tests parent creation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


cc @mlehotskylf @ahmedomosanya -
prod/mainversion of #5241.Signed-off-by: Łukasz Gryglicki lgryglicki@cncf.io
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude