Adrien de Peretti
802f204d31
fix(orchestration): Throw if not exists using filters ( #9275 )
2024-09-24 17:12:04 +02:00
Carlos R. L. Rodrigues
b4b1a48987
feat(utils): define read only link ( #9254 )
2024-09-24 12:00:38 -03:00
Adrien de Peretti
90d530565b
chore(): Remove default limit from the build query ( #9257 )
...
* chore(): Remove default limit from the build query
* rm take: null
* fix tests
* fix tests
* fix db usage
* fix typo
* rm unsused template arg
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
2024-09-24 16:06:45 +02:00
Harminder Virk
9e711720dd
chore: upgrade moduleResolution to Node16 ( #9269 )
2024-09-24 17:19:20 +05:30
Harminder Virk
97e003ef4f
chore: Cleanup utils package ( #9238 )
...
Fixes: FRMW-2712
Old PR: https://github.com/medusajs/medusa/pull/9234 Closed because of incorrect branch naming
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-09-23 10:37:58 +00:00
Adrien de Peretti
58167b5dfa
feat(index): Index module foundation ( #9095 )
...
**What**
Index module foundation
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-18 19:04:04 +00:00
Adrien de Peretti
a734184538
chore(): Handle medusa service base methods events ( #9179 )
...
* chore(): Handle medusa service base methods events
* cleanup
* cleanup
* fix import
* fix decorator order
* fixes
* apply default event emition
* fix binding
* fix binding
* align tests with new event emition
2024-09-18 17:57:00 +02:00
Adrien de Peretti
81d3ae01c7
chore: Cleanup manager decorator usage ( #9181 )
2024-09-18 14:16:20 +02:00
Carlos R. L. Rodrigues
8829f89402
chore: query graph api ( #9125 )
...
CLOSES: FRMW-2704
**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-09-16 11:32:44 +00:00
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Carlos R. L. Rodrigues
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Shahed Nasser
4ffcc41fe7
chore(utils): update auth provider TSDocs + fix errors stopping references build ( #9023 )
...
- Updated the TSDocs of the auth provider
- Update the Node version in the docs-util as the outdated version was causing TypeScript error
- Add `@ts-ignore` for a line that was causing a typescript error. If there's a better fix here let me know
2024-09-09 13:53:33 +00:00
Adrien de Peretti
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Carlos R. L. Rodrigues
5a097d8954
feat(utils): dml to graphql ( #8951 )
2024-09-04 06:15:07 -03:00
Riqwan Thamir
ff623f8b00
fix(order,utils): fix outstanding amount stuck on long orders ( #8968 )
2024-09-03 18:48:47 +02:00
Adrien de Peretti
3da01035f3
fix: Shipping profile deletion with options ( #8910 )
...
* fix(fulfillment): Prevent deletion of profiles associated to options
* add tests
* typo
* address feedback
2024-08-30 17:04:29 +02:00
Adrien de Peretti
5bec38538a
chore: Treat internal event differently, primarely do not display info logs for those events ( #8767 )
...
* chore: Treat internal event differently, primarely do not display info log for those events
* revert doc
* add few tests
* only set internal option if present
* revert to previous condition
* start including feedback after discussion
* include feedback
* fix modules integration tests
* fix modules integration tests
* fix event bus local
2024-08-28 16:46:40 +02:00
Carlos R. L. Rodrigues
058378970a
chore: dependecies reorg ( #8535 )
2024-08-23 07:16:04 -03:00
Harminder Virk
5f310c0a00
breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix ( #8672 )
2024-08-20 17:05:19 +05:30
Harminder Virk
69830ca89c
fix: maintain connections pool ( #8670 )
2024-08-20 14:54:52 +05:30
Carlos R. L. Rodrigues
c9c1a5b41c
chore: rm pg dependency ( #8526 )
2024-08-08 17:22:57 +00:00
Adrien de Peretti
2188a4e1ba
fix: isList on field alias in link configuration ( #8244 )
...
* fix/link-configuration-is-list-on-fieldsAlias
* fix tests
* fix tests
* fix tests
2024-07-24 10:18:38 +02:00
Adrien de Peretti
a9abf448c6
fix(utils): Fix inferrence of public method name and service registration name based on configuration ( #8237 )
2024-07-23 14:43:46 +02:00
Adrien de Peretti
f74fdcb644
breaking: rework how links database migrations are managed ( #8162 )
2024-07-22 13:12:23 +05:30
Adrien de Peretti
566300d54b
fix: normalize path before consuming it while loading models ( #8194 )
...
* fix: normalize path before consuming it while loading models
* Make it so that models derived from the service if present
* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config
* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config
* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config
2024-07-21 21:21:05 +02:00
Adrien de Peretti
398e39d163
fix: product module joiner config ( #8170 )
...
* fix: product module joiner config
* fix aliases
* revert package.json
* add js doc
2024-07-18 11:27:21 +02:00
Harminder Virk
f579f0b3be
feat: restructure events payload ( #8143 )
...
* refactor: restructure events payload
Breaking change: This PR changes the event payload accepted by the event
listeners
* refactor: fix failing tests and implement feedback
* add integration tests
* fix timeout
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
2024-07-16 17:09:16 +01:00
Adrien de Peretti
8a68919ed3
chore: Allow to fetch remote link using the service name or the alias from the use remote link step ( #8140 )
...
* chore: Allow to fetch remote link using the service name or the alias from the use remote link step
* revert package.json
* fix packages
2024-07-16 11:03:41 +02:00
Harminder Virk
5bb870948a
fix: defineMikroOrmCliConfig helper to provide default db credentials ( #8131 )
2024-07-15 15:49:00 +05:30
Adrien de Peretti
104b00d4e9
feat(migrations): CLI generate command ( #8103 )
2024-07-12 13:12:49 +02:00
Shahed Nasser
85c15dbb25
fix(utils): error message when isQueryable is possibly not enabled. ( #8096 )
2024-07-11 18:54:43 +02:00
Adrien de Peretti
79ec2bcfe2
fix: Migration generator and generated migrations ( #8090 )
2024-07-11 18:21:09 +02:00
Shahed Nasser
66acb3023e
fix(migrations): small fix to the text ( #8091 )
...
Small fix to the migrations text.
2024-07-11 13:16:11 +00:00
Harminder Virk
e489b0c037
fix: gracefully handle migrations that cannot be reverted ( #8087 )
2024-07-11 17:40:34 +05:30
Harminder Virk
45c573b03a
Feat: Improvements to the migrations CLI and workflow ( #8060 )
2024-07-11 16:52:34 +05:30
Adrien de Peretti
1789b8e315
chore: properly infer return type from model config ( #8079 )
2024-07-11 10:36:07 +02:00
Carlos R. L. Rodrigues
f460348280
fix(utils): define link alias + pluralize ( #8070 )
...
What:
* Fix alias of models that have "compound names": eg "related_product"
* `deleteCascade` option
* Package to pluralize english words correctly
2024-07-10 22:37:14 +00:00
Adrien de Peretti
e778870c68
chore: Ensure the events are emitted with the same shape all accross ( #8063 )
...
* chore: Ensure the events are emitted with the same shape all accross
* fixes:
* rm unsues type
* types
* fix tests
2024-07-10 19:34:28 +02:00
Harminder Virk
4b391fc3cf
Initial implementation with just the generate method ( #7973 )
2024-07-09 12:32:02 +05:30
Adrien de Peretti
10848c8bf2
chore: rename source to linkable in defineLink options ( #8016 )
...
* chore: rename source to linkable in defineLink options
* rm unused const
2024-07-08 16:44:03 +02:00
Adrien de Peretti
b450628481
fix: error 4082 when using defineLink ( #8014 )
2024-07-08 12:05:44 +02:00
Adrien de Peretti
9750047af1
chore: Rename entity to model ( #7977 )
...
**What**
Start renaming `entity` to `model`
2024-07-08 07:43:49 +00:00
Adrien de Peretti
b368251ca3
chore: Migrate modules to use the Module util ( #7964 )
...
**What**
Apply the `Module` util to each module to handle the export and provide the linkable configuration object.
- Most joiner config that does not have any special config are removed/cleaned up in favor of the autogenerated one or simpler one
- linkable are now available in all modules
- cleaned up the dependencies of the modules
FIXES CORE-2410
2024-07-05 13:00:40 +00:00
Adrien de Peretti
1393f51046
fix: Improve get caller file path util ( #7974 )
...
* fix: Improve get caller file path util
* improve compatibility
* update comment
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-07-05 12:54:27 +02:00
Adrien de Peretti
f49139b20f
fix: custom link resolution in medusa app ( #7950 )
...
* fix custom link resolution in medusa app
* improve
* fix duplicate
2024-07-04 16:50:53 +02:00
Adrien de Peretti
7b84d854f0
Feat/mikro orm based linkable ( #7944 )
...
**What**
- Generate simple linkable for mikro orm based modules
- fix module util
- fix joiner config builder
- fix define link relationship extension
- fix migrations not loading custom links
2024-07-04 13:30:47 +00:00
Adrien de Peretti
cb36655b63
chore: Update defineMikroOrmCliConfig api ( #7940 )
...
* chore: Update defineMikroOrmCliConfig api
* update usage
2024-07-04 12:58:43 +02:00
Adrien de Peretti
41c4307fc7
feat: define link util ( #7931 )
...
* feat: define link util
* handle pluralized fieldAlias for isList
* serviceName ar reference
* finalize
* todo
* WIP
* finalize
* fix tests
* update typings
* fix Module
* linkable
* update errors
2024-07-04 10:37:30 +02:00
Harminder Virk
cc3eb8698d
fix: omit mikro orm entities values from the config ( #7938 )
2024-07-04 13:21:52 +05:30
Riqwan Thamir
b6e4435c23
chore: cleanup migrations logs ( #7924 )
...
what:
when running `medusa run migrations`, cleanup logs with short descriptive message.
Before:
<img width="1262" alt="Screenshot 2024-07-03 at 14 31 36" src="https://github.com/medusajs/medusa/assets/5105988/504e9c24-371c-476d-9b6d-2dfe1a4088dc ">
After:
<img width="1004" alt="Screenshot 2024-07-03 at 14 42 57" src="https://github.com/medusajs/medusa/assets/5105988/a89eaed5-04a4-4efb-a2e9-ca480f1eaa6e ">
2024-07-03 13:53:59 +00:00