Skip to content

Commit

Permalink
feature flag releases for mini insights
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Feb 28, 2025
1 parent 05548de commit 04f60f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ReleaseSeries from 'sentry/components/charts/releaseSeries';
import {CHART_PALETTE} from 'sentry/constants/chartPalette';
import {IconExpand} from 'sentry/icons';
import {t} from 'sentry/locale';
import useOrganization from 'sentry/utils/useOrganization';
import usePageFilters from 'sentry/utils/usePageFilters';
import {MISSING_DATA_MESSAGE} from 'sentry/views/dashboards/widgets/common/settings';
import type {Aliases} from 'sentry/views/dashboards/widgets/common/types';
Expand Down Expand Up @@ -38,6 +39,7 @@ export interface InsightsTimeSeriesWidgetProps {

export function InsightsTimeSeriesWidget(props: InsightsTimeSeriesWidgetProps) {
const pageFilters = usePageFilters();
const organization = useOrganization();
const {start, end, period, utc} = pageFilters.selection.datetime;
const {projects, environments} = pageFilters.selection;

Expand Down Expand Up @@ -115,7 +117,9 @@ export function InsightsTimeSeriesWidget(props: InsightsTimeSeriesWidgetProps) {
Title={Title}
Visualization={
<TimeSeriesWidgetVisualization
releases={shortReleases}
{...(organization.features.includes('release-bubbles-ui')
? {releases: shortReleases}
: {})}
{...visualizationProps}
/>
}
Expand Down

0 comments on commit 04f60f2

Please sign in to comment.