Skip to content

Conversation

@Ron-Lavi
Copy link
Collaborator

After items were moved between the lists,
they should not be selected as specified in the design.

@patternfly-build
Copy link
Collaborator

PatternFly-React preview: https://1178-pr-patternfly-react-patternfly.surge.sh

@coveralls
Copy link

coveralls commented Jan 14, 2019

Pull Request Test Coverage Report for Build 3960

  • 12 of 14 (85.71%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 80.126%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/patternfly-3/patternfly-react/src/components/DualListSelector/helpers.js 9 11 81.82%
Files with Coverage Reduction New Missed Lines %
packages/patternfly-3/patternfly-react/src/components/DualListSelector/DualList.js 3 76.81%
Totals Coverage Status
Change from base Build 3950: -0.06%
Covered Lines: 4393
Relevant Lines: 5145

💛 - Coveralls

dtaylor113
dtaylor113 previously approved these changes Jan 14, 2019
items.sort((a, b) => (a[sortFactor].toLowerCase() > b[sortFactor].toLowerCase() ? 1 : -1));

export const arrangeArray = ({ items, sortBy, isSortAsc = true, isMainChecked = false }) => {
export const shouldItemBeChecked = ({ item, resetAllSelected, isMainChecked }) => {
Copy link
Member

Choose a reason for hiding this comment

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

why take a object with three fields rather than 3 parameters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops, copy-pasted it from another function signature with a lot of properties,
I don't mind changing it,
btw from what number of arguments do we usually provide objects instead?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure we ever should in helper functions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no problem, opening a PR to refactor that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the refactor PR now

@jeff-phillips-18 jeff-phillips-18 merged commit 91c33bf into patternfly:master Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants