Skip to content

fix(dashboard): Include dashboard filters in widget viewer - #45106

Merged
wmak merged 2 commits into
masterfrom
wmak/fix/include-dashboard-filters-in-widget-viewer
Feb 28, 2023
Merged

fix(dashboard): Include dashboard filters in widget viewer#45106
wmak merged 2 commits into
masterfrom
wmak/fix/include-dashboard-filters-in-widget-viewer

Conversation

@wmak

@wmakwmak commented Feb 24, 2023

Copy link
Copy Markdown
Member
  • This updates the widgetviewer to include the top level dashboard filters, specifically so that the top level releases will apply to the widget viewer

- This updates the widgetviewer to include the top level dashboard
filters, specifically so that the top level releases will apply to the
widget viewer
@wmak
wmak requested a review from a teamFebruary 24, 2023 23:01
@wmak
wmak requested a review from a team as a code ownerFebruary 24, 2023 23:01
@github-actionsgithub-actionsBot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 24, 2023
Comment on lines +541 to +555
export function dashboardFiltersToString(
dashboardFilters: DashboardFilters | null | undefined
): string {
let dashboardFilterConditions = '';
if (dashboardFilters) {
for (const [key, activeFilters] of Object.entries(dashboardFilters)) {
if (activeFilters.length === 1) {
dashboardFilterConditions += `${key}:${activeFilters[0]} `;
} else if (activeFilters.length > 1) {
dashboardFilterConditions += `${key}:[${activeFilters.join(',')}] `;
}
}
}
return dashboardFilterConditions;
}

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Copy pasta from static/app/views/dashboards/widgetCard/genericWidgetQueries.tsx so it can be reused to change the query display

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
src/sentry/static/sentry/dist/entrypoints/app.js19.91 KB (-0.06% 🔽)
src/sentry/static/sentry/dist/entrypoints/sentry.css32.99 KB (0%)

@wmak
wmak enabled auto-merge (squash) February 28, 2023 21:04
@wmak
wmak merged commit c477701 into masterFeb 28, 2023
@wmak
wmak deleted the wmak/fix/include-dashboard-filters-in-widget-viewer branch February 28, 2023 21:24
jan-auer added a commit that referenced this pull request Mar 1, 2023
* master: (37 commits)
ref(ppf): Don't use --commit-batch-size for futures queue length (#45182)
feat(codecov-v2): Add more logging (#45225)
fix(alerts): Center table items on alert history page (#45226)
feat(CapMan): Pass `tenant_ids` to Snuba (#44788)
ref(db): Drop `project_id` from Environment (model state) (#45207)
chore(profiling): Rename context in profiles task (#45208)
feat(replays): Improve index page query performance (#45098)
chore(issue assignment): Add logging for`GroupOwner` auto assignment (#45142)
fix(hybrid-cloud): Uncache organization when queueing it for deletion (#45213)
fix(perf): Navigating to Transaction Summary from Trends widget should persist custom date selection (#45190)
fix(pageFilter): Fix overflow (#45169)
ref(git hooks): Only suggest autoupdate variable when pulling if not already set (#45179)
fix(dashboard): Include dashboard filters in widget viewer (#45106)
fix(alerts): Remove null projects from alerts list (#45202)
feat(replay): Update Inline replay onboarding img to support dark mode (#45084)
__iexact reduce call has default value now. (#45206)
feat(replay): Use SDK value for LCP (#44868)
chore(hybrid-cloud): breaking foreign keys (#45203)
Revert "ref(db): Drop `project_id` from Environment (model state) (#45094)"
ref(db): Drop `project_id` from Environment (model state) (#45094)
...
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Mar 16, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: FrontendAutomatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@wmak@narsaynorath