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: import strategy - sales channels support #2124

Merged
merged 20 commits into from
Sep 2, 2022

Conversation

fPolic
Copy link
Contributor

@fPolic fPolic commented Aug 29, 2022

What

  • add support for specifying sales channel with import strategy
  • additional:
    • refactor SC service to use retrieve_ pattern
    • fix: pass arguments from startServerWithEnvironment to setup server
    • fix: minio undefined resolve/reject calls
    • fix: csv parser - detect missing columns from schema only if the column is required

How

  • extending schema to expect sales channels columns in an import CSV file

RESOLVES CORE-304

@changeset-bot
Copy link

changeset-bot bot commented Aug 29, 2022

⚠️ No Changeset found

Latest commit: 777d3af

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@fPolic fPolic force-pushed the feat/import-strategy-sales-chanels branch from 730b6f5 to 63571e1 Compare August 31, 2022 15:21
@fPolic fPolic marked this pull request as ready for review August 31, 2022 17:39
@fPolic fPolic requested a review from a team as a code owner August 31, 2022 17:39
Copy link
Collaborator

@srindom srindom left a comment

Choose a reason for hiding this comment

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

Great work! 🙏 Have a few small comments

packages/medusa/src/services/sales-channel.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@pKorsholm pKorsholm left a comment

Choose a reason for hiding this comment

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

I think it looks good! I have a comment about the pattern used for retrieveByName since we've handled it differently in different services and it might be something to take a look at 😄

packages/medusa/src/services/sales-channel.ts Show resolved Hide resolved
Copy link
Contributor

@pKorsholm pKorsholm left a comment

Choose a reason for hiding this comment

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

lgtm, very nice!

Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

LGTM! Great work 💪

@kodiakhq kodiakhq bot merged commit 546a963 into develop Sep 2, 2022
@kodiakhq kodiakhq bot deleted the feat/import-strategy-sales-chanels branch September 2, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants