Skip to content
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 @@ -27,6 +27,7 @@ import {
WidgetType,
} from 'sentry/views/dashboards/types';
import {dashboardFiltersToString} from 'sentry/views/dashboards/utils';
import type {WidgetQueryQueue} from 'sentry/views/dashboards/utils/widgetQueryQueue';
import {
DERIVED_STATUS_METRICS_PATTERN,
DerivedStatusFields,
Expand All @@ -52,6 +53,7 @@ interface ReleaseWidgetQueriesProps {
tableResults?: TableDataWithTitle[];
timeseriesResults?: Series[];
}) => void;
queue?: WidgetQueryQueue;
}

export function derivedMetricsToField(field: string): string {
Expand Down Expand Up @@ -215,6 +217,7 @@ function ReleaseWidgetQueries({
onDataFetched,
onDataFetchStart,
children,
queue,
}: ReleaseWidgetQueriesProps) {
const config = ReleasesConfig;

Expand Down Expand Up @@ -371,6 +374,7 @@ function ReleaseWidgetQueries({

return (
<GenericWidgetQueries<SessionApiResponse, SessionApiResponse>
queue={queue}
config={config}
api={api}
organization={organization}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function WidgetCardDataLoader({
return (
<ReleaseWidgetQueries
widget={widget}
queue={queue}
selection={selection}
limit={tableItemLimit}
onDataFetched={onDataFetched}
Expand Down Expand Up @@ -126,6 +127,7 @@ export function WidgetCardDataLoader({
return (
<WidgetQueries
api={api}
queue={queue}
organization={organization}
widget={widget}
selection={selection}
Expand Down
4 changes: 4 additions & 0 deletions static/app/views/dashboards/widgetCard/widgetQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
type DashboardFilters,
type Widget,
} from 'sentry/views/dashboards/types';
import type {WidgetQueryQueue} from 'sentry/views/dashboards/utils/widgetQueryQueue';
import {SAMPLING_MODE} from 'sentry/views/explore/hooks/useProgressiveQuery';

import {useDashboardsMEPContext} from './dashboardsMEPContext';
Expand All @@ -41,10 +42,12 @@ type Props = {
onDataFetchStart?: () => void;
onDataFetched?: (results: OnDataFetchedProps) => void;
onWidgetSplitDecision?: (splitDecision: WidgetType) => void;
queue?: WidgetQueryQueue;
};

function WidgetQueries({
api,
queue,
children,
organization,
selection,
Expand Down Expand Up @@ -162,6 +165,7 @@ function WidgetQueries({
<OnDemandControlConsumer>
{OnDemandControlContext => (
<GenericWidgetQueries<SeriesResult, TableResult>
queue={queue}
config={config}
api={api}
organization={organization}
Expand Down
Loading