Commit Graph

6030 Commits

Author SHA1 Message Date
Pedro Guzman 142a1f0a5b fix(product): returned updates order in upsertWithReplace (#12486)
* add failing test for upsertWithReplace order

* reproduce prices update shuffling issue

* fix: fix order of returned updates in updateMany

* fix: fix order of returned updates in ProductService

* fix: reset test count to 1

* Create tame-insects-marry.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-05-15 09:22:24 +02:00
Carlos R. L. Rodrigues c661e06488 fix(index): query builder handle json array (#12480)
* fix(index): query builder handle json array

* fix sales channel event names
2025-05-14 18:43:01 +02:00
Adrien de Peretti 7fdbf2a965 fix(workflows-sdk): Miss match context usage within run as step (#12449)
**What**

Currently, runAsStep keep reference of the workflow context that is being run as step, except that the step is composed for the current workflow composition and not the workflow being run as a step. Therefore, the context are currently miss matched leading to wrong configuration being used in case of async workflows.

**BUG**
This fix allow the runAsStep to use the current composition context to configure the step for the sub workflow to be run

**BUG BREAKING**
fix the step config wrongly used to wrap async step handlers. Now steps configured async through .config that returns a new step response will indeed marked itself as success without the need for background execution or calling setStepSuccess (as it was expected originally)

**FEATURE**
This pr also add support for cancelling running transaction, the transaction will be marked as being cancelled, once the current step finished, it will cancel the transaction to start compensating all previous steps including itself

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2025-05-14 13:28:16 +00:00
Adrien de Peretti ab22faaa52 Chore/test runner improvements (#12439)
**What**
Make sure there is no open handles left and that the shutdown function are properly called. Refactor and improve the medusa test runner. Make sure all modules instances are released and cleaned up

**NOTE:**
On a separate PR we can continue the investigation for the memory growing over time while the tests execute
2025-05-14 13:17:41 +00:00
Shahed Nasser 851c81fd4b chore(types,utils): add featureFlag and version tags (#12464) 2025-05-13 19:12:19 +03:00
Harminder Virk 4602163b56 feat: create CSV normalizer to normalize a CSV file (#12396) 2025-05-13 18:04:59 +05:30
olivermrbl d3a5868e8b chore: Version packages 2025-05-13 12:56:07 +02:00
Frane Polić 39e5eadefc fix(core-flows, dashboard): reservation recreation on fulfilment cancel + allocation button display (#12447)
**What**
- fix recreation of reservations on fulfilment cancel
- fix allocate items button display

---

CLOSES CMRC-1018
2025-05-12 17:09:23 +00:00
Frane Polić 32e0194772 fix(dashboard, medusa): validate provider for top level tax regions (#12450)
* fix(dashboard, medusa): validate provider for top level tax regions

* chore: changesets, message

* chore: add test case for province

* fix: remove comment
2025-05-12 18:04:48 +02:00
Oli Juhl 92af52d133 fix(tax): Make system provider registration backward compatible (#12441)
* fix(tax): Make provider registration backward compatible

* add tests
2025-05-12 17:06:43 +02:00
Frane Polić 5fe0e8250d fix(core-flows): Refund and recreate payment session on cart complete failure (#12263) 2025-05-11 19:53:49 +02:00
Frane Polić 3fb4d5beb0 fix(dashboard): call route modal onClose only on route change (#12383) 2025-05-11 19:52:12 +02:00
Casey Harper 9d4bc81d0f fix(plugins, utils): Plugin admin folder loading with backslash on Windows (#12418)
* fix: Plugin admin folder loading with backslash on Windows

* fix: Plugin admin folder loading with backslash on Windows - Add changeset

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-05-11 18:46:12 +02:00
Riqwan Thamir cc5af67c48 fix(core-flows): use transform as input to account holder step (#12430)
* fix(core-flows): use transform as input to account holder step

* chore: add a simple test

* chore: add comment

* chore: Fix tests

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2025-05-11 18:45:44 +02:00
Frane Polić 6aa1ebdee2 fix(dashboard): inventory kit combobox state (#12371)
* fix(dashboard): inventory kit combobox state

* chore: changeset
2025-05-11 18:45:08 +02:00
Adrien de Peretti fff285f8d2 feat(core-flows): Emit cart trasnferred customer (#12425)
**What**
When a cart is transferred emit an event notifying of the action with the cart id and the customer id
2025-05-11 15:17:19 +00:00
Frane Polić 47700899ed fix(core-flows): use product title for line item title (#12397)
* fix(core-flows): use prduct title for line item title

* fix: module tests

* fix: http tests

* fix: display item subtitle instead of prod title as secondary text in line item

* fix: claim/exchange items
2025-05-11 17:05:46 +02:00
Adrien de Peretti 9d29078b0d fix(workflow-engine-*): q text search (#12435) 2025-05-11 16:21:41 +02:00
Frane Polić e4d196e522 fix(dashboard): tax regions UI polish (#12437) 2025-05-11 16:06:11 +02:00
Shahed Nasser b25f02f0b6 chore(medusa): add version tag for new routes (#12436) 2025-05-09 18:11:39 +03:00
Shahed Nasser 0f802a977a chore(js-sdk, types): update TSDocs related to tax provider changes (#12428) 2025-05-09 14:34:45 +03:00
Shahed Nasser 6032f3ec40 chore(js-sdk,types,utils): updates to file TSDocs (#12426)
* chore(js-sdk,types,utils): updates to file TSDocs

* remove ignore tag for file provider

* update file service tsdocs
2025-05-09 14:34:31 +03:00
Adrien de Peretti 091041f2da test(core-flows): Ensure productVariantUpdated failure compensate the workflow (#12381) 2025-05-09 13:03:22 +02:00
Shahed Nasser 7eddcb54b8 chore(utils): add version tag to order edit events (#12424) 2025-05-09 13:11:46 +03:00
Shahed Nasser 89beaf38e1 chore(utils): small fix to payload in TSDocs (#12409) 2025-05-09 12:51:27 +03:00
Oli Juhl 469ecef3c5 chore: Minor restructure of cart completion (#12353)
* chore: Minor revamp of cart completion

* wip

* wip

* temp. remove import

* continue on error

* chore: Use workflow

* fix import

* Create beige-actors-tie.md

* fix import
2025-05-08 13:37:21 +02:00
Pedro Guzman 7ef13495d6 Merge pull request #12367 from medusajs/fix/refactor-update-products
fix: refactor batch product update
2025-05-08 12:28:02 +02:00
Pedro Guzman 1ff5c4bf86 fix: move product update logic to repository 2025-05-08 12:03:29 +02:00
Stevche Radevski f929185021 fix: Use logger in the test runner and migration commands (#12406) 2025-05-08 11:25:47 +02:00
Shahed Nasser 0dd4572964 chore(utils): fixes to events TSDocs (#12395)
* chore(utils): fixes to events TSDocs

* more fixes
2025-05-07 14:25:11 +03:00
Frane Polić 2dd885ebc1 fix(medusa): check if tax module is installed when running tax migration script (#12393) 2025-05-07 13:01:20 +02:00
Frane Polić 0d8af119c5 feat(product): search variants by product properties (#12391) 2025-05-07 10:29:14 +00:00
Shahed Nasser c4dd805849 fix(core-flows): export order-related utility workflows (#12380) 2025-05-07 12:02:08 +03:00
Pedro Guzman d9c8608e51 fix: use service methods instead of entity manager for product updates 2025-05-07 10:34:55 +02:00
Pepijn cdb135e491 fix(dashboard): Added missing admin dashboard dependencies (#12346) 2025-05-06 19:30:04 +02:00
Frane Polić 9cedeb182d feat(dashboard, js-sdk, medusa, tax, types): custom tax providers (#12297)
* wip: setup loaders, add endpoints, module work, types, js sdk

* fix: tax module provider loader

* feat: select provider on region create, fix enpoint middleware registration

* feat: edit form

* fix: rename param

* chore: changeset

* fix: don't default to system provider

* fix: admin fixes, dispalt tax provider

* fix: some tests and types

* fix: remove provider from province regions in test

* fix: more tests, optional provider for sublevel regions, fix few types

* fix: OE test

* feat: edit tax region admin, update tax region core flow changes

* feat: migrate script

* fix: refactor

* chore: use query graph

* feat: provider section
2025-05-06 19:26:33 +02:00
Adrien de Peretti 80007f3afd feat(workflows-*): Allow to re run non idempotent but stored workflow with the same transaction id if considered done (#12362) 2025-05-06 17:17:49 +02:00
Edin Abazi a16ffb83d9 fix: rename Macedonia FYROM to North Macedonia (#12375) 2025-05-06 15:44:17 +02:00
Oli Juhl aba4cba373 fix(medusa): Support additional data on admin/collections (#12345)
* fix(medusa): Support additional data on admin/collections

* Create five-experts-wink.md

* add to validators
2025-05-06 14:00:18 +02:00
Pedro Guzman 0c7657926a fix: refactor batch product update 2025-05-06 13:53:27 +02:00
Shahed Nasser f74586e772 fix(create-medusa-app): updates to text and prompts (#12360) 2025-05-06 14:23:54 +03:00
Shahed Nasser ffd323a2a9 chore(types): add note in TSDocs of list and retrieve methods (#12364) 2025-05-06 09:52:06 +03:00
Oli Juhl 77c3023200 fix(product): Return updated collections (#12354)
Collection updates without a `products` payload were not returned from the service layer due to an incorrect early return

Fixes SUP-1488
2025-05-05 14:41:45 +00:00
Harminder Virk e4d853185f fix: export ProductImage to allow for custom links to add alt text (#12357) 2025-05-05 14:24:25 +05:30
Harminder Virk 84f58f9058 feat: implement direct upload (#12328)
* feat: implement direct upload

* feat: add direct-upload endpoint

* refactor: implement feedback

* refactor: have a dedicated endpoint for direct uploads

* refactor: convert responses to snakecase

* refactor: rename method to createImport

* test: add tests for the presigned-urls endpoint
2025-05-04 12:58:10 +02:00
Pedro Guzman ed55d17a36 fix: batch updates in upsertMany_ (#12333) 2025-05-02 08:36:33 +02:00
Shahed Nasser 332e46d1db chore(utils): fixes to events TSDocs (#12342) 2025-05-01 19:23:50 +03:00
Shahed Nasser e3e02a1cc8 chore: add tsdocs for events (#12337) 2025-05-01 12:15:33 +03:00
Shahed Nasser a53d645f8a fix(core-flows,utils): move fulfillment workflow events (#12338)
Move fulfillment workflow events to be with other workflow events.

Could be considered a breaking change for users using the previously `FulfillmentEvents` variable
2025-05-01 09:11:17 +00:00
Frane Polić 8985998756 feat(core-flows, utils): add OrderEdit events (#12320)
* feat(core-flows, utils): add OrderEdit events

* fix: typo
2025-04-30 17:44:39 +02:00