-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat(sync/customers): add setStores
#1468
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1468 +/- ##
=======================================
Coverage 98.31% 98.31%
=======================================
Files 126 126
Lines 3272 3272
Branches 751 751
=======================================
Hits 3217 3217
Misses 51 51
Partials 4 4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment, would be great if you could check it 😄
expect(actual).toEqual([ | ||
{ | ||
action: 'setStores', | ||
stores: ['canada', 'usa'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you really sure this works against our api? according to our docs (https://docs.commercetools.com/http-api-projects-customers#set-stores-beta) you have to provide a ResourceIdentifier
(https://docs.commercetools.com/http-api-types.html#resourceidentifier) and not just a string
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
I was working under the MC context the whole time, which we always use string for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7b3e351
to
2403522
Compare
Looks very good to me 👍 |
the lint passed. Do I need to wait for the other checks too? it doesn't look like they are running |
@adnasa Which other checks do you mean? |
oh well never mind... here we go 🎉 |
Summary
setStores
. ref https://docs.commercetools.com/http-api-projects-customers#set-stores-betaThis is to prepare for a feature in the MC