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

fix falsey comparison to determine whether a dashboard is archived. closes #6560 #6561

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

guidopetri
Copy link
Contributor

@guidopetri guidopetri commented Oct 29, 2023

What type of PR is this?

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

Description

When black updated our code, it removed a falsey comparison that was using ==, but that was an overloaded operator from SQLAlchemy. Instead of using the is operator, which cannot be overloaded, we need to use the .is_() method to compare properly and achieve the same behavior.

How is this tested?

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

Related Tickets & Documents

Closes #6560

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

@codecov
Copy link

codecov bot commented Oct 29, 2023

Codecov Report

Merging #6561 (d0e168d) into master (39e4ea1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6561   +/-   ##
=======================================
  Coverage   61.89%   61.89%           
=======================================
  Files         158      158           
  Lines       12968    12968           
  Branches     1772     1772           
=======================================
  Hits         8027     8027           
  Misses       4665     4665           
  Partials      276      276           
Files Coverage Δ
redash/handlers/organization.py 80.00% <ø> (ø)

@guidopetri
Copy link
Contributor Author

Works on my local!

@guidopetri guidopetri enabled auto-merge (squash) October 29, 2023 14:30
@justinclift
Copy link
Member

Cool, sounds like good investigation. 😄

@guidopetri guidopetri merged commit ae77e72 into master Oct 29, 2023
16 checks passed
@justinclift justinclift deleted the gpetri/create-first-dashboard-fix branch October 29, 2023 15:06
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.

The 'Create your first Dashboard' newbie link will not dispear even I create dashboards
2 participants