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

Do not throw error on dashboards with undeclared query parameters or on widget creation. #10536

Merged
merged 3 commits into from
May 4, 2021

Conversation

linuspahl
Copy link
Contributor

@linuspahl linuspahl commented Apr 30, 2021

Description

Motivation and Context

We've recently implemented a time range info for dashboard widgets #10508. This PR is fixing a runtime error which occurred when no search types exist.
This is the case when a filter with an undeclared parameter is being applied.

It also fixes another runtime error which occurred after creating a new widget, because it was not yet listen in the search widget mapping.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

We've recently implemented a time range info for dashboard widgets. This
PR is fixing a runtime error which occurred when no search types exist.
This is the case when a filter with an undeclared parameter   is being
applied.
@linuspahl linuspahl force-pushed the dashboard-widgets-undeclared-parameter-error branch from 83a4ebb to 65f2e52 Compare May 3, 2021 14:21
@linuspahl linuspahl changed the title Do not throw error on dashboards with undeclared query parameters. Do not throw error on dashboards with undeclared query parameters or on widget creation. May 3, 2021
Copy link
Member

@kmerz kmerz left a comment

Choose a reason for hiding this comment

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

Thanks a lot for that fix.
Code LGTM 👍
Worked on my machine ✔️

@kmerz kmerz merged commit 90d6743 into master May 4, 2021
@kmerz kmerz deleted the dashboard-widgets-undeclared-parameter-error branch May 4, 2021 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants