-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix: dashboard changed on calculation #14450
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
852173c
to
df8582c
Compare
There was a problem hiding this 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.
df8582c
to
34e06b1
Compare
@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 |
f473983
to
17b7692
Compare
17b7692
to
378e1bf
Compare
Cypress is mostly pretty straightforward. The main thing I've found tricky about it is the execution stack. Its uses I was already going to write up some new cypress tests anyway, so I'll be happy to add this one to the list. |
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
to: @graceguo-supercat @ktmud @suddjian @john-bodley