Skip to content

Remove retired Data Catalog beta feature#8149

Merged
dsill-ethyca merged 7 commits into
mainfrom
remove-data-catalog
May 13, 2026
Merged

Remove retired Data Catalog beta feature#8149
dsill-ethyca merged 7 commits into
mainfrom
remove-data-catalog

Conversation

@dsill-ethyca
Copy link
Copy Markdown
Contributor

  • Remove Data Catalog beta UI pages and feature module
  • Remove Data Catalog nav entry, route, flag, and orphaned tag types
  • Remove Data Catalog tests
  • remove orphaned helpers

@dsill-ethyca dsill-ethyca requested review from a team as code owners May 8, 2026 20:20
@dsill-ethyca dsill-ethyca requested review from gilluminate and thabofletcher and removed request for a team May 8, 2026 20:20
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 8, 2026

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

Project Deployment Actions Updated (UTC)
fides-plus-nightly Ready Ready Preview, Comment May 13, 2026 5:34pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
fides-privacy-center Ignored Ignored May 13, 2026 5:34pm

Request Review

@dsill-ethyca dsill-ethyca requested review from adamsachs and removed request for gilluminate and thabofletcher May 8, 2026 20:20
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.47%. Comparing base (6d220c9) to head (58a7208).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8149      +/-   ##
==========================================
+ Coverage   85.23%   85.47%   +0.24%     
==========================================
  Files         638      651      +13     
  Lines       42011    42434     +423     
  Branches     4937     4982      +45     
==========================================
+ Hits        35808    36271     +463     
+ Misses       5096     5055      -41     
- Partials     1107     1108       +1     

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

Title Lines Statements Branches Functions
admin-ui Coverage: 8%
6.7% (3048/45440) 6.06% (1592/26252) 4.68% (631/13463)
fides-js Coverage: 78%
79.17% (1977/2497) 66.25% (1249/1885) 73.31% (349/476)
privacy-center Coverage: 85%
82.53% (364/441) 79.74% (189/237) 74.07% (60/81)

Copy link
Copy Markdown
Contributor

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

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

generally lgtm, thank you!

just one note on a few of the cypress test removals, not sure if we'd like a FE expert to weigh in there. pretty minor in any case.

Comment on lines -81 to -95
it("Set flags before visiting any page for feature-specific tests", () => {
stubOpenIdProviders();
stubPlusAuth();
cy.login();
stubPlus(true);

// This pattern is useful when testing features behind flags
// Set the flag before navigating to test the enabled state
cy.overrideFeatureFlag("dataCatalog", false);

// Now visit a page that uses this flag
cy.visit("/data-catalog");
// The feature will be disabled from the start
cy.getByTestId("Data catalog").should("not.exist");
});
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.

seems like this may be a 'generic' test that is just using the datacatalog as an example/test case? if so, i expect we may want to switch it to use something else rather than removing it? 🤷

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.

Good catch — restored the test using policies as the example flag. While restoring it I noticed the original assertion (cy.getByTestId("Data catalog").should("not.exist")) was actually targeting Layout's page-level testid, which doesn't check flags — so the test wasn't really verifying flag gating. Reframed it to assert on the gated nav link ([data-testid="DSR policies-nav-link"]) which is actually gated by the flag, so the test now meaningfully exercises the flag-off path.

Comment on lines -321 to -335
it("includes feature flagged routes when enabled", () => {
const navGroups = configureNavGroups({
config: NAV_CONFIG,
userScopes: ALL_SCOPES,
flags: {
dataCatalog: true,
},
hasPlus: true,
});

expect(
findGroup(navGroups, "Detection & Discovery").children,
).toMatchObject([
{ title: "Action center", path: routes.ACTION_CENTER_ROUTE },
{ title: "Data catalog", path: routes.DATA_CATALOG_ROUTE },
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.

again if this is a more generic feature flag test, may need to be adjusted rather than removed? just a guess.

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.

Good catch — restored the positive-case test using alphaPurposeBasedAccessControl (which gates the "Access control" route in the same "Detection & Discovery" group), so it mirrors the negative-case test directly above it.

Copy link
Copy Markdown
Contributor

@speaker-ender speaker-ender left a comment

Choose a reason for hiding this comment

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

Approving as is and looks good.
Adam's comments around the tests seem valid.

Per review feedback (@adamsachs): the deleted tests demonstrated a
generic feature-flag mechanism using dataCatalog as the example. Restored
both with currently-active flags:

- nav-config.test.ts: positive-case configureNavGroups test now uses
  alphaPurposeBasedAccessControl to mirror the negative-case test in
  the same Detection & Discovery group
- feature-flags.cy.ts: rewrote assertion to target the flag-gated nav
  link (DSR policies-nav-link) instead of Layout's unconditional page
  testid, so the test actually exercises the flag-off path
@dsill-ethyca dsill-ethyca added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit a1fc5a6 May 13, 2026
103 of 106 checks passed
@dsill-ethyca dsill-ethyca deleted the remove-data-catalog branch May 13, 2026 18:25
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.

3 participants