Skip to content

chore: remove safeguards feature flag - #12222

Open
ivarconr with Copilot wants to merge 2 commits into
mainfrom
copilot/cleanup-safeguards-flag
Open

chore: remove safeguards feature flag#12222
ivarconr with Copilot wants to merge 2 commits into
mainfrom
copilot/cleanup-safeguards-flag

Conversation

Copilot AI commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

The safeguards Unleash flag has been marked as completed with outcome kept, meaning the safeguards feature is fully released and the flag guard should be removed.

Changes

  • EnvironmentAccordionBody.tsx: Removed the safeguardsEnabled conditional that was gating the LazySafeguard component behind useImpactMetricsEnabled(). The component is now rendered unconditionally.
- import { useImpactMetricsEnabled } from 'component/impact-metrics/hooks/useImpactMetricsEnabled';
  ...
- const safeguardsEnabled = useImpactMetricsEnabled();
  ...
- {safeguardsEnabled ? (
-     <Suspense fallback={null}>
-         <LazySafeguard ... />
-     </Suspense>
- ) : null}
+ <Suspense fallback={null}>
+     <LazySafeguard ... />
+ </Suspense>

The useImpactMetricsEnabled hook is retained — it is still used by FeatureMetricsOverview, ImpactMetricsPage, and ImpactMetricsAdmin.

@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ivarconr
ivarconr marked this pull request as ready for review June 5, 2026 09:16
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI changed the title [WIP] Clean up completed safeguards feature flag chore: remove safeguards feature flag Jun 5, 2026
Copilot AI requested a review from ivarconr June 5, 2026 09:19
@ivarconr

ivarconr commented Jun 5, 2026

Copy link
Copy Markdown
Member

@copilot can you sign the CLA?

Copilot AI commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@copilot can you sign the CLA?

As an AI agent, I'm not able to sign a CLA directly. The human who initiated this PR (the repository owner or the user who triggered this Copilot coding agent session) would need to sign the CLA on behalf of these changes.

const { releasePlans, refetch: refetchReleasePlans } =
useFeatureReleasePlans(projectId, featureId, featureEnvironment?.name);
const { trackEvent } = usePlausibleTracker();
const safeguardsEnabled = useImpactMetricsEnabled();

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.

I see the hook being used in other places. Could we run into issue that impact metrics is disabled and safeguard enabled now? Is that ok?

@gastonfournier gastonfournier moved this from New to In Progress in Issues and PRs Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

🧹 Flag safeguards marked as completed

5 participants