Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Conversation

@rawagner
Copy link
Contributor

@rawagner rawagner commented May 4, 2019

@coveralls
Copy link

coveralls commented May 4, 2019

Pull Request Test Coverage Report for Build 1766

  • 24 of 43 (55.81%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.07%) to 82.625%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Table/TableFactory.js 0 1 0.0%
src/components/Table/EditableDraggableTable.js 0 18 0.0%
Files with Coverage Reduction New Missed Lines %
src/components/Table/EditableDraggableTable.js 1 59.12%
Totals Coverage Status
Change from base Build 1508: -0.07%
Covered Lines: 3811
Relevant Lines: 4406

💛 - Coveralls

onStepDataChanged = (tabKey, value, valid, editing = false) => {
const validatedTabData = validateTabData(tabKey, value, valid);
this.safeSetState(state => ({
editing,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the tab should merely request to lock the createVmWizard and not take Wizard state into account. This is very useful when using asynchronous actions.

I suggest something like:

{
  stepData: {
    [tabKey]: {
      lockStep
    }
  }
}

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, lockStep is under [tabKey] now


let type = ON_CANCEL;
if (this.props.rows[index].newRow) {
rows = this.props.rows.filter(row => row.id !== id);
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we rather call onDelete method from here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

extracted onDelete to separate function which is now reused where needed

@rawagner rawagner force-pushed the delete_on_cancel branch from fdd8f04 to 2c10692 Compare May 6, 2019 12:33
@atiratree atiratree merged commit 6cb420e into kubevirt:master May 7, 2019
rawagner added a commit to rawagner/web-ui-components that referenced this pull request May 9, 2019
atiratree pushed a commit that referenced this pull request May 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants