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

docs: improvements + additions to module docs #9152

Merged
merged 18 commits into from
Oct 1, 2024

Conversation

shahednasser
Copy link
Member

  • Split Module and Module Links to their own chapters
  • Add new docs on db operations and transactions in modules, multiple services, links with custom columns, etc...
  • Added a list of registered dependencies in a module container

@shahednasser shahednasser requested a review from a team as a code owner September 16, 2024 16:19
Copy link

vercel bot commented Sep 16, 2024

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

Name Status Preview Comments Updated (UTC)
api-reference 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
api-reference-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
docs-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
medusa-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
resources-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 9:35am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Oct 1, 2024 9:35am

Copy link

changeset-bot bot commented Sep 16, 2024

⚠️ No Changeset found

Latest commit: f6add78

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

Copy link
Contributor

kodiakhq bot commented Sep 17, 2024

This PR currently has a merge conflict. Please resolve this and then re-add the automerge label.

@kodiakhq kodiakhq bot removed the automerge label Sep 17, 2024
Comment on lines +62 to +73
const retrieveBrandsStep = createStep(
"retrieve-brands",
async (_, { container }) => {
const brandModuleService = container.resolve(
"brandModuleService"
)

const brands = await brandModuleService.listBrands()

return new StepResponse(brands)
}
)
Copy link
Member

Choose a reason for hiding this comment

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

nit(non blocking): should we show the useRemoteQueryStep?

Copy link
Member Author

Choose a reason for hiding this comment

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

In this case I want to showcase the usage of the different modules, so I think it's fine to not use useRemoteQueryStep.


const cmsBrands = await cmsModuleService.createBrands(brands)

return new StepResponse(cmsBrands, cmsBrands)
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: it is not necessary to pass both args if they are the same, by default the compensation input will be the first arg if the second is not provided

Copy link
Member Author

Choose a reason for hiding this comment

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

I know, but I've avoided documenting this to avoid confusion.

@shahednasser
Copy link
Member Author

@olivermrbl can we get this one in?

@kodiakhq kodiakhq bot merged commit fb67d90 into develop Oct 1, 2024
32 checks passed
@kodiakhq kodiakhq bot deleted the docs/modules-focus-improv branch October 1, 2024 11:20
riqwan pushed a commit that referenced this pull request Oct 4, 2024
- Split Module and Module Links to their own chapters
- Add new docs on db operations and transactions in modules, multiple services, links with custom columns, etc...
- Added a list of registered dependencies in a module container
panalgin pushed a commit to vennyx-org/medusa that referenced this pull request Oct 7, 2024
- Split Module and Module Links to their own chapters
- Add new docs on db operations and transactions in modules, multiple services, links with custom columns, etc...
- Added a list of registered dependencies in a module container
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.

3 participants