Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@garyrvaz
Copy link

@garyrvaz garyrvaz commented Oct 16, 2019

Impact: minor
Type: refactor

Issue

If there are more than one fulfillment groups, this mutation will update the workflow of all the groups.

Solution

Adding arrayFilters to the collection update to make sure only the group, for which the id is provided, gets updated. Had to remove the schema modifier validation due to this: Meteor-Community-Packages/meteor-collection2#387

Breaking changes

none

More detail for what each of these sections should include are available in our Contributing Docs

@aldeed aldeed merged commit e1d2905 into reactioncommerce:develop Oct 23, 2019
@aldeed
Copy link
Contributor

aldeed commented Oct 23, 2019

Thank you for the contribution @Yuuwaku

@garyrvaz
Copy link
Author

Happy to assist @aldeed

@machikoyasuda
Copy link
Contributor

Hi @Yuuwaku - I am going to revert this PR for now because the integration test is failing: https://circleci.com/gh/reactioncommerce/reaction/59315 Could you please look into this and make a new PR?

@garyrvaz
Copy link
Author

garyrvaz commented Nov 1, 2019

Hey @machikoyasuda I see that the test for updateOrderFulfillmentGroup is passing in the link you mentioned. The integration tests seem to fail due to user permissions in other tests that are not related to these changes. And the only change here is to implement arrayFilters.

@machikoyasuda machikoyasuda mentioned this pull request Nov 1, 2019
@garyrvaz
Copy link
Author

garyrvaz commented Nov 1, 2019

@machikoyasuda also, at the time I raised this PR, there were other PRs as well that had failure in tests which was identified here: #5715 (review)
This may help if there are any others PRs that are being flagged to be reverted.

@machikoyasuda
Copy link
Contributor

@Yuuwaku Hi! Thanks for your swift reply! We're looking into this. We won't revert this PR most likely. Still trying to find where the tests are failing.

@garyrvaz
Copy link
Author

garyrvaz commented Nov 1, 2019

@machikoyasuda from what I found out while researching regarding the integration tests timing out, is that it is due to an issue with jest using one worker in --runInBand. Here are some references that may be helpful with the issue.

@machikoyasuda
Copy link
Contributor

@Yuuwaku Thank you. I closed the revert PR. Adding maxWorkers=3 and removing runInBand fixed the tests so we’re all good now.

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.

3 participants