Oli Juhl and GitHub
dc94f053d3
fix(medusa): Support fields param in list-variants ( #5053 )
...
* fix(medusa): Support fields param in list-variants
* Create cuddly-pigs-tease.md
* address pr comments
2023-09-15 09:08:04 +02:00
5d10c46bb1
feat(medusa): Separate money amount and variant ( #4906 )
...
* initial changes
* working test
* final changes to product tests
* update integration tests
* update price list integration tests
* update integration tests
* update unit tests
* update plugin integration tests
* remove catch from integration test
* undo change
* add andWhere
* update upsertCurrencyMoneyAmount method
* undo line item changes
* undo changes
* update deprecated method
* Update packages/medusa/src/migrations/1692953518123-drop_money_amount_constraints_for_pricing_module.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* rename joinTable
* update with joinTable entity
* update load methods
* remove await create
* re-add context test
* update price list behavior for prices
* update price list snapshots
* re-add admin seeder
* pr feedback
* fix unit tests
* fix plugin integration tests
* initial review changes
* redo changes to variant creation
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-13 13:26:20 +02:00
Carlos R. L. Rodrigues and GitHub
4b0e3fb2a7
feat(medusa,orchestration): Decouple Product in Cart domain ( #4945 )
2023-09-08 17:24:46 +02:00
mortenengel and GitHub
11fb523051
feat(medusa, admin-ui): Improve gift card application ( #4944 )
...
Fix for the problems identified in issue #4892
Bugfix: admin-ui order summary no longer uses gift card total from order when displaying how much has been withdrawn from each giftcard.
Bugfix(?): no longer keep applying gift cards (at 0 value) when sufficient balance has been reached
Feature: multiple giftcards are now applied in ordered fashion. First by end_date (supports null), then by remaining balance. In order to ensure that customers ends up with as long lasting and few remaining gift cards as possible after the transaction.
2023-09-07 16:56:36 +00:00
bb5ea9d5ca
fix(medusa): Double tax issue on return refund amount ( #4899 )
...
Closes #4686
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-05 08:14:45 +00:00
Riqwan Thamir and GitHub
a1110b3438
fix(medusa): category_id and q params for list products endpoint ld work ( #4889 )
...
Looks like during an earlier refactor, some of the categories logic wasn't ported over to the handler that works with q params.
what:
- adds a fix that allows queries to be made on category_id when q param is passed.
Fixes https://github.com/medusajs/medusa/issues/4885
2023-08-28 11:46:55 +00:00
Sebastian Rindom and GitHub
9d8f87b03b
fix(medusa): ignore region_id update w/o value change ( #4751 )
2023-08-13 09:26:32 +02:00
Oli Juhl and GitHub
a2d7540e40
fix(medusa): Remove shipping on updates to cart.items ( #4715 )
...
* rm shipping on line item updates
* Add tests
* remove verbose flag
* Create real-items-rhyme.md
2023-08-08 14:53:47 +02:00
Adrien de Peretti and GitHub
9129ca08a7
fix(medusa): Allowed properties expand ( #4600 )
...
What:
The expand allowed properties should allow all the segments whereas the allowed fields should be specific
2023-07-25 14:37:44 +00:00
Carlos R. L. Rodrigues and GitHub
f12299deb1
Feat: @medusajs/workflows ( #4553 )
...
feat: medusa workflows
2023-07-25 10:13:14 -03:00
Adrien de Peretti and GitHub
d2a8cf0378
feat(medusa): Continue create product workflow changes ( #4473 )
2023-07-24 13:30:24 +02:00
Philip Korsholm and GitHub
c9989529ed
fix(medusa): Price selection strategy bug with customer groups without customers ( #4578 )
...
* change up condition for joining price lists
* add changeset
* naming
* update tests
2023-07-24 11:10:17 +02:00
Adrien de Peretti and GitHub
4d326fbbdf
chore: Move factories and helpers to a better place ( #4551 )
...
* chore: Move factories and helpers to a better place
* align factory product variant
* fix factory cart
* add simple store fac
* fix tests
* fix tests
* fix
* fix cart seeder
2023-07-20 13:16:04 +02:00
Erik Engervall and GitHub
2f283996f8
feat(medusa): Add metadata to StorePostCartsCartLineItemsItemReq ( #4230 )
2023-07-19 17:51:49 +02:00
5b91a3503a
feat(medusa): Add proper pagination ( #4517 )
...
* update method for listing regions
* add changeset
* fix unit tests
* listAndCount swaps
* add count calculation to list-returns
* swap integration test
* notes pagination
* pagination props for notifications
* listAndCount store regions
* fix nit
* fix note unit test
* update list-regions store unit test
* cleanup integration test
* rename introduced tests
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-07-14 16:14:51 +02:00
56d1d326d4
Fix(medusa): Return correct region count ( #4514 )
...
* update method for listing regions
* add changeset
* fix unit tests
* fix nit
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-07-13 08:59:26 +02:00
Adrien de Peretti and GitHub
9dcdc0041a
fix(medusa, utils): fix the way selects are consumed alongside the relations ( #4389 )
...
**What**
There is actually an issue with using the `fields` query params with the way the repositories are using our custom query strategy. This pr aims to fix this issue by reworking the strategy.
What we had to do was to rework the way the selects are built for each subquery in order to follow the aliasing convention and to be taken into consideration. Alongside these changes, the join used to always select everything, this needed to be changed so that if there are any selects provided for a join, the join should not select everything and let the query select the fields that are requested.
Another notable change is that all the repositories are now using the repository util in order to centralize the customization and to have a single place to update when this kind of issue arises. This means that the eager relations when using the query builder are not necessarily taken into account. For that reason, I have removed the `shipping_option` eager option in favor of explicitly asking for the relations like we started to do it in some places.
FIXES CORE-1413
2023-06-29 13:26:41 +00:00
Adrien de Peretti and GitHub
02b1bd07cd
fix(medusa): Query parser issues with large array ( #4213 )
...
* fix(medusa): Query parser issues with large array
* Create little-weeks-exercise.md
* add integration tests
2023-06-14 13:36:04 +02:00
Oliver Windall Juhl and GitHub
6998666c6e
fix(medusa): Upserting tax rates ( #4189 )
...
* fix(medusa): Upserting tax rates
* Create orange-bikes-sparkle.md
* add more tests
* add explicit null type
2023-05-29 13:31:39 +02:00
Adrien de Peretti and GitHub
bf18bd0c8a
feat(medusa): Revert pricing service setVariantPrices API ( #4130 )
2023-05-22 12:23:54 +02:00
Adrien de Peretti and GitHub
ed382f2ee5
feat(medusa): Improve prices flow ( #3703 )
2023-05-18 08:55:28 +02:00
9518efccae
fix(medusa): Product repo typeorm issues ( #4084 )
...
* fix(medusa): Product repo typeorm issues
* chore: fixed category scopes
* WIP fix categories
* fix product repo to attach categories
* fix uni tests
* Create eighty-icons-exercise.md
* revert package.json
* fix change set
* last fixes
* cleanup iteration
* fix repository deep relations joining aliasing
* improve response time
* improve category test case
* fix free texts search
* fix repo
* centralise repository manipulation into utils and use the utils in the product repo
* fix product repo
* fix customer group
* update changeset
* fix customer group
* include feedback
* fix repo
* remove query strategy
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-05-16 09:36:52 +02:00
Frane Polić and GitHub
a8e73942e6
feat(medusa): handle product categories in import/export strategies ( #3842 )
...
**What**
- add ProductCategories to import and export strategies
- refactor ProductCategoriesService methods to use "retrieve_" pattern
---
RESOLVES CORE-1275
2023-05-08 08:58:11 +00:00
Frane Polić and GitHub
0c58ead6d8
fix(medusa): Validate customer_id when completing a cart ( #3967 )
2023-05-07 13:12:06 +02:00
Philip Korsholm and GitHub
d2443d83e6
initial create-swap with sales channel ( #3998 )
2023-05-03 17:03:33 +02:00
Rares Stefan and GitHub
3a77e8a88f
feat(medusa): Middleware to add default SC on query if no SC already exist on it ( #3694 )
2023-04-26 17:23:29 +02:00
Riqwan Thamir and GitHub
935abeae68
fix(medusa): category list api bug where limit skews results ( #3914 )
...
* chore: fix category list api bug where limit skews results
* chore: add limits to integration test
2023-04-24 19:16:58 +02:00
Philip Korsholm and GitHub
4a85627435
feat(medusa, medusa-plugin-brightpearl): Inventory management for Brightpearl ( #3192 )
2023-04-23 12:50:19 +02:00
Pevey and GitHub
d2826872fe
chore: Bump package versions to address security vulnerabilities ( #3845 )
2023-04-16 10:37:43 +02:00
Riqwan Thamir and GitHub
95d338262b
feat(medusa): allow category list api to be filtered by handle ( #3825 )
...
what:
- Introduce a filter to the list endpoint to query by handle
why:
- Storefronts mostly interact through handles and not IDs for readability and seo purposes - Take an example of a url `site.com/category/mens-wear`
RESOLVES CORE-1325
2023-04-13 17:57:30 +00:00
78ff64e783
fix(medusa): validate customer for group discount ( #3797 )
...
* fix: validate customer for group discount
* fix: remove logger
* fix: add generated desc
* fix: add an integration test case
* refactor: update error message
* fix: typo
* refactor: move condition
---------
Co-authored-by: fPolic <frane@medusajs.com >
2023-04-11 14:16:18 +02:00
Oliver Windall Juhl and GitHub
7f6dc44beb
fix(medusa): Add totals when retrieving order by cart id ( #3777 )
...
* fix(medusa): Add totals when retrieving order by cart id
* fix: Unit test
* Create .changeset/stupid-rockets-smile.md
2023-04-11 11:40:13 +02:00
Adrien de Peretti and GitHub
1a60c6f58d
fix(medusa): Throw on line item generation if variant does not have a price ( #3766 )
2023-04-08 18:32:59 +02:00
Riqwan Thamir and GitHub
d533caa4c2
feat(medusa, admin-ui): add description field to product categories ( #3768 )
...
* feat(medusa): add description field to product categories
* chore: set nullable to false
* chore: added UI for description
* chore: added codegen files
2023-04-08 18:29:12 +02:00
Oliver Windall Juhl and GitHub
809ab2e0eb
chore: Merge master to develop ( #3653 )
2023-03-31 13:09:57 +02:00
Philip Korsholm and GitHub
5fd74b38ae
feat(medusa): remove created reservations on subsequent failure for cart completion ( #3554 )
...
**What**
- If cart completion fails after creating reservations, remove those reservations
**Why**
- To avoid hanging reservations if something fails at a later point
2023-03-29 17:03:53 +00:00
Adrien de Peretti and GitHub
7f120e576b
chore: Merge master to develop and manage conflict ( #3570 )
2023-03-29 10:11:32 +02:00
1ce3cc5ae4
feat(medusa): invalidate price selection caching within update request ( #3553 )
...
* feat: invalidate price selection caching on update
* feat: add `onVariantsPricesUpdate` to PriceSelectionStrategy
* fix: update units
* fix: import
* Create .changeset/tame-pillows-heal.md
* fix: address feedback
* refactor: make `onVariantsPricesUpdate` optional
---------
Co-authored-by: fPolic <frane@medusajs.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-28 11:18:13 +02:00
Oliver Windall Juhl and GitHub
ef5ef9f5a2
feat(medusa,event-bus-local,event-bus-redis): Event Bus modules ( #2599 )
2023-03-22 10:26:21 +01:00
aed7805c0e
fix(medusa): Error messages for reset tokens ( #3514 )
...
* initial
* reset password token handling
* Create .changeset/old-planes-cross.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-19 10:52:10 +01:00
Riqwan Thamir and GitHub
061a600f80
fix(medusa): fix rank order changing on category update ( #3486 )
...
what:
- fixes issue where ranking changes when only properties other than rank are updated on categories
FIXES CORE-1253
2023-03-16 08:53:49 +00:00
Patrick and GitHub
522e306e2e
feat(oas): declare x-expanded-relations - Store ( #3482 )
...
* feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* chore(changeset): patch
* fix(tests): update store auth integration test
* fix: pr feedback
* fix(test): match response code
2023-03-16 09:08:20 +01:00
Riqwan Thamir and GitHub
2f42ed35d6
feat(medusa, admin-ui): increase tree depth + scope categories on store + allow categories relation in products API ( #3450 )
...
What:
- increase tree depth in react nestable
- scope categories on store queries
- allow categories relation in products API
RESOLVES CORE-1238
RESOLVES CORE-1237
RESOLVES CORE-1236
2023-03-13 17:30:21 +00:00
Adrien de Peretti and GitHub
53eda215e0
fix(medusa): Issue when ordering with multiple columns ( #3385 )
...
**What**
No true fix due to the same issue as [here](https://github.com/typeorm/typeorm/issues/6294 ) but at least the pagination works again. The ordering can't be applied on multiple columns/relation as it produce the wrong SQL.
FIXES CORE-1193
2023-03-08 12:37:18 +00:00
Riqwan Thamir and GitHub
1d09a266be
feat(medusa): category list API can return all descendant ( #3392 )
...
* chore: category list API can return all descendant
* chore: category handle is no longer required via api
* chore: added treescope to sorting
* chore: address feedback on PR
2023-03-07 15:54:49 +01:00
Adrien de Peretti and GitHub
33c6ccf059
fix(medeusa): Transform query includes options should only be added to allowed props if there is already at least one allowed props ( #3362 )
...
**What**
when `fields` only contain includes options, it should return the entire object plus the include options. If the fields contains the included options + other fields, it should only return the requested fields + the included options
2023-03-07 11:52:14 +00:00
0a6aa0e624
feat(medusa): categories can be ranked based on position ( #3341 )
...
* chore: categories can be ranked based on position
* chore: fix tests
* chore: sort categories by order
* chore: fix bug where mpath relationship is messed up
* chore: enable linting - lint changes
* Update packages/medusa/src/repositories/product-category.ts
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com >
* chore: fixed specs
* chore: cleanup repository to new typeorm interfaces + cleanup
* chore: revert repository changes due to incorrect sql
* chore: addressed pr reviews
---------
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com >
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2023-03-06 15:49:16 +01:00
olivermrbl
ad99a8bd24
chore: Fix merge conflicts with master
2023-03-03 12:01:35 +01:00
Riqwan Thamir and GitHub
c432481319
fix(medusa): Creating Product with Sales Channels disabled ( #3357 )
2023-03-02 11:59:10 +01:00
cbbf3ca054
fix(medusa): Clean response data usage for admin and store fields/expand ( #3323 )
...
* fix(medusa): Clean response data usage for admin and store fields/expand
* cleanup
* Create mighty-ads-fold.md
* fix integration
* fix integration
* refactor transform query and cleanup
* fix missing re naming
* Update packages/medusa/src/api/middlewares/transform-query.ts
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-02-28 09:48:08 +01:00