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(medusa, modules-sdk, types, utils): Re work modules loading and remove legacy functions #5496

Merged
merged 34 commits into from
Nov 2, 2023

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Oct 30, 2023

What
Make it possible to load all modules from a single entry point being the medusaApp. This includes few refactoring for unnecessary functions and cleanup. It will also in the future allow us to register modules that are not part of the internal definitions for custom modules.

NOTE
Since at the moment, some legacy modules depend on core services and resources and since the core services depend on the modules, they are cyclic dependencies, once the legacy modules are migrated, we will be able to move the modules loading before the services, the services won't need to have the getter for external modules since they will always be available

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2023

🦋 Changeset detected

Latest commit: 37bdf52

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

This PR includes changesets to release 6 packages
Name Type
@medusajs/medusa Patch
@medusajs/modules-sdk Patch
@medusajs/types Patch
@medusajs/utils Patch
@medusajs/medusa-oas-cli Patch
@medusajs/oas-github-ci Patch

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

@vercel
Copy link

vercel bot commented Oct 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Nov 2, 2023 11:08pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview Nov 2, 2023 11:08pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Nov 2, 2023 11:08pm

@adrien2p adrien2p marked this pull request as ready for review October 30, 2023 14:53
@adrien2p adrien2p requested a review from a team as a code owner October 30, 2023 14:53
@adrien2p
Copy link
Member Author

adrien2p commented Nov 2, 2023

@olivermrbl can you let me know if there is anything else to do on this one? I d like to get it merged so that we can finalise the search engine PR

@olivermrbl olivermrbl merged commit 154c9b4 into develop Nov 2, 2023
@olivermrbl olivermrbl deleted the feat/medusa-app-loading branch November 2, 2023 16:59
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.

4 participants