-
Notifications
You must be signed in to change notification settings - Fork 115
[Metadata Modal] Deprecate all code flag guarding the metadata modal #5821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,10 +26,8 @@ | |
| import React, { ReactElement } from "react"; | ||
|
|
||
| import { FacetSelectionCriteria } from "../../types/facet_selection_criteria"; | ||
| import { isFeatureEnabled, METADATA_FEATURE_FLAG } from "../feature_flags/util"; | ||
| import { StatMetadata } from "../stat_types"; | ||
| import { FacetSelectorRich } from "./facet_selector_rich"; | ||
| import { FacetSelectorSimple } from "./facet_selector_simple"; | ||
|
|
||
| export interface FacetSelectorFacetInfo { | ||
| // dcid of the stat var | ||
|
|
@@ -71,10 +69,5 @@ interface FacetSelectorPropType { | |
| } | ||
|
|
||
| export function FacetSelector(props: FacetSelectorPropType): ReactElement { | ||
| const useRichSelector = isFeatureEnabled(METADATA_FEATURE_FLAG); | ||
|
|
||
| if (useRichSelector) { | ||
| return <FacetSelectorRich {...props} />; | ||
| } | ||
| return <FacetSelectorSimple {...props} />; | ||
| return <FacetSelectorRich {...props} />; | ||
| } | ||
|
Comment on lines
71
to
73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that the feature flag is removed, this component is just a wrapper around
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes sense to streamline the code |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ | |
|
|
||
| // Feature flag names | ||
| export const AUTOCOMPLETE_FEATURE_FLAG = "autocomplete"; | ||
| export const METADATA_FEATURE_FLAG = "metadata_modal"; | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: delete newline |
||
| export const FOLLOW_UP_QUESTIONS_GA = "follow_up_questions_ga"; | ||
| export const PAGE_OVERVIEW_GA = "page_overview_ga"; | ||
| export const EXPLORE_RESULT_HEADER = "explore_result_header"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this should get cleaned up in #5824