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

Only evaluate the next state if there's a valid value #7222

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

thiagogds
Copy link
Contributor

What type of PR is this?

  • Bug Fix

Description

I've experience this on my Redash in production. I'm not sure what can cause the value to exist, but be None. I guess it depends on the SQL query.

I followed the same idea of returning a self.UNKNOWN_STATE for cases that we can't know what's happening.

How is this tested?

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

Related Tickets & Documents

Fixes #5618

I've experience this on my Redash in production. I'm not sure what can cause the value to exist, but be None. I guess it depends on the SQL query.

I followed the same idea of returning a self.UNKNOWN_STATE for cases that we can't know what's happening.
@eradman
Copy link
Collaborator

eradman commented Nov 22, 2024

Thanks @thiagogds, try re-basing this change to pick up a fix to the restyled workflow

@thiagogds
Copy link
Contributor Author

@eradman Now it's working :)

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

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

Confirmed that this the new test catches the incorrect state (NoneType)

@eradman eradman merged commit c12e68f into getredash:master Nov 26, 2024
11 checks passed
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
I've experience this on my Redash in production. I'm not sure what can cause the value to exist, but be None. I guess it depends on the SQL query.

I followed the same idea of returning a self.UNKNOWN_STATE for cases that we can't know what's happening.
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.

TypeError: float() argument must be a string or a number, not 'NoneType' in redash.models.next_state
2 participants