-
Notifications
You must be signed in to change notification settings - Fork 14k
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: moved alerts and reports default values to config #22880
fix: moved alerts and reports default values to config #22880
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22880 +/- ##
==========================================
- Coverage 67.40% 67.39% -0.01%
==========================================
Files 1876 1880 +4
Lines 72084 72229 +145
Branches 7857 7882 +25
==========================================
+ Hits 48587 48678 +91
- Misses 21480 21527 +47
- Partials 2017 2024 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Nice improvement 👍 LGTM and tested to work as expected with one minor naming comment.
@villebro Hello! |
@Always-prog yeah, this is a bit of a problem when the frontend assets don't have context on regarding the python config values. You can probably either mock the values on the test (more work) or just add the same defaults on the frontend code path (less work). I'm ok with both, as in practice they won't affect this functionality. |
I added default values in code. |
@Always-prog can you rebase the PR? That might help resolve that failed test. |
…y constant anymore
I need to create a new PR for the fix? |
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.
probably something went wrong with the rebase
4c6997c
to
f01fc4b
Compare
I reverted rebase commit. |
On my fork all CI test has passed. Maybe need to restart them @dpgaspar? |
@dpgaspar I believe the rebasing problems have been resolved, can you take another look? |
@dpgaspar Hello! |
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, thanks for this and apologies for letting this get stale
The requested changes have been addressed
Thanks for approving! |
SUMMARY
Typically, users do not verify the working timeout and default repetition for creating alerts or reports. As a result, if a Superset administrator wants to change the default values for these options, they need to modify the code. To address this issue, I submitted a pull request that moves these default values to the config file.
ADDITIONAL INFORMATION