-
Notifications
You must be signed in to change notification settings - Fork 501
Migrate retrieving features to RTK #7090
Copy link
Copy link
Open
Labels
front-endIssue related to the React Front End DashboardIssue related to the React Front End Dashboardtech-debtTechnical debt issuesTechnical debt issues
Description
Description
The feature list store still uses legacy Flux patterns (AppActions.getFeatures/searchFeatures) to fetch features on several pages,
despite an existing RTK Query equivalent (useGetFeatureListQuery). Additionally, the Datadog widget page (WidgetPage.tsx) and its
dependencies (@datadog/ui-extensions-react, @datadog/ui-extensions-sdk) have been deprecated since 2025 and should be removed.
Current state
FeatureExport.tsx,FeatureImport.tsx, andUserPage.tsxuseAppActions.getFeatures/searchFeatures+FeatureListStoreinstead
of RTK QueryWidgetPage.tsxdepends on deprecated Datadog UI extensions packages and is no longer usedOrgEnvironmentSelect.tsxis only used by the widget pageproject-store.jsgetProjecthas duplicated force/non-force fetch branches left over from thegetIsWidgetguards
Objectives
- Migrate
FeatureExport.tsx,FeatureImport.tsx, andUserPage.tsxfromAppActions.getFeatures/searchFeaturesto
useGetFeatureListQuery - Remove
getFeaturesandsearchFeaturesfromapp-actions.jsand theirGET_FLAGS/SEARCH_FLAGSdispatcher cases once no callers
remain - Delete
WidgetPage.tsx,datadog-client.ts,useSetupCustomWidget.ts,OrgEnvironmentSelect.tsx, and the widget route - Uninstall
@datadog/ui-extensions-reactand@datadog/ui-extensions-sdk - Simplify
project-store.jsgetProjectby deduplicating the fetch branches
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
front-endIssue related to the React Front End DashboardIssue related to the React Front End Dashboardtech-debtTechnical debt issuesTechnical debt issues