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

Add UI actions to Buttons module #758

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

yebrahim
Copy link
Contributor

@yebrahim yebrahim commented Jan 31, 2019

This PR refactors button action methods into the Buttons module, which fixes a few bugs, and allows for sharing common functionality.


This change is Reviewable

disabledTitle: 'Run schedule already disabled',
id: 'disableBtn',
title: 'Disable',
tooltip: 'Disable the run\'s trigger',
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe "Prevent[/Stop] this from scheduling[/creating] additional runs"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ajayalfred what do you think of this suggestion? I also think it can use a little clearing.

} catch (err) {
unsuccessfulIds.push(id);
const errorMessage = await errorToMessage(err);
errorMessages.push(`Failed to ${actionName.toLowerCase()} ${resourceName}: ${id} with error: "${errorMessage}"`);
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: making the action name uppercase would better indicate the generality of it, but maybe we don't want that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now it reads nicely as "Failed to delete pipeline: id with error..." which I think is nicer than if it starts with a capital letter.

frontend/src/lib/Buttons.ts Outdated Show resolved Hide resolved
frontend/src/lib/Buttons.ts Outdated Show resolved Hide resolved
frontend/src/lib/Buttons.ts Outdated Show resolved Hide resolved
@rileyjbauer
Copy link
Contributor

/lgtm
/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
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 e29b181 into kubeflow:master Jan 31, 2019
@yebrahim yebrahim deleted the button-actions branch March 6, 2019 19:06
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
listing images shouldn't fail the build. update
the script to ignore the return value of those
commands.

Signed-off-by: Yihong Wang <yh.wang@ibm.com>
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.

3 participants