-
Notifications
You must be signed in to change notification settings - Fork 41
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
scheduling frontend #700
scheduling frontend #700
Conversation
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
next_run is removed because schedule does not support starting from certain time, the workaround used prevent us from finding out the next_run Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Codecov Report
@@ Coverage Diff @@
## main #700 +/- ##
==========================================
- Coverage 57.23% 56.37% -0.87%
==========================================
Files 290 293 +3
Lines 6681 6954 +273
Branches 907 954 +47
==========================================
+ Hits 3824 3920 +96
- Misses 2691 2844 +153
- Partials 166 190 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 15 files with indirect coverage changes 📣 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.
This looks awesome! Thanks for handling this massive feature. I noticed a few things that need modifications on regarding the frontend, that I thought would be best to mention first. I will then continue to review the code while you can check out my comments.
Most of these comments will be based on what our figma design, I'll DM a link over shortly.
- The scheduling feature should be a second sub tab, under
Tasks
, calledCalendar
, while our original table will be under the first sub tab, calledQueue
. Users will need to select the sub tabs to change the view between our task queue table and the calendar view of scheduled tasks - For task creation, it looks like daily scheduling is turned on by default, unless a user deselects all days or checks
Now
. Scheduling would ideally be a decision made only at the end of creating a task (whether to schedule or send it out once), which should open up a separate dialog that contains the components you've written so far for selecting days-of-the-week, and future features of selecting ending dates, etc. This will help keep the task creation form less cluttered and easy for us to add more features next.
Let me know if these modifications is possible with our current implementation, thanks!
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Teo Koon Peng <koonpeng@google.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
…o ignore effects of milliseconds Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
…uler Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: angatupyry <fierrofenix@gmail.com>
@aaronchongth Both This has O(n) complexity, which implies that the execution time when deleting schedules is proportional to the size of the input. It doesn't seem very inefficient to me unless we are considering a large amount of data. |
Signed-off-by: angatupyry <fierrofenix@gmail.com>
Signed-off-by: angatupyry <fierrofenix@gmail.com>
The api-server error is because pydantic warning |
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@Angatupyry, thank you so much for the help! I can verify that the deletion bug has been fixed.
Yup, I'm willing to live with that. We can further optimize this when we implement end-date for schedules, and have to handle schedules that have already past.
Gotcha! I was actually referring to a stalling error, but it looks like it may have already been resolved, perhaps it was a github runner issue. The member is called I've added a getter to access the protected member instead, this resolves the linting error |
…ent context fails Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
c8d28d3
to
31c250f
Compare
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
67aa793
to
dc3cd88
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.
I'm liking how this is looking! Thanks for all the help so far @koonpeng and @Angatupyry! LGTM
@Angatupyry can you do another round of review for this? Probably not a good idea for me to approve and just merge what I wrote 🤣
haha! Thanks, Aaron! |
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!
@aaronchongth |
Yeah I understand what you mean. Well in the spirit of mimicking a modern calendar system, we should also allow handling of schedules in the past then. Thanks for the work and review from all! Merging it! 💥 |
What's new
UI for creating scheduled task and rendering it in a calendar. Also includes changes in the backend to support querying scheduled tasks.
Self-checks
Discussion