Skip to content
Merged
4 changes: 2 additions & 2 deletions docs/feature_flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ For example, to enable the "autocomplete" feature:
* Enable: https://datacommons.org/explore?enable_feature=autocomplete
To enable both the autocomplete and metadata_modal features:
To enable both the autocomplete and page_overview_ga features:
* Enable: https://datacommons.org/explore?enable_feature=autocomplete&enable_feature=metadata_modal
* Enable: https://datacommons.org/explore?enable_feature=autocomplete&enable_feature=page_overview_ga
To manually disable a feature flag, use the `disable_feature` URL parameter.
Expand Down
6 changes: 1 addition & 5 deletions static/js/components/subject_page/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ import {
FacetSelector,
FacetSelectorFacetInfo,
} from "../../shared/facet_selector/facet_selector";
import {
isFeatureEnabled,
METADATA_FEATURE_FLAG,
} from "../../shared/feature_flags/util";
import { usePromiseResolver } from "../../shared/hooks/promise_resolver";
import { NamedPlace, NamedTypedPlace, StatVarSpec } from "../../shared/types";
import {
Expand Down Expand Up @@ -246,7 +242,7 @@ function blockEligibleForFacetSelector(
columns: ColumnConfig[],
isWebComponentBlock: boolean
): boolean {
if (isWebComponentBlock || !isFeatureEnabled(METADATA_FEATURE_FLAG)) {
if (isWebComponentBlock) {
return false;
}

Expand Down
25 changes: 10 additions & 15 deletions static/js/components/tiles/chart_footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import React, { RefObject, useState } from "react";

import { intl } from "../../i18n/i18n";
import { messages } from "../../i18n/i18n_messages";
import {
isFeatureEnabled,
METADATA_FEATURE_FLAG,
} from "../../shared/feature_flags/util";
import {
GA_EVENT_TILE_DOWNLOAD,
GA_EVENT_TILE_EXPLORE_MORE,
Expand Down Expand Up @@ -99,17 +95,16 @@ export function ChartFooter(props: ChartFooterPropType): JSX.Element {
</div>
)}

{props.getObservationSpecs &&
isFeatureEnabled(METADATA_FEATURE_FLAG) && (
<div className="outlink-item api-outlink">
<ApiButton
apiRoot={props.apiRoot}
getObservationSpecs={props.getObservationSpecs}
containerRef={props.containerRef}
surface={props.surface}
/>
</div>
)}
{props.getObservationSpecs && (
<div className="outlink-item api-outlink">
<ApiButton
apiRoot={props.apiRoot}
getObservationSpecs={props.getObservationSpecs}
containerRef={props.containerRef}
surface={props.surface}
/>
</div>
)}

{props.exploreLink && (
<div className="outlink-item explore-in-outlink">
Expand Down
2 changes: 1 addition & 1 deletion static/js/shared/facet_selector/facet_option_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { facetSelectionComponentMessages } from "../../i18n/i18n_facet_selection
import { metadataComponentMessages } from "../../i18n/i18n_metadata_messages";
import { humanizeIsoDuration } from "../periodicity";
import { StatMetadata } from "../stat_types";
import { SELECTOR_PREFIX } from "./facet_selector_rich";
import { SELECTOR_PREFIX } from "./facet_selector";

interface FacetOptionContentProps {
// The metadata for the facet.
Expand Down
Loading
Loading