-
Notifications
You must be signed in to change notification settings - Fork 167
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
Add a numerical input to Create Periodic Scheduled Runs #1768
Add a numerical input to Create Periodic Scheduled Runs #1768
Conversation
df418e9
to
c4d8c7b
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.
Some suggestions I want
frontend/src/concepts/pipelines/content/createRun/contentSections/RunTypeSectionScheduled.tsx
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/createRun/submitUtils.ts
Outdated
Show resolved
Hide resolved
frontend/src/concepts/pipelines/content/createRun/submitUtils.ts
Outdated
Show resolved
Hide resolved
frontend/src/__tests__/unit/utils/pipelines/convertPeriodicTime.spec.ts
Outdated
Show resolved
Hide resolved
c4d8c7b
to
eda08a4
Compare
eda08a4
to
7e29e6b
Compare
5c40af5
to
a956f6f
Compare
@dpanshug Why WIP label? I don't see a reasoning... perhaps use /hold |
a956f6f
to
23c464b
Compare
/unhold After feature freeze |
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.
0 is an odd default... can we do something better than that? @yannnz do we want a singular default? 1 Minute, 1 Hour, 1 Day, 1 Week? (1 Minute is really low though)...
@dpanshug you can submit at 0 -- this is weird. I can't imagine 0 being a valid value... can we not make the min >0?
@dpanshug Is there a need to have such a wide input? Can we not make it shorter so 2-ish characters fit? This is always a number and the number of digits it has is probably no more than 3 if someone wants to do 100 minutes or something... but 1 or 2 is most common. Max I should see is 4 characters upon deselection.
@yannnz is this the desired design? Or do we want to look for a - / + & a space between the field and dropdown like we have on Model Serving modal:
@andrewballantyne @dpanshug The default could be 1 week, because 1 min might cause some problem for the admin. For example, someone scheduled runs for testing with the default setting, and forgot to disable it. That is what happened several times in RedHat and Erwan even suggested to not have 1min. |
@andrewballantyne @dpanshug For the design, let's keep the space and number input to make it consistent with Model serving. |
23c464b
to
4bcf981
Compare
4bcf981
to
c88c79a
Compare
@dpanshug please update your description screenshots |
frontend/src/concepts/pipelines/content/createRun/contentSections/RunTypeSectionScheduled.tsx
Outdated
Show resolved
Hide resolved
c88c79a
to
f6fca54
Compare
frontend/src/concepts/pipelines/content/createRun/contentSections/RunTypeSectionScheduled.tsx
Outdated
Show resolved
Hide resolved
cc70a6d
to
85ec0b9
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.
/lgtm
This is ready for final review |
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.
Need to handle the duplicate use-case... you don't update the value
85ec0b9
to
ae5e2ad
Compare
ae5e2ad
to
a890b6f
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, manaswinidas The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: #1244
Description
Added a feature to include numerical input to create Periodic Scheduled Runs on side of dropdown to select time unit.
After creating run, the output is like (no change to this page)
How Has This Been Tested?
Test Impact
Added unit test to test string and time utility functions.
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main
cc @yannnz