Frane Polić
48d8b2c623
fix(core-flows): variant pricing batch update ( #7677 )
...
* fix: variant pricing batch update
* fix: batch endpoint throwing when `create` array isn't passed
* fix: batch variants workflow
2024-06-11 19:45:43 +02:00
Harminder Virk
5f348d88f4
Initial implementation of DML to Mikro ORM entity generation ( #7667 )
...
* feat: initial implementation of DML to Mikro ORM entity generation
CORE-2279
* test: fix breaking tests
* refactor: cleanup code for defining properties and relationships
* feat: finish initial implementation of relationships
2024-06-11 21:00:36 +05:30
Stevche Radevski
0e731dbad0
feat: Add support for category deletion ( #7679 )
2024-06-11 16:49:42 +02:00
Adrien de Peretti
dd0b9f0805
feat: workflows release events ( #7664 )
...
* feat: Release grouped events once a worfklow finish
* update common step
* update types
* tests
* optionality
* fies
* cancel flow on release failure
* clear events on fail
* more tests
* log errors
* log more errors
* update missing interface method declaration
* fix missing return
* update mock
* fix tests
2024-06-11 15:48:15 +02:00
Stevche Radevski
bef5941714
feat: Add support for scheduled jobs ( #7674 )
2024-06-11 11:35:56 +00:00
Adrien de Peretti
afae395fea
chore: ensure the event group id is kept for async workflow ( #7668 )
...
* chore: ensure the event group id is kept for async workflow
* revert test
* fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-06-11 13:20:17 +02:00
Stevche Radevski
3d72002c28
fix: Remove scheduled workflows if they no longer exist when executed ( #7673 )
2024-06-11 12:57:25 +02:00
Stevche Radevski
8e2a42b786
Clean up product typings ( #7663 )
...
There are a lot of issues in the admin after applying the correct typings, but fixing those should be done gradually, it's better to keep it out of this PR
2024-06-11 09:28:40 +00:00
Shahed Nasser
f3bf8c73a3
docs: added cart storefront guides ( #7662 )
...
* docs: added cart storefront guides
* add context guides
* small fixes to the context
2024-06-11 11:56:37 +03:00
Carlos R. L. Rodrigues
37426939da
Feat(order): post purchase support ( #7666 )
2024-06-10 18:44:51 -03:00
Riqwan Thamir
39ddba2491
chore: ability to group events on redis event bus ( #7655 )
...
* chore: ability to group events on redis event bus
* chore: fix tests
* Update packages/modules/event-bus-redis/src/services/event-bus-redis.ts
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
* chore: change shape of input and body data
* chore: fix builds
* chore: address comments
* chore: fix unit test
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
2024-06-10 22:15:43 +02:00
Frane Polić
3b8160b564
chore: remove pricing conversions on admin ( #7665 )
2024-06-10 17:38:35 +02:00
Frane Polić
f08f0d6cc9
feat(dashboard): inventory create flow ( #7650 )
2024-06-10 17:37:36 +02:00
Stevche Radevski
69410162f6
feat: Add support for scheduled workflows ( #7651 )
...
We still need to:
But wanted to open the PR for early feedback on the approach
2024-06-10 14:49:52 +00:00
Harminder Virk
7f53fe06b6
Initial implementation of data types and base schema ( #7644 )
2024-06-10 14:31:42 +05:30
Shahed Nasser
2597990363
docs: fix details of selecting fields and relationships in api reference ( #7642 )
2024-06-09 15:19:51 +02:00
Shahed Nasser
46c5c5fe28
docs: added storefront regions guides ( #7623 )
2024-06-09 15:19:09 +02:00
Shahed Nasser
6946814944
docs: update recipes to be based on v2 ( #7516 )
2024-06-09 15:18:43 +02:00
Shahed Nasser
e472aed00f
docs: new + improved auth documentation pages ( #7529 )
...
* added and improved auth docs
* add prep to generates resources action
* add module options to sidebar
* fix broken link
2024-06-09 15:18:29 +02:00
Oli Juhl
3f661c917b
feat: Fix subscribers loading + add order <> cart link ( #7617 )
2024-06-09 12:31:28 +02:00
Riqwan Thamir
fbb00f3863
chore: group & release events for local eventbus ( #7649 )
...
* chore: stage & release events for local eventbus
* chore: address review
* chore: mock emitter correctly
2024-06-07 15:31:16 +02:00
Adrien de Peretti
c9c2b6c88f
chore: Ensure the transactionId/eventGroupId are passed down the child workflows ( #7648 )
2024-06-07 12:38:04 +02:00
Adrien de Peretti
2e77a076b8
feat: Add emitEvent step + cleanup ( #7643 )
...
* feat: Add emitEvent step + cleanup
* fix typo
* fix typo
2024-06-07 11:52:19 +02:00
Adrien de Peretti
3cd2d60daa
feat: Ensure the event group id is either generated or picked up from the context ( #7646 )
...
**What**
- Pick the context event group id or generate it to be accessible from the workflow and down the module calls
FIXES CORE-2273
2024-06-07 09:14:02 +00:00
Frane Polić
987141ab2d
fix(dashboard) editor columns ( #7534 )
...
* fix: reorg variant editor columns, auto select default sales channel when creating products
* fix: remove return
* fix: add placeholders on options create inputs, add placeholder for chip input
* fix: gaps on details pages
* fix: address feedback
2024-06-07 10:59:19 +02:00
Riqwan Thamir
1f1b996f63
chore: buyget templates add default target + buy rules ( #7500 )
...
* chore: buyget templates add default target + buy rules
* chore: reposition
* chore: address comments
* chore: added fixes
* chore: fix typo
* chore: fix strictness checks
2024-06-07 09:47:31 +02:00
Shahed Nasser
bd302e678e
fix(medusa): return a single category instead of an array in retrieve category route ( #7638 )
...
* fix(medusa): return a single category instead of an array in retrieve category route
* change to use refetchEntity
2024-06-06 19:30:31 +02:00
Shahed Nasser
636bf3a15f
fix(medusa-oas-cli): add circular dependency ( #7639 )
2024-06-06 20:26:11 +03:00
Shahed Nasser
6798bd9a0d
docs-util: fix path to packages in mermaid plugin ( #7640 )
2024-06-06 20:25:34 +03:00
Oli Juhl
f0e78d062e
feat: Add tax region + rates to SDK and types ( #7635 )
...
* feat: Add tax region + rates to SDK and types
* replace client with sdk in loaders
* Address PR feedback
2024-06-06 18:31:39 +02:00
Shahed Nasser
fa0c7dfbb5
fix(create-medusa-app): set the database host and port explicitely ( #7637 )
...
* pass host and port explicitely
* set AUTH_CORS in env
2024-06-06 18:26:06 +03:00
Stevche Radevski
a62a8be016
chore: Move price list tests to HTTP folder ( #7632 )
...
* chore: Move price list tests to HTTP folder
* chore: Remove several unused helpers
2024-06-06 17:17:41 +02:00
Adrien de Peretti
9576de2be4
feat: emit product tags events ( #7636 )
...
**What**
emit product tags events
**note**
Stil does not take into consideration non overriden method, delete and soft delete emits event under the hood and we will have to migrate that at the end
2024-06-06 15:14:40 +00:00
Adrien de Peretti
3f62bfad5a
fix: should disable db connection ssl when some url params are provided ( #7634 )
...
**What**
Enable ssl identification from the client url query params as well
2024-06-06 14:52:12 +00:00
Stevche Radevski
78768574af
chore: Remove generated client types folder ( #7633 )
...
* chore: Remove generated client types folder
* chore: Remove typescript-codegen package and client commands for oas
2024-06-06 16:14:35 +02:00
Riqwan Thamir
0507dbe027
chore(core-flows,inventory,types,medusa): add fixes to inventory module + location levels api ( #7629 )
...
what:
- santizes inputs to prevent reserved_quantity from being updated directly
- inventory items create api can create location levels
- add validation to update quantity of reservation items
- general cleanup
RESOLVES CORE-2254
2024-06-06 12:58:17 +00:00
Adrien de Peretti
3fbb8aa671
feat: Product module events ( #7598 )
...
WIP, not ready to review
**what**
- add events
- integration tests of emitted events
- remove integration tests on auto generated services in favor of module method integration tests
2024-06-06 11:47:38 +00:00
Frane Polić
c3b6fc1d8e
fix: the rest of sdk rename issues ( #7631 )
2024-06-06 12:13:58 +02:00
Frane Polić
e8df2431f8
fix(dashboard): stale params ( #7630 )
...
**What**
- fix places where we send wrong params (strict validation is now returning 400s for these)
- use SDK instead client for order details loader
2024-06-06 09:23:34 +00:00
Kasper Fabricius Kristensen
50ce223e4b
feat(types,js-sdk,medusa,fulfillment): Types and SDK methods related to Stock Locations ( #7625 )
2024-06-06 11:04:42 +02:00
Frane Polić
9677daa568
fix(dashboard): import in client ( #7628 )
...
**What**
- fix import of deleted file
2024-06-06 08:49:21 +00:00
Kasper Fabricius Kristensen
1f203774cb
feat(dashboard): SwitchBox component ( #7607 )
...
**What**
- In the latest design changes, the Switch component needs to be wrapped in a container with a label and description. It doesn't make sense to add this "variant" to `@medusajs/ui`, so I have created a local component that we can use every time the design calls for this setup, to avoid re-implementing it multiple times, and the design being inconsistent across usages.
- Updates the Product domain forms to use the component. There are other places that needs to be updated to use it, but we can tackle those in our clean up tasks. I have checked with Ludvig and this design should be used everywhere we previously had the design shown in the first image.
<img width="604" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/053e40c4-fa8f-4cac-96b3-659deeb6d760 ">
<img width="745" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/890eb28f-83ac-4fa6-968f-cc204f1acd1e ">
2024-06-06 08:09:38 +00:00
Frane Polić
cc0452d29e
fix(dashboard): sdk domains ( #7627 )
...
**What**
- fix invite and collections flows that were failing due to the wrong domain name in the SDK class
2024-06-06 07:08:29 +00:00
Frane Polić
d285e60961
feat(dashboard,core-flows,medusa): update fulfillment flows ( #7589 )
...
* fix: fulfillment ops
* fix: cancel fulfillment route
* fix: adjustInventoryLevelsStep throwing
* feat: cancel order and fix endpoint
* fix: type
* feat: order domain sdk
* feat: delete unused file
* fix: import
2024-06-06 08:58:21 +02:00
Adrien de Peretti
da3837f2bc
chore: return meta information on created/updated/deleted object from upsertWithReplace ( #7616 )
...
**What**
- Return the updated/deleted/created entities from the upsert with replace according to the configuration
This will help to emit the events from the product module as it rely on this abstraction in many places
2024-06-05 20:04:45 +00:00
Kasper Fabricius Kristensen
8387c72e96
fix(dashboard): Add empty state for media section ( #7614 )
2024-06-05 19:57:16 +02:00
Stevche Radevski
d2e1e9f8c7
fix: Apply strict schema for all body and query parameters ( #7624 )
2024-06-05 15:40:54 +00:00
Stevche Radevski
a39b542759
chore: Move fulfillment set tests to http folder ( #7618 )
2024-06-05 17:35:04 +02:00
Carlos R. L. Rodrigues
56f65f319d
fix(modules-sdk): dependencies ( #7622 )
2024-06-05 11:46:07 -03:00
Riqwan Thamir
0a5b2b5fa7
chore: fix inventory items specs ( #7620 )
2024-06-05 15:27:54 +02:00