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

OBAM-172 First page of the bin replenishment wizard #2650

Merged
merged 4 commits into from
Sep 17, 2021
Merged

Conversation

awalkowiak
Copy link
Collaborator

No description provided.

eq("location", location)
eq("status", inventoryLevelStatus)
}.collect { Requirement requirement ->
Copy link
Contributor

Choose a reason for hiding this comment

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

why are you using collect here instead of findAll?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought it will be an easier and cleaner way of getting rid of duplicates.

Copy link
Contributor

Choose a reason for hiding this comment

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

in this case unique() should be fine

Copy link
Member

Choose a reason for hiding this comment

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

Agree with @pmuchowski. Seems like each (iterate) would be better than collect (transform), but unique seems like the better option.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

eq("location", location)
eq("status", inventoryLevelStatus)
}.collect { Requirement requirement ->
Copy link
Member

Choose a reason for hiding this comment

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

Agree with @pmuchowski. Seems like each (iterate) would be better than collect (transform), but unique seems like the better option.

@pmuchowski pmuchowski merged commit 8ca8c99 into develop Sep 17, 2021
@pmuchowski pmuchowski deleted the OBAM-172 branch September 17, 2021 10:01
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.

None yet

3 participants