Skip to content

feat(ui): allow copying flags across environments#5772

Open
AnouarMohamed wants to merge 5 commits into
flipt-io:v2from
AnouarMohamed:feat/ui-copy-flags-across-environments
Open

feat(ui): allow copying flags across environments#5772
AnouarMohamed wants to merge 5 commits into
flipt-io:v2from
AnouarMohamed:feat/ui-copy-flags-across-environments

Conversation

@AnouarMohamed
Copy link
Copy Markdown

Summary

Adds support for copying a flag to a namespace in another environment from the flag details page.

Fixes #5382.

Changes

  • Added a dedicated copy dialog with environment and namespace selectors
  • Updated flag copy to read from the source environment and write using the destination environment revision
  • Added UI coverage for cross-environment flag copy
  • Included a small Listbox control fix as a prerequisite for dependent selections

Backward Compatibility

Existing same-environment namespace copy behavior still works.

Signed-off-by: AnouarMohamed <m.anouar@mundiapolis.ma>
Signed-off-by: AnouarMohamed <m.anouar@mundiapolis.ma>
@AnouarMohamed AnouarMohamed requested a review from a team as a code owner April 22, 2026 22:36
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 22, 2026
@lamoboos223
Copy link
Copy Markdown

@AnouarMohamed

This is great we should also add the ability to populate segments as well

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.05%. Comparing base (e7645db) to head (79d517a).

Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #5772   +/-   ##
=======================================
  Coverage   61.05%   61.05%           
=======================================
  Files         141      141           
  Lines       14211    14211           
=======================================
  Hits         8676     8676           
  Misses       4809     4809           
  Partials      726      726           
Flag Coverage Δ
integrationtests 34.21% <ø> (ø)
unittests 52.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to duplicate a flag to another environment / namespace

3 participants