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

don't crash when there is no data #7208

Merged
merged 4 commits into from
Oct 31, 2024
Merged

don't crash when there is no data #7208

merged 4 commits into from
Oct 31, 2024

Conversation

yeger00
Copy link
Contributor

@yeger00 yeger00 commented Oct 27, 2024

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

In case there is no data, it doesn't crash, it just leaves the state as UNKNOWN_STATE

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

This closes issue 7196

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Thank you for taking a stab at this! Could you add a test case for this?

@yeger00
Copy link
Contributor Author

yeger00 commented Oct 29, 2024

Added a test, and I made sure it fail on master

@yeger00 yeger00 requested a review from arikfr October 29, 2024 17:32
@arikfr arikfr enabled auto-merge (squash) October 31, 2024 08:19
@arikfr arikfr merged commit 2aae570 into getredash:master Oct 31, 2024
11 checks passed
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