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: dashboard changed on calculation #14450

Merged
merged 1 commit into from
May 3, 2021

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented May 3, 2021

SUMMARY

My previous etag PR (#14357) broke creating new dashboards because they wouldn't have any slices or datasets associated with them yet, thus running max([]) which fails. This sets a min bound for the changed_on time to unixtime 0 which should be safe.

TEST PLAN

👀 and CI

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

to: @graceguo-supercat @ktmud @suddjian @john-bodley

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

LGTM

@etr2460 etr2460 force-pushed the erik-ritter--fix-dashboard-caching branch from 852173c to df8582c Compare May 3, 2021 18:19
Copy link
Member

@suddjian suddjian left a comment

Choose a reason for hiding this comment

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

Looks good. It's pretty easy for seemingly minor changes to dashboards to break dashboard creation. We should write an e2e test. I can add it in a new PR if you'd rather just get this fix merged.

@etr2460 etr2460 force-pushed the erik-ritter--fix-dashboard-caching branch from df8582c to 34e06b1 Compare May 3, 2021 18:34
@etr2460
Copy link
Member Author

etr2460 commented May 3, 2021

@suddjian if you have the time to write a dashboard creation e2e test, i'd appreciate it. I've actually never written a cypress test yet (a shame, i know!) but if you want to tag me on your PR, i'll take a look at it to understand the intricacies of cypress

@etr2460 etr2460 force-pushed the erik-ritter--fix-dashboard-caching branch 2 times, most recently from f473983 to 17b7692 Compare May 3, 2021 19:37
@etr2460 etr2460 force-pushed the erik-ritter--fix-dashboard-caching branch from 17b7692 to 378e1bf Compare May 3, 2021 20:24
@suddjian
Copy link
Member

suddjian commented May 3, 2021

Cypress is mostly pretty straightforward. The main thing I've found tricky about it is the execution stack. Its uses .then() to enqueue actions on the stack, but the .then() calls aren't actually promises, so it doesn't handle async and other such constructs well, which can be confusing.

I was already going to write up some new cypress tests anyway, so I'll be happy to add this one to the list.

@etr2460 etr2460 merged commit e05a70f into apache:master May 3, 2021
etr2460 pushed a commit to airbnb/superset-fork that referenced this pull request May 3, 2021
hughhhh pushed a commit that referenced this pull request May 4, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants