Skip to content

feat(GitLab): Link GitLab issues and merge requests to feature flags#7274

Open
emyller wants to merge 3 commits intofeat/gitlab-browse-frontendfrom
feat/gitlab-link-issues-mrs-flow
Open

feat(GitLab): Link GitLab issues and merge requests to feature flags#7274
emyller wants to merge 3 commits intofeat/gitlab-browse-frontendfrom
feat/gitlab-link-issues-mrs-flow

Conversation

@emyller
Copy link
Copy Markdown
Contributor

@emyller emyller commented Apr 17, 2026

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes #7160

Stack: #7270 (backend) → #7273 (frontend) → #7274 (this)

With browsing in place (#7270, #7273), users can now link GitLab issues and merge requests to their feature flags. This completes the core linking flow.

Slight refactor: <ExternalResourcesTable> now renders regardless of GitHub.

Review effort: 2/5

How did you test this code?

Integration tests. Manual UI tests. Screenshots:

image image

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Apr 18, 2026 2:14am
flagsmith-frontend-preview Ignored Ignored Preview Apr 18, 2026 2:14am
flagsmith-frontend-staging Ignored Ignored Preview Apr 18, 2026 2:14am

Request Review

@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard api Issue related to the REST API feature New feature or request labels Apr 17, 2026
@emyller emyller changed the title feat(GitLab): Link GitLab issues and MRs to feature flags feat(GitLab): Link GitLab issues and merge requests to feature flags Apr 17, 2026
@emyller emyller force-pushed the feat/gitlab-link-issues-mrs-flow branch from 4a25c7e to 8c91bf3 Compare April 17, 2026 00:51
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feat/gitlab-browse-frontend@c4a4307). Learn more about missing BASE report.

Additional details and impacted files
@@                      Coverage Diff                       @@
##             feat/gitlab-browse-frontend    #7274   +/-   ##
==============================================================
  Coverage                               ?   98.36%           
==============================================================
  Files                                  ?     1366           
  Lines                                  ?    51154           
  Branches                               ?        0           
==============================================================
  Hits                                   ?    50320           
  Misses                                 ?      834           
  Partials                               ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@emyller emyller force-pushed the feat/gitlab-link-issues-mrs-flow branch from 8c91bf3 to a214ee7 Compare April 17, 2026 00:59
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Apr 17, 2026
@emyller emyller marked this pull request as ready for review April 17, 2026 01:05
@emyller emyller requested review from a team as code owners April 17, 2026 01:05
@emyller emyller requested review from Zaimwa9 and removed request for a team April 17, 2026 01:05
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-7274 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-7274 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-7274 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7274 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7274 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-7274 Finished ✅ Results

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  45.1 seconds
commit  a214ee7
info  🔄 Run: #16160 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  30.5 seconds
commit  a214ee7
info  🔄 Run: #16160 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  47.1 seconds
commit  a214ee7
info  🔄 Run: #16160 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  59.2 seconds
commit  a214ee7
info  🔄 Run: #16160 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  39.8 seconds
commit  8bf6b03
info  🔄 Run: #16180 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  55.6 seconds
commit  8bf6b03
info  🔄 Run: #16180 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  46.7 seconds
commit  8bf6b03
info  🔄 Run: #16180 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  1 minute, 3 seconds
commit  8bf6b03
info  🔄 Run: #16180 (attempt 1)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

Visual Regression

16 screenshots compared. See report for details.
View full report

Comment on lines +156 to +157
"issue-linked",
project__id=feature.project_id,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use organisation__id here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dibs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8bf6b03 — also fixed other GitLab logs since we're here.

Copy link
Copy Markdown
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit: — again, just 1 comment.

Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of mostly minor comments that should be quite straightforward 👍

) -> Response:
response = super().create(request, *args, **kwargs)
structlog.get_logger("gitlab").info(
"issue-linked",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add organisation Id ?

Copy link
Copy Markdown
Contributor Author

@emyller emyller Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, thanks for pointing to guidance docs. 8bf6b03 — also fixed other recently added logs to meet guidelines.

Comment on lines +47 to +51
metadata: {
state: selectedItem.state,
title: selectedItem.title,
...('merged' in selectedItem && { merged: selectedItem.merged }),
...('draft' in selectedItem && { draft: selectedItem.draft }),
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are never passing iids ? cf backend related test

Comment on lines +58 to +62
}).then(() => {
toast('GitLab link added')
setSelectedItem(null)
AppActions.refreshFeatures(projectId, environmentId)
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same we'd need to catch error (and at the same time move to async/await 😄 )

*args: Any,
**kwargs: Any,
) -> Response:
response = super().create(request, *args, **kwargs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the payload has already been validated, so shouldn't it be a perform_create directly ?

@emyller emyller force-pushed the feat/gitlab-link-issues-mrs-flow branch from a214ee7 to 8bf6b03 Compare April 18, 2026 02:14
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants