Skip to content

Remove replay-web feature flag - #1121

Open
slifty wants to merge 1 commit into
mainfrom
1120-remove-replayweb-flag
Open

Remove replay-web feature flag#1121
slifty wants to merge 1 commit into
mainfrom
1120-remove-replayweb-flag

Conversation

@slifty

@slifty slifty commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR removes reference to the replay-web feature flag now that it's deployed and enabled across all environments.

Resolves #1120

Copilot AI lite review requested due to automatic review settings August 4, 2026 18:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the replay-web feature-flag gating from the file viewer now that ReplayWeb is fully enabled in all environments, and updates the associated unit tests to reflect the always-on behavior for web archive records.

Changes:

  • Removed FeatureFlagService injection and replay-web flag checks from FileViewerComponent.
  • Always computes replayUrl via getReplayUrl(), which already returns null for non–web archive records.
  • Updated component tests to stop mocking feature flags and to validate replayUrl behavior based on record type.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/app/file-browser/components/file-viewer/file-viewer.component.ts Removes replay-web feature-flag dependency and sets replayUrl unconditionally (still type-gated inside getReplayUrl()).
src/app/file-browser/components/file-viewer/file-viewer.component.spec.ts Removes feature-flag mocking and updates replay URL tests to align with the new always-on behavior for web archives.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Now that the feature is complete and enabled across all environments it
is time to remove the feature flag.

Issue #1120 Remove ReplayWeb feature flag
@slifty
slifty force-pushed the 1120-remove-replayweb-flag branch from 1db817c to 093d92e Compare August 4, 2026 19:00
@slifty
slifty requested a review from cecilia-donnelly August 4, 2026 19:00
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.27%. Comparing base (8c2bb85) to head (093d92e).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1121      +/-   ##
==========================================
+ Coverage   52.26%   52.27%   +0.01%     
==========================================
  Files         354      354              
  Lines       12093    12091       -2     
  Branches     2186     2185       -1     
==========================================
+ Hits         6320     6321       +1     
+ Misses       5550     5544       -6     
- Partials      223      226       +3     

☔ View full report in Codecov by Harness.
📢 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.

@slifty
slifty requested a review from aasandei-vsp August 5, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ReplayWeb feature flag

2 participants