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 Deletion button to archived runs #3285

Merged
merged 6 commits into from
Mar 18, 2020

Conversation

jingzhang36
Copy link
Contributor

@jingzhang36 jingzhang36 commented Mar 16, 2020

@jingzhang36
Copy link
Contributor Author

/assign @Bobgy

Copy link
Contributor

@Bobgy Bobgy left a comment

Choose a reason for hiding this comment

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

/lgtm

Only a few minor issues. You can fix them and merge

@@ -60,17 +67,29 @@ describe('Archive', () => {
expect(updateBannerSpy).toHaveBeenCalledWith({});
});

it('only enables restore button when at least one run is selected', () => {
it('only enables restore and delete button when at least one run is selected', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('only enables restore and delete button when at least one run is selected', () => {
it('enables restore and delete button when at least one run is selected', () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

expect(deleteRunSpy).toHaveBeenCalledWith('id1');
expect(deleteRunSpy).toHaveBeenCalledWith('id2');
expect(deleteRunSpy).toHaveBeenCalledWith('id3');
console.log(tree.state('selectedIds'));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: forget to delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

it('deletes selected ids when Confirm is clicked', async () => {
tree = shallow(<Archive {...generateProps()} />);
tree.setState({ selectedIds: ['id1', 'id2', 'id3'] });
console.log(tree.state('selectedIds'));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: forget to delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah... done

@Bobgy
Copy link
Contributor

Bobgy commented Mar 18, 2020

FYI, your mentioned context in #3285 (comment) seems wrong. Could you double check?

@k8s-ci-robot k8s-ci-robot removed the lgtm label Mar 18, 2020
@jingzhang36
Copy link
Contributor Author

FYI, your mentioned context in #3285 (comment) seems wrong. Could you double check?

yes. changed to the bug #3283

Copy link
Contributor

@Bobgy Bobgy left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy

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

@jingzhang36
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

@k8s-ci-robot k8s-ci-robot merged commit 01074dc into kubeflow:master Mar 18, 2020
Jeffwan pushed a commit to Jeffwan/pipelines that referenced this pull request Dec 9, 2020
* addd delete button to archived run page

* unit test

* comments

* address comments

* remove unintended console log in test
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