Adrien de Peretti
80fe362f33
fix(integration): setup ( #5511 )
...
* fix(integration): setup
2023-11-01 13:56:12 -04:00
Adrien de Peretti
d6372246ee
fix(integration): Product ordered by variants prices ( #5507 )
...
* fix(integration): Product ordered by variants prices
* set cache to 0 to prevent issues between tests
2023-10-31 16:20:55 +01:00
Philip Korsholm
e346be3eca
fix(integration-tests): Restore integration redis-url ( #5502 )
2023-10-31 09:04:03 +01:00
Adrien de Peretti
a780b92b8d
fix(medusa): Add admin get product tests ( #5480 )
2023-10-31 08:54:06 +01:00
Philip Korsholm
148f537b47
feat(medusa): integrate pricing module to core ( #5304 )
...
* add pricing integraiton feature flag
* init
* first endpoint
* cleanup
* remove console.logs
* refactor to util and implement across endpoints
* add changeset
* rename variables
* remove mistype
* feat(medusa): move price module integration to pricing service (#5322 )
* initial changes
* chore: make product service always internal for pricing module
* add notes
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* nit
* cleanup
* update to object querying
* update cart integration test
* remove uppercase currency_code
* nit
* Feat/admin product pricing module reads (#5354 )
* initial changes to list prices for admin
* working price module implementation of list prices
* nit
* variant pricing
* redo integration test changes
* cleanup
* cleanup
* fix unit tests
* [wip] Core <> Pricing - price updates (#5364 )
* chore: update medusa-app
* wip
* get links and modules working with migration
* wip
* chore: make test pass
* Feat/rule type utils (#5371 )
* initial rule type utils
* update migration script
* chore: cleanup
* ensure prices are always decorated
* chore: use seed instead
* chore: fix oas conflict
* region id add to admin price read!
---------
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
* pr feedback
* create remoteQueryFunction type
* fix merge
* fix loaders issue
* Feat(medusa, types, pricing): pricing module migration script (#5409 )
* add migration script for money amounts in pricing module
* add changeset
* rename file
* cleanup imports
* update changeset
* add check for pricing module and ff
* feat(medusa,workflows,types): update prices on product and variant update (#5412 )
* wip
* chore: update product prices through workflow
* chore: cleanup
* chore: update product handler updates prices for variants
* chore: handle reverts
* chore: address pr comments
* chore: scope workflow handlers to flag handlers
* chore: update return
* chore: update db url
* chore: remove migration
* chore: increase jest timeout
* Feat(medusa): update migration and initDb to run link-migrations (#5437 )
* initial
* loader update
* more progress on loaders
* update integration tests and remote-query loader
* remove helper
* migrate isolated modules
* fix test
* fix integration test
* update with pr feedback
* unregister medusa-app
* re-register medusaApp
* fix featureflag
* set timeout
* set timeout
* conditionally run link-module migrations
* pr feedback 1
* add driver options for db
* throw if link is not defined in migration script
* pass config module directly
* include container in migrate command
* chore: increase timeout
* rm redis from api integration tests to test
* chore: temporarily skip tests
* chore: undo skips + add timeout for workflow tests
* chore: increase timeout for order edits
* re-add redis
* include final resolution
* add sharedcontainer to medusaapp loader
* chore: move migration under run command
* try removing redis_url from api tests
* chore: cleanup server on process exit
* chore: clear container on exit
* chore: adjustments
* chore: remove consoles
* chore: close express app on finish
* chore: destroy pg connection on shutdown
* chore: skip
* chore: unskip test
* chore: cleanup container pg connection
* chore: skip
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-10-30 14:42:17 +01:00
pepijn-vanvlaanderen
0d7c5543dd
feat(medusa): Add item and shipping tax totals to order ( #5385 )
...
* Expose item tax total and shipping tax total in order totals
* Added changeset
* Fixes to tests
* Fixes to integration tests
* Fixes to integration tests
* Fixes to integration tests
* Change changeset to patch
2023-10-19 09:57:37 +02:00
Philip Korsholm
90e24c593f
Fix/pricing update fixes ( #5275 )
...
* fix for merging line items and quantity prices
* add changeset
* fix draft order unit_price calculation
* update test to reflect only quantity change
* fix unit tests
* update conditional
2023-10-03 11:20:49 +02:00
Philip Korsholm
2b91049f58
fix(medusa): quantity prices for line item updates ( #5137 )
...
* initial code push
* update metadata and only merge if the existing line item allows merging
* update should_merge check
* undo changes to taxrate service
* update results with unit pricing corresponding to the db values after update
* add should_merge property to line_item creation
* add should_merge property to line_item creation
* fix unit tests
* undo adding "should_merge" to create-line-item
* undo change to "addOrUpdateLineItem"
* :wqh_merge from generate method
* undo changes to unit tests
* revert to adding pricing in updateLineItem method
* update cart service test
* Create funny-radios-juggle.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-28 14:26:58 +02:00
Adrien de Peretti
240c439beb
fix(medusa): Product model before insert hook ( #5200 )
...
**What**
When the id is provided, the rest of the hook should still apply. At the moment, when the id is provided the hook is skipped
2023-09-26 09:48:26 +00:00
David Preininger
2caff2efc7
feat(medusa): Authentication overhaul ( #4064 )
...
* implemented bearer auth
* changed naming strat
* changed session auth to not use jwt
* typo
* changed auth header prefix for admin api token auth
* fixed supporting functions to work with new session type
* removed database calls for bearer auth improving performance
* removed unused deps
* changed auth in tests
* added integration tests
* Accepted suggested change
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* Typo
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* more typos
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* proper formatting
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* removed endregion
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* removed startregion
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* fixed admin JWT integration test
* added more fixes to integration tests
* Update OAS
* Create fluffy-donkeys-hope.md
* created API reference for new auth
* implemented getToken in medusa-js
* Apply suggestions from code review
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* Apply suggestions from code review
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* deleted files which should be autogenerated
* Update fluffy-donkeys-hope.md
* JSDoc update
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* added missing route exports
* implemented runtime domain safety in jwt token manager
* fixed jwt manager
* lint get-token files
* Update fluffy-donkeys-hope.md
* Revert "deleted files which should be autogenerated"
This reverts commit cd5e86623b822e6a6ac37322b952143ccc493df9.
* Revert "Apply suggestions from code review"
This reverts commit f02f07ce58fd9fcc2dfc80cadbb9df2665108d65.
* Revert "created API reference for new auth"
This reverts commit c9eafbb36453f5cf8047c79e94f470cb2d023c7d.
* renamed header for sending api access tokens
* medusa-js - changed apiKey header
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: olivermrbl <oliver@mrbltech.com >
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2023-09-25 13:57:44 -04:00
Oli Juhl
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
Philip Korsholm
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
4b0e3fb2a7
feat(medusa,orchestration): Decouple Product in Cart domain ( #4945 )
2023-09-08 17:24:46 +02:00
mortenengel
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
Josip Matić
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
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
9d8f87b03b
fix(medusa): ignore region_id update w/o value change ( #4751 )
2023-08-13 09:26:32 +02:00
Adrien de Peretti
ac866ebb51
test(): Test the create product workflow compensation ( #4716 )
...
**What**
Integration tests to validate the workflow compensation.
Also, fix the transaction state when the workflow is compensating and some steps does not have any compensation
2023-08-09 14:33:04 +00:00
Oli Juhl
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
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
f12299deb1
Feat: @medusajs/workflows ( #4553 )
...
feat: medusa workflows
2023-07-25 10:13:14 -03:00
Adrien de Peretti
d2a8cf0378
feat(medusa): Continue create product workflow changes ( #4473 )
2023-07-24 13:30:24 +02:00
Philip Korsholm
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
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
2f283996f8
feat(medusa): Add metadata to StorePostCartsCartLineItemsItemReq ( #4230 )
2023-07-19 17:51:49 +02:00
Philip Korsholm
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
Philip Korsholm
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
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
30d89044f1
fix(product): The bin scripts should include a shebang and import in the body ( #4296 )
2023-06-15 19:42:49 +02:00
Oliver Windall Juhl
afd1b67f1c
chore: Clean up deps, devDeps, and peerDeps across all packages ( #4276 )
...
* chore: Use caret for all Medusa deps
* Create wild-balloons-push.md
* Address PR feedback
* force build order
* add missing dep
* add missing dev deps
* addresses last comments
2023-06-14 15:18:11 +02:00
Adrien de Peretti
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
github-actions[bot]
8f8f6332b7
chore: Version Packages ( #4114 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 12:11:45 +02:00
Oliver Windall Juhl
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
bf18bd0c8a
feat(medusa): Revert pricing service setVariantPrices API ( #4130 )
2023-05-22 12:23:54 +02:00
Adrien de Peretti
ed382f2ee5
feat(medusa): Improve prices flow ( #3703 )
2023-05-18 08:55:28 +02:00
github-actions[bot]
0be70113f9
chore: Version Packages ( #4074 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 11:03:47 +02:00
Adrien de Peretti
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
Oliver Windall Juhl
6511959e23
chore: Revert to official Typeorm package ( #4072 )
2023-05-11 13:08:38 +02:00
github-actions[bot]
a8f43055db
chore: Version Packages ( #4020 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 15:49:04 +02:00
Frane Polić
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ć
0c58ead6d8
fix(medusa): Validate customer_id when completing a cart ( #3967 )
2023-05-07 13:12:06 +02:00
github-actions[bot]
6b2bcc1a36
chore: Version Packages ( #3942 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 10:51:13 +02:00
Philip Korsholm
d2443d83e6
initial create-swap with sales channel ( #3998 )
2023-05-03 17:03:33 +02:00
Oliver Windall Juhl
d539c6feeb
chore: Bump Typeorm to Medusa fork ( #3981 )
...
* chore: Bump typeorm to medusa fork
* Update types + utils
* Bump integration test suites
* Create good-parents-prove.md
2023-05-02 14:37:19 +02:00
github-actions[bot]
b41b6303cc
chore: Release ( #3856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-26 19:09:01 +02:00
Rares Stefan
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
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
4a85627435
feat(medusa, medusa-plugin-brightpearl): Inventory management for Brightpearl ( #3192 )
2023-04-23 12:50:19 +02:00
Pevey
d2826872fe
chore: Bump package versions to address security vulnerabilities ( #3845 )
2023-04-16 10:37:43 +02:00
github-actions[bot]
0f51e3a400
chore: Release ( #3818 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-04-14 11:18:39 +02:00