Skip to content
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

Add feature flag to enable the Data Viewer in Rill Cloud #4158

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading