Skip to content

[codex] fix medusa model relationships#23

Open
dhulnab wants to merge 1 commit into
medusajs:mainfrom
dhulnab:codex/fix-medusa-model-relationships
Open

[codex] fix medusa model relationships#23
dhulnab wants to merge 1 commit into
medusajs:mainfrom
dhulnab:codex/fix-medusa-model-relationships

Conversation

@dhulnab

@dhulnab dhulnab commented Jun 23, 2026

Copy link
Copy Markdown

Summary

Fixes the Medusa lint failure caused by direct cross-file model relationship imports in the custom company and quote modules.

The related model pairs are now co-located in their owning model files, while the previous sibling model files re-export the moved model. This keeps existing import paths working and preserves the generated schema shape for company_id and quote_id relationships.

Root cause

Medusa's @medusajs/link-no-cross-module-relationship rule flagged direct relationship references imported from sibling model files as cross-module relationships, blocking medusa develop during lint.

Validation

  • pnpm lint passes with 0 errors
  • pnpm dev no longer stops at the relationship lint failure and proceeds into the running dev server

@dhulnab dhulnab marked this pull request as ready for review June 23, 2026 15:46
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.

1 participant