Skip to content

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
10 checks passed
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
* don't crash when there is no data

* Add test
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