Skip to content

Conversation

@wmak
Copy link
Member

@wmak wmak commented Feb 24, 2023

  • 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 team February 24, 2023 23:01
@wmak wmak requested a review from a team as a code owner February 24, 2023 23:01
@github-actions github-actions bot 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
Member Author

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
Contributor

size-limit report 📦

Path Size
src/sentry/static/sentry/dist/entrypoints/app.js 19.91 KB (-0.06% 🔽)
src/sentry/static/sentry/dist/entrypoints/sentry.css 32.99 KB (0%)

@wmak wmak enabled auto-merge (squash) February 28, 2023 21:04
@wmak wmak merged commit c477701 into master Feb 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-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants