Skip to content
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

Fixes cloning of recurring runs #1712

Merged
merged 6 commits into from
Aug 6, 2019

Conversation

rileyjbauer
Copy link
Contributor

@rileyjbauer rileyjbauer commented Jul 31, 2019

Fixes #1266

Simplifies NewRun a little by separating out NewRunParameters into its own component.

There were a number of issues with the way recurring runs were handled in the frontend and backend that were addressed in this PR and the others referenced in #1266.

With this PR, users can no longer swap between one-off and recurring when cloning a run. Recurring runs and single runs are ostensibly similar but there are nuances to the way they are handled in the backend that makes treating them as interchangeable problematic.
Similarly, users can no longer switch Pipelines after reaching NewRun via cloning. This extra flexibility isn't worth the complexity it adds.

This PR also adds a clone button to the details page for a recurring run.

Keeping track of parameters within the Pipeline object in NewRun was causing problems because in that component, Pipeline can be an API Pipeline object or something else such as a manifest from a run created from a notebook. To address this, parameters are now kept separately in their own variable in NewRun's state.


This change is Reviewable

@rileyjbauer
Copy link
Contributor Author

/retest

@@ -170,8 +171,8 @@ class RecurringRunDetails extends Page<{}, RecurringRunConfigState> {
const pageTitle = run ? run.name! : runId;

const toolbarActions = [...this.props.toolbarProps.actions];
toolbarActions[1].disabled = !!run.enabled;
toolbarActions[2].disabled = !run.enabled;
toolbarActions[2].disabled = !!run.enabled;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably improve upon the practice of accessing toolbar items by index.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will work on a follow-up PR for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up: #1812

@IronPan
Copy link
Member

IronPan commented Aug 2, 2019

/lgtm

@Ark-kun
Copy link
Contributor

Ark-kun commented Aug 3, 2019

/retest

@rileyjbauer
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rileyjbauer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 66883b0 into kubeflow:master Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run creation failed - when cloning a recurring run
4 participants