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

feat(syncactions): add support for apiextensions, businessunits and subscriptions #1909

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phofmann
Copy link

@phofmann phofmann commented Sep 5, 2024

Summary

Adding additonal, missing sync actions

Description

We were missing some sync actions in our nodejs library for now. Added apiextensions, businessunits and subscriptions.

Todo

  • Tests
    • Unit
    • Integration
    • Acceptance
  • Documentation
  • Type label for the PR

Copy link

changeset-bot bot commented Sep 5, 2024

🦋 Changeset detected

Latest commit: e0b9064

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@commercetools/sync-actions Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.70%. Comparing base (3f14b4e) to head (e0b9064).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1909      +/-   ##
==========================================
+ Coverage   94.63%   94.70%   +0.06%     
==========================================
  Files         147      153       +6     
  Lines        5070     5134      +64     
  Branches     1379     1379              
==========================================
+ Hits         4798     4862      +64     
  Misses        269      269              
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NickDevG NickDevG requested review from a team September 5, 2024 07:44
@phofmann
Copy link
Author

phofmann commented Sep 5, 2024

fixes #1808

Comment on lines +577 to +580
{
action: 'changeAssociate',
associate: { customer: { id: 'new', typeId: 'customer' } },
},
Copy link

@NickDevG NickDevG Sep 6, 2024

Choose a reason for hiding this comment

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

If this is a new associate why is being treated as a changeAssociate?

Copy link
Author

Choose a reason for hiding this comment

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

It is a bit of a chicken--egg problem.
create-build-array-actions is comparing two objects and believes a change is ok.
Since we are having add, remove and change as update actions I am not sure what would be a better approach.

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