✨ feat: allow copy flags between projects#817
Merged
deleteLater merged 7 commits intomainfrom Dec 10, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables cross-project feature flag copying by extending the existing copy functionality to work across different projects, not just within the same project. The feature now displays all available environments from all accessible projects in a "ProjectName/EnvName" format, and tracks the source environment in audit logs for better traceability.
- Display current source environment and allow selection from all projects' environments
- Add source environment tracking to audit logs with "Copied from" comment
- Implement RN.IsInScope method for resource hierarchy validation in cross-project scenarios
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| modules/front-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.ts | Refactored to load all projects asynchronously and build environment options with project prefixes; added source environment tracking |
| modules/front-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.html | Added current environment display section and loading state for environment selector |
| modules/front-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.less | Added styling for current environment display and increased selector width to accommodate longer labels |
| modules/front-end/src/styles/nz-select.less | Added loading icon margin styling |
| modules/front-end/src/locale/messages.xlf | Updated line number references for localization strings |
| modules/front-end/src/locale/messages.zh.xlf | Updated line number references for localization strings and translations |
| modules/back-end/src/Application/FeatureFlags/CopyToEnv.cs | Added SourceEnvId property, implemented source environment name resolution, and included source in audit log comments |
| modules/back-end/src/Api/Controllers/FeatureFlagController.cs | Updated CopyToEnvAsync to accept and pass source environment ID |
| modules/back-end/tests/Domain.UnitTests/Resources/RNTests.cs | Added comprehensive tests for RN.IsInScope method to validate resource hierarchy logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ont-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.ts
Show resolved
Hide resolved
...t-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.html
Outdated
Show resolved
Hide resolved
...ont-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.ts
Show resolved
Hide resolved
...ont-end/src/app/core/components/copy-feature-flag-modal/copy-feature-flag-modal.component.ts
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
copy flags across projects
audit log comment