Skip to content

Commit

Permalink
Add feature flag to enable the Data Viewer in Rill Cloud (#4158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 authored Feb 24, 2024
1 parent 3eea147 commit 1e8496e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
export let metricViewName: string;
export let leftMargin = undefined;
const { cloudDataViewer } = featureFlags;
let exploreContainerWidth;
$: metricsExplorer = useDashboardStore(metricViewName);
Expand Down Expand Up @@ -154,7 +156,7 @@
{/if}
</div>

{#if isRillDeveloper && !expandedMeasureName && !showPivot}
{#if (isRillDeveloper || $cloudDataViewer) && !expandedMeasureName && !showPivot}
<RowsViewerAccordion {metricViewName} />
{/if}
{/if}
Expand Down
1 change: 1 addition & 0 deletions web-common/src/features/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const flags = {
pivot: features?.includes("pivot") || false,
alerts: features?.includes("alerts") || false,
ai: true,
cloudDataViewer: features?.includes("data-viewer") || false,
};

export type FeatureFlags = typeof flags;
Expand Down

1 comment on commit 1e8496e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.