-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
feat: custom refresh frequency #24449
feat: custom refresh frequency #24449
Conversation
Added separate field blocks for HH, MM and SS.
refactoring
@kasiazjc would you mind looking at the design? Personally I think that custom (and how it is defined/configured) should be a secondary option (hidden by default)—possibly under a collapsed menu, button, tab, etc. |
From the screenshots, it looks a little confusing to show the dropdown alongside the text fields. Perhaps a new "virtual" option ( |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24449 +/- ##
==========================================
+ Coverage 67.34% 67.41% +0.07%
==========================================
Files 1909 1910 +1
Lines 74623 74741 +118
Branches 8324 8356 +32
==========================================
+ Hits 50256 50388 +132
+ Misses 22314 22300 -14
Partials 2053 2053
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Okay sure @john-bodley @craig-rueda |
@john-bodley @craig-rueda Please check and review. I have shown only one refresh change option at a time as requested by @john-bodley and removed extra submit button as requested by @craig-rueda |
Sorry for the churn and delays on this, but I think the main issue is UI design, not the technical implementation. My own opinion: As a side note, I feel like the Submit button should be on the right, and the cancel button on the left. I'm not sure if we have a solid documented pattern around this, though (cc. @kasiazjc) |
@Abhishek-kumar-samsung is this frequency only for a session or persistent? |
Okay i will do some modification with UI. |
It is persistent. |
@Abhishek-kumar-samsung my dashboard frequency is saving only for a particular session , how can i make it persistent? |
Thanks and sorry for the long wait! What I'm thinking in terms of UI improvements is this: -> instead of button/switcher use single select, for selecting the type of interval, the options are:
-> set fixed height for the modal to accommodate for disappearing custom fields, so that the height does not jump ![]() I think this way setting up the custom interval will be more intuitive, as we are using common patterns. What do you think and could you possibly take this up @Abhishek-kumar-samsung ? |
Yes i will take this, i will try to make as you have suggested. |
Great, thank you! If you need some more design specs let me know. I was using default font sizes and components that we use in Superset :) |
@Shisir99 i am sorey, i was not sure that time, yes it is not persistent for me too, that is for a particular session only. @rusackas isn't that a problem? |
Hi all - please direct me to an issue link if there's a separate place for questions. We recently adopted Superset and I'm looking into setting up refresh schedules for our dashboards. This PR comes close to introducing the feature I think we need, but really something with the flexibility like cron schedule expressions would be ideal. I haven't been able to understand when the refresh interval triggers (i.e. how it's determined when it'll happen) or to specify a time it should kick off. Effectively I just want to specify when my refresh interval should start and (based off the time window I choose) when it should stop. Can any help me understand this, please? |
Currently in this PR, i was implementing refresh intervals based on relative timing. But crons idea would be nice. If we need to include crons then this PR will extend to some long time, maybe endlessly. So maybe we can start an SIP with multiple stages of PR, What say? @rusackas |
I agree we don't want to grow the scope of this PR. We should merge this first, and then deal with the cron idea (which is a nice idea) as a subsequent PR. For the cron feature, it seems like a reasonable plan to seek "lazy consensus" on the dev@ list. Then if that starts an argument, we can upgrade the conversation to a SIP and vote it. |
Yes sure, i will quickly do the two changes that you had suggested and once merged, we will raise SIP for cron. Then we can work on it, @coetzeevs you can also work on that if you had implemented something in it. |
/testenv up |
@rusackas Ephemeral environment spinning up at http://54.245.47.10:8080. Credentials are |
Hi there, |
After some quick sanity tests on the ephemeral, this is looking pretty good! |
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 @Abhishek-kumar-samsung
Ephemeral environment shutdown and build artifacts deleted. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24449 +/- ##
==========================================
+ Coverage 67.34% 67.41% +0.07%
==========================================
Files 1909 1910 +1
Lines 74623 74741 +118
Branches 8324 8356 +32
==========================================
+ Hits 50256 50388 +132
+ Misses 22314 22300 -14
Partials 2053 2053
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I accidently closed the PR and I reopened it again. |
@geido can you check your requested changes to (potentially) unblock the merge when you have a chance, please? |
@Abhishek-kumar-samsung it seems that CI is stuck. Please pull latest master and push back to kick CI on a fresh master state. Thank you |
Hi @geido i synced my fork to latest main branch, i don't know why the pull_request check is failing. Last time when it ran, the same code passed all checks. |
Thanks @Abhishek-kumar-samsung - I/we appreciate you sticking with this and getting it through! |
Thankyou @rusackas |
Co-authored-by: Nitesh Kumar Dubey Samsung <[email protected]>
Co-authored-by: Nitesh Kumar Dubey Samsung <[email protected]>
Co-authored-by: Nitesh Kumar Dubey Samsung <[email protected]>
Earlier at dashboard level we had very limited options in 'Set auto-refresh interval' as shown in image below
But as per our organisation level we wanted the frequency to be something else that was not in dropdown, so we implemented that.
As part of this PR, we can add custom frequency as required by user, user can select any frequency in hour, minute and seconds and set it as auto refresh interval frequency (in seconds).