MM-70042: Improve project handling in the GitLab integration - #690
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
📝 WalkthroughWalkthroughGitLab project retrieval now validates configured group membership. Permalink preview generation applies the same namespace gate, and tests cover blocked, allowed, and unrestricted configurations. ChangesNamespace gating
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@server/mcp_test.go`:
- Around line 408-414: Run gofmt on server/mcp_test.go, including the test block
containing the JSON encoder response, and preserve the resulting formatting
changes so the lint check passes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ad563221-ddc6-4905-8ad1-9632244a2406
📒 Files selected for processing (4)
server/gitlab/api.goserver/mcp_test.goserver/permalinks.goserver/permalinks_test.go
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
🤖 Automation starting cherry-pick for the following target branches:
- release-1.12
- release-1.13
Results will be posted here once all branches are complete.
cc. @edgarbellot
|
(Sorry for the noise, testing a cherry-pick packport automation) |
There was a problem hiding this comment.
🤖 Cherry-pick automation complete for #690.
- #696: retarget base from
master→release-1.12; add reviewersedgarbellot,amyblais; add labelsChangelog/Not Needed,Docs/Not Needed,Do Not Merge/Awaiting Next Release,AI/Babysit - #697: retarget base from
master→release-1.13; add the same reviewers and labels
cc. @edgarbellot
|
🤖 Starting cherry-pick of #690 onto the following branches:
Results will be posted here when complete. |
|
🤖 Cherry-pick of #690 complete.
|


See MM-70045 for more details.
Change Impact: 🟡 Medium
Reasoning: The change adds extra namespace/group gating to GitLab project retrieval and permalink preview generation, which directly affects user-facing project access and code preview behavior across multiple components. Existing automated tests cover the primary in-group/out-of-group/unconfigured scenarios, but there’s still moderate risk of blocking or altering edge-case namespaces.
Regression Risk: Moderate—behavior changes occur in core GitLab integration logic (project fetching and permalink processing), and failures in the new validation could impact previews even when the initial fetch succeeds.
QA Recommendation: Perform focused manual QA for in-group vs out-of-group vs unconfigured GitlabGroup permutations, especially around permalink preview expansion. Skipping manual QA is not recommended due to the user-facing behavioral change, though automated tests should catch many regressions.
Generated by CodeRabbitAI