Adrien de Peretti
05a32683a3
feat(medusa): Get product with isolated product module ( #5010 )
2023-09-13 14:39:59 +02:00
Adrien de Peretti
4fa675ec25
chore(medusa, modules-sdk, types): Refactor modules loading from medusa ( #5018 )
2023-09-13 14:26:54 +02:00
Adrien de Peretti
7231f65833
feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled ( #5037 )
...
* feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled
* Create breezy-fans-accept.md
2023-09-13 10:36:55 +02:00
Adrien de Peretti
30863fee52
feat(medusa): List products with Remote Query ( #4969 )
...
**What**
- includes some type fixes in the DAL layer
- List products including their prices and filtered by the sales channel as well as q parameter and category scope and all other filters
- Assign shipping profile
- ordering
- Add missing columns in the product module
- update product module migrations
**Comment**
- In regards to the fields, we can pass whatever we want the module will only return the one that exists (default behavior), but on the other hand, that is not possible for the relations.
**question**
- To simplify usage, should we expose the fields/relations available from the module to simplify building a query for the user and be aware of what the module provides
**todo**
- Add back the support for the user to ask for fields/relations
2023-09-12 15:55:05 +00:00
Adrien de Peretti
107aaa371c
fix(orchestration): Infinite loop by reference update ( #5023 )
...
* fix(orchestration): Infinite loop by reference update
* fix
* handle conflict alias config
* rm field alias
* Create wet-gorillas-laugh.md
2023-09-12 13:24:35 +02:00
Adrien de Peretti
6273b4b160
feat(utils, module-sdk, medusa): Extract pg connection utils to utils package ( #4961 )
2023-09-11 12:10:40 +02:00
Adrien de Peretti
a87d07655b
fix(link-modules): Fix link module initialization ( #4990 )
...
**What**
Add a new configuration on the relationship to specify if the relation is consumed from an internal service (from medusa core). In that case do not check if the service is part of the loaded modules
2023-09-11 08:49:23 +00:00
Adrien de Peretti
86f4ca369f
fix(orchestration): Fix remote joiner filtering fields ( #4970 )
...
* fix(orchestration): Fix remote joiner filtering fields
* cleanup test
2023-09-07 09:10:16 +02:00
Adrien de Peretti
b71776738c
feat(medusa): Event bus db failure handling ( #4963 )
...
* feat(medusa): Event bus db failure handling
* naming
* Create olive-years-heal.md
2023-09-06 17:07:29 +02:00
Adrien de Peretti
a268d2cb0b
feat(workflows): Data aggregation ( #4732 )
...
* apply the aggregator automatically
* add comment
* apply aggregate
* improve pipe aggregation
* improve test cases
* improvements
* clean tests
* renameing to merge
* fix merge apply
* move merge apply
* cleanup cart workflow and end point
* fixes and naming
2023-08-10 14:01:56 +02:00
Adrien de Peretti
f8d3d5f91a
chore(product): remove decorator where it is not necessary and cleanup ( #4731 )
...
* chore(product): remove decorator where it is not necessary and cleanup
* Create twenty-gorillas-exist.md
2023-08-10 09:57: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
Adrien de Peretti
3f3a84262c
feat(types, product, utils, medusa): Include shared connection for modules ( #4626 )
2023-08-08 15:10:34 +00:00
Adrien de Peretti
8ae31aff4b
feat(workflows):product handlers should be reusable in different context ( #4703 )
...
**What**
The listProducts handler should not be specific to the workflow.
Same for the product removal, shouldn't expect an entire DTO but just a collection of object that at least contains the id.
Same principle applied to other product handlers
2023-08-07 16:22:22 +00:00
Adrien de Peretti
dc46927bc6
feat(medusa, types, utils, workflow): Migrate medusa workflow to the workflow package ( #4682 )
2023-08-05 16:03:45 +02:00
Adrien de Peretti
43f34866c8
feat(workflows): Improve typings ( #4689 )
...
Just improve some typings for simpler usage
2023-08-04 08:11:44 +00:00
Adrien de Peretti and Riqwan Thamir
ce3326c5fb
feat(prduct, utils, types): Create soft delete pattern for link module ( #4649 )
...
* feat(prouct, utils, types): Create soft delete pattern for link module
* add comment
* add comment
* finalise
* remove linkable keys
* cleanup and tests
* cleanup
* add some comments and renaming
* re work
* fix tests
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-08-02 19:29:01 +02:00
Adrien de Peretti
8b67c676fa
feat(workflow): Add pipe tests ( #4675 )
...
* feat(workflow): Add pipe tests
* improve tests
2023-08-02 16:46:30 +02:00
Adrien de Peretti
e78c47b66f
fix(workflows): Workflow types ( #4673 )
...
* fix(workflow): types and handlers
* add middleware pipe example
* Create nine-gorillas-collect.md
2023-08-02 13:50:06 +02:00
Adrien de Peretti
4b80ba8a35
fix(product, integration-tests): Fix integration tests ( #4674 )
...
* fix(product, integration-tests): Fix integration tests
* improve test
* Create dirty-eagles-shop.md
2023-08-02 13:44:53 +02:00
Adrien de Peretti and Shahed Nasser
4073b73130
feat(product): Move mikro orm utils to the utils package ( #4631 )
...
Move utils to the utils package as much as possible
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2023-07-31 11:30:43 +00:00
Adrien de Peretti
58d4c230e2
chore: include rimraf as part of the build for most of the packages ( #4615 )
...
* chore: include rimraf as part of the build for most of the packages
* cleanup
* revert medusa interface
* missing script update
2023-07-31 09:23:27 +02:00
Adrien de Peretti
379c83933e
fix(module-sdk): Shared modules loading ( #4611 )
...
* WIP
* tests wording
* Create nasty-files-type.md
* cleanup
2023-07-27 12:53:31 +02:00
Adrien de Peretti
585ebf2454
fix(product): Serialize typings ( #4602 )
...
What:
Fix the serializer
2023-07-26 08:08:36 +00: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
Adrien de Peretti
ae33f4825f
fix(medusa): Removing the line items should remove the tax lines as well ( #4595 )
...
Fixes https://github.com/medusajs/medusa/issues/4531
2023-07-25 08:41:01 +00:00
Adrien de Peretti
d2a8cf0378
feat(medusa): Continue create product workflow changes ( #4473 )
2023-07-24 13:30:24 +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
befc2f1c80
feat(product): Create (+ workflow), delete, restore ( #4459 )
...
* Feat: create product with product module
* feat: create product wip
* feat: create product wip
* feat: update product relation and generate image migration
* lint
* conitnue implementation
* continue implementation and add integration tests for produceService.create
* Add integration tests for product creation at the module level for the complete flow
* only use persist since write operations are always wrapped in a transaction which will be committed and flushed
* simplify the transaction wrapper to make future changes easier
* feat: move some utils to the utils package to simplify its usage
* tests: fix unit tests
* feat: create variants along side the product
* Add more integration tests an update migrations
* chore: Update actions workflow to include packages integration tests
* small types and utils cleanup
* chore: Add support for database debug option
* chore: Add missing types in package.json from types and util, validate that all the models are sync with medusa
* expose retrieve method
* fix types issues
* fix unit tests and move integration tests workflow with the plugins integration tests
* chore: remove migration function export from the definition to prevent them to be ran by the medusa cli just in case
* fix package.json script
* chore: workflows
* feat: start creating the create product workflow
* feat: add empty step for prices and sales channel
* tests: update scripts and action envs
* fix imports
* feat: Add proper soft deleted support + add product deletion service public api
* chore: update migrations
* chore: update migrations
* chore: update todo
* feat: Add product deletion to the create-product workflow as compensation
* chore: cleanup product utils
* feat: Add support for cascade soft-remove
* feat: refactor repository to take into account withDeleted
* fix integration tests
* Add support for force delete -> delete, cleanup repositories and improvements
* Add support for restoring a product and add integration tests
* cleaup + tests
* types
* fix integration tests
* remove unnecessary comments
* move specific mikro orm usage to the DAL
* Cleanup workflow functions
* Make deleted_at optional at the property level and add url index for the images
* address feedback + cleanup
* fix export
* merge migrations into one
* feat(product, types): added missing product variant methods (#4475 )
* chore: added missing product variant methods
* chore: address PR feedback
* chore: catch undefined case for retrieve + specs for variant service
* chore: align TEntity + add changeset
* chore: revert changeset, TEntity to ProductVariant
* chore: write tests for pagination, unskip the test
* Create chilled-mice-deliver.md
* update integration fixtuers
* update pipeline node version
* rename github action
* fix pipeline
* feat(medusa, types): added missing category tests and service methods (#4499 )
* chore: added missing category tests and service methods
* chore: added type changes to module service
* chore: address pr feedback
* update repositories manager usage and serialisation from the write public API
* move serializisation to the DAL
* rename template args
* chore: added collection methods for module and collection service (#4505 )
* chore: added collection methods for module and collection service
* Create fresh-islands-teach.md
* chore: move retrieve entity to utils package
* chore: make products optional in DTO type
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* feat(product): Apply transaction decorators to the services (#4512 )
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
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 >
2023-07-16 20:19:23 +02:00
Adrien de Peretti
d363da2b72
chore(create-medusa-app): Cleanup the main script for readability and maintanability ( #4369 )
...
* chore(create-medusa-app): Cleanup the main script for readability and maintanability
* update types
* cleanup
* Create polite-queens-kiss.md
2023-07-10 16:27:16 +02:00
Adrien de Peretti and Oliver Windall Juhl
4264302f21
feat(medusa, stripe, paypal): Add update payment session support to the abstract payment processor API ( #4442 )
...
* feat(medusa, stripe, paypal): Add update payment session support to the abstract payment processor API
* continue to add updatePaymentData
* feat: Add update payment data to paypal as well and add stripe tests
* fix stripe updatePaymentData returned object type
* fix tests
* Create three-ravens-raise.md
* fix paypal updatePayment data impl
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-07-10 15:59:19 +02:00
Adrien de Peretti
a6c0825722
chore: Update node version in the pipeline to 16 ( #4485 )
...
* chore: Update node version in the pipeline to 16
* upgrade to node 16 (setup-server)
2023-07-10 12:17:30 +02:00
Adrien de Peretti
bdd9c5a7e9
fix(medusa): model loader with customizations ( #4443 )
...
* fix(medusa): model loader with customizations
* fix plugin models loader
* Create late-insects-punch.md
* Address pr feedback
* remove unnecessary bits
* remove unnecessary bits
* fix
* remove unnecessary changes
* rm duplicate param jsdoc
2023-07-04 11:34:19 +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
6f1fa244fa
chore(medusa-cli): Cleanup plugin setup ( #4420 )
...
* chore(medusa-cli): Cleanup plugin setup
* fix: logger types
* fix event bus local
* fix event bus redis
* Create late-dragons-collect.md
* move to ts
* remove unused command
* env
* fix
2023-06-28 16:37:25 +02:00
Adrien de Peretti
5a4580b6a8
chore(medusa-dev-cli): Cleanup plugin setup ( #4421 )
...
FIXES CORE-1420
does not include ts migration
2023-06-28 11:32:05 +00:00
Adrien de Peretti
627bdb689f
chore(gatsby-source-medusa): Cleanup plugin setup ( #4419 )
...
* chore(gatsby-source-medusa): Cleanup plugin setup
* fix process-node
* Create gentle-cups-crash.md
2023-06-27 14:00:11 +02:00
Adrien de Peretti
01245ac89e
feat(medusa): Improve DX of validators extensions ( #4397 )
...
* feat(medusa): Allow to register extended validators seemlesly
* Create happy-points-yawn.md
* comment
2023-06-26 11:05:23 +02:00
Adrien de Peretti
7bf7d2adef
chore(medusa): Concurrently get entities and count ( #4367 )
...
* chore(medusa): Concurrently get the items and count instead of sequentially
* Create tidy-sloths-sit.md
2023-06-21 11:28:28 +02:00
Adrien de Peretti
13294fff3f
fix(medusa): medusa develop does not take execArgv into account properly ( #4338 )
2023-06-17 15:43:05 +02: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
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
Adrien de Peretti and Oliver Windall Juhl
8e708aaddf
fix(medusa): Remove items.refundable from the order default store fields ( #4294 )
...
* fix(medusa): Remove items.refundable from the order default store fields
* Create khaki-socks-thank.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-06-13 19:20:20 +02:00
Adrien de Peretti
2c0074031b
fix(medusa): getAvailableContext should first check if the inventory service is present ( #4293 )
...
* fix(medusa): getAvailableContext should first check if the inventory service is present
* Create clever-seals-share.md
2023-06-13 18:14:43 +02:00
14c0f62f84
feat: Product Module ( #4161 )
...
* chore: boilerplate setup
* wip: add Product, ProductTag, ProductType, ProductCollection models
* wip: `IProductService` definition
* wip: test function in index, build passing
* fix: where condition
* chore: get boilerplate working with modules sdk, create a boilerplate test, create product variant model, register services properly
* chore: added variant to model
* chore: changed definition details + add migrator
* cleanup and update product entity
* Update product unique index to include soft deleted
* Migrations tests
* generated migration
* update dev orm config
* add path aliases
* WIP
* chore: added boilerplate integration test + database helper + product variant migraiton + model
* chore: remove old test utils
* update ts and jest config to include path aliases
* tweak config
* WIP migrations variant
* Migrations round
* integration tests migrations polishing
* chore: fixed issues with test db
* fix path aliases when published
* use ts-alias
* fix connection loader
* fixes
* wip: product list
* (WIP): Data access layer
* (WIP): DAL cleanup services
* wip: `ProductTag` DAL
* wip: `ProductTag` expose list in product service
* (WIP): Continue DAL and test list product filtering/populate
* WIP: unit tests
* chore: added tests for service - productvariant
* chore: WIP finding issues with orm manager fork
* WIP fix fields selection
* chore: make text fixes work
* (WIP) product integration
* (WIP) product integration
* chore: create a product in variant test
* list product with relations
* wip: `ProductTag` service + integrations
* chore: added with and without serialization example
* chore: remove only in spec
* wip: `ProductCollection` service + integrations
* uncomment product.variants
* Update type IProductService
* (WIP) type work
* (WIP) Product variants relation
* WIP: replacable data layer
* (WIP): Use bundle types
* WIP: update type
* WIP upadte tests
* WIP
* wip: options/option values entites
* (WIP): cleanup
* wip: add option value to variant, fix collection
* Integration tests for custom data access layer
* update tests
* chore: merge with latest branch
* chore: scope tests to relations and add category to models/index
* chore: ignore dist folders for jest
* chore: modularize spec data file
* improve DX
* module fixture naming
* chore: added category tests + fix model
* chore: use kebab case
* chore: allow scoping products by category id
* chore: replace `kebabCase` import
* feat: add `deleted_at` to options
* improve typings
* chore: wip
* fix query util
* revert webpack
* fix: update option models, create option DTOs, tests wip, fix `deduplicateIfNecessary` returning `undefined`
* fix: merge conflict
* WIP connection
* rm unsues deps
* fix migrations
* fix query util
* chore: adds mpath on creation
* WIP update types
* improve typings
* WIP typeings improvement
* WIP
* deps
* chore: package medusa/product ot medusa-commerce/product
* chore: added product categories service + descendants filter
* add missing index
* Add support for strict categories not in
* Add support for strict categories not in
* lint
* rename module
* rename module
* Create small-ducks-doubt.md
* yarn lock
* update initialise
* chore: fix/finalise DTOs
* fix: wrong types in `IProductService`
* fix type
* Load database config from env if present (#4175 )
* Load database config from env if present
* Load database config from env if present
* options optionnal
* update util
* add defaults
* improve filterable interfaces
* fix import
* fix types
* remove medusa-telemetry from modules-sdk
* WIP fixing webpack issues when bootstraping module
* cleanup
* improve loading driver options
* cleanup
* yarn lock
* fix import
* improve sdk types and naming
* align orther modules initialise method
* fix module tests with singleton module
* fix module tests with singleton module
* add up/down migration scripts
* update types
* scripts
* cleanup migrations and scripts
* hash module singleton
* cleanup migration
* cleanup
* fix stringifyCircular usage
* improvements
* fix deps
* fix deps
* improve load config utils
* improve load config utils
* fix deps
* add declaration to the build
* update yarn
* Do not resolve a module path if the exports are explicitly given
* fix module registration resolution path when exports are provided. Explicitly check for false and assign an empty string in this scenario for segregation purpose
* add comment
* fix migration options to prevent set replica errors
* chore: update types to a proper depedency
* chore: update type package
* add seed scripts
* Add descriptive error during database config loading
* use MedusaError
* chore: added lodash to package
* add more test to the database config loader util
* create bin scripts
* add bin
* update argv retrieval
* update package.json
* chore: add product category to injected deps
* chore: replace with product category service
* move dotenv usage to the functions
* do not load db if there is custom manager
* chore: fix some tests on products repo
* chore: fixed product spec
* chore: skip products module on modules register
* stringifyCircular update
* chore: fix incorrect module resolution
* fix: circular stringify and non required module loading
* yarn lock
* target es5
* chore: mikro-orm back to 5.7.4
* revert module registry
* skip external modules
* es2020
* update indexes, migration and integration tests
* rm only
* unit test script should only run unit tests
* Exclude product integration from the unit tests and make use of the global integration script to run all packages integration tests
* fix integration tests
* improve setup
* cleanup
* log error on setup fail
* Create enum like for package names
* chore: remove EOL
* chore: review part 2
* renamve gateway to productModuleService
* chore: added filters and collections to productmoduleservice
* chore: add collection to the singleton instance
* chore: remove skipped test + add todo
* fix indexes on fields and relations + update migration
* update yarn lock
* update idx
* add foreign key
* rename interface and add listCategories
* rename product module definition
---------
Co-authored-by: fPolic <frane@medusajs.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2023-06-09 20:47:24 +02:00
Adrien de Peretti
2db6a1d407
chore(medusa): Improve database loader error handling ( #4254 )
...
* chore(medusa): Improve database loader error handling
* Create sharp-melons-doubt.md
* move the database error handling to the utils
* fix unit tests
* tackle feedback
* fix unit tests
2023-06-07 10:57:29 +02:00
Adrien de Peretti
af2dc4f75a
feat(medusa, inventory, stock-location): Remove unnecessary transaction usage in the modules and the list product end points ( #4232 )
2023-06-05 12:11:12 +02:00
Adrien de Peretti
d76ba0cd29
fix(medusa): Order edit missing transaction when consuming the inventory module ( #4211 )
...
* fix(medusa): Order edit missing transaction when consuming the inventory module
* Create hot-cougars-speak.md
* fix missing types
2023-06-05 11:01:28 +02:00
Adrien de Peretti
c0e527d6e0
chore(medusa): Align build query utils ( #4148 )
2023-05-22 15:14:14 +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
Adrien de Peretti and Riqwan Thamir
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
Adrien de Peretti
cdbac2c840
feat(medusa,utils): Add support for multiple where condition on the same column ( #4046 )
2023-05-15 21:04:03 +02:00
Adrien de Peretti
cff54d7325
fix(medusa-payment-stripe): Catch on idempotency key retrieve if not found ( #4025 )
...
**What**
In case the idempotency key is not found, an error will be thrown. We actually want to catch this error and create the key if it does not exists
2023-05-05 14:54:38 +00:00
Adrien de Peretti and Oliver Windall Juhl
0e488e71b1
fix(medusa, types, utils, event-bus-local): Revert retrieveSubscribers ( #4002 )
...
* fix(medusa, event-bus-redis, event-bus-local): Revert retrieveSubscribers as the wildcard prevent us from filtering
* Create calm-eggs-collect.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-05-03 18:55:45 +02:00
af710f1b48
fix(medusa): Bulk create variant + pass transaction to the inventory service context methods ( #3835 )
...
* fix(medusa): Bulk create variant and pass transaction where needed
* Create fair-penguins-stare.md
* fix unit tests
* event
* transaction orchestration
* revert options
* Prevent isolated module to use the given transaction if any in the exposed service
* Use enum
* remove changeset to re do it
* Create thick-ants-tickle.md
* update event bus local
* remove changeset to re do it
* Create thick-kings-wonder.md
* remove changeset to re do it
* Create slimy-bees-eat.md
* Update packages/utils/src/event-bus/index.ts
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-04-19 09:27:48 +02:00
Adrien de Peretti
6bb1654b61
fix(medusa): List products end points ( #3829 )
...
* fix(medusa): List products end points
* lint
* Create fast-toes-know.md
2023-04-13 21:33:08 +02:00
Adrien de Peretti and Riqwan Thamir
282e239dfc
chore(medusa): Migrate price list repository ( #3725 )
...
* chore(medusa): Migrate price list repository
* Create grumpy-cars-tease.md
* fixes
* fix
* fix
* cleanup
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-04-08 18:54:08 +02:00
Adrien de Peretti
1a60c6f58d
fix(medusa): Throw on line item generation if variant does not have a price ( #3766 )
2023-04-08 18:32:59 +02:00
Adrien de Peretti
60abb91b7c
chore(medusa): Migrate payment collection repository api ( #3724 )
...
* chore(medusa): Migrate payment repository api
* Create fresh-ties-hide.md
2023-04-05 12:39:46 +02:00
Adrien de Peretti
eab2d22f7d
chore(medusa): Migrate product tag repository ( #3726 )
...
* chore(medusa): Migrate product tag repository
* chore(medusa): cleanup
* chore(medusa): cleanup
* Create healthy-lies-eat.md
* chore(medusa): naming
* fix repo
2023-04-05 12:39:28 +02:00
Adrien de Peretti
4d69d8ef6a
chore(medusa): Migrate product type repository ( #3727 )
...
* chore(medusa): Migrate product type repository
* Create pink-socks-brake.md
2023-04-05 12:39:15 +02:00
Adrien de Peretti
914d57336b
chores(medusa): cleanup registrations life time ( #3699 )
2023-04-05 12:15:44 +02:00
Adrien de Peretti
4488ec6852
fix(medusa): Ignore categories seeding for sqlite ( #3713 )
2023-04-04 17:33:49 +02:00
Adrien de Peretti
dae8da1099
fix(admin): Duplicate product without prices ( #3706 )
...
* fix(admin): Duplicate product without prices
* Create honest-ways-eat.md
2023-04-04 16:04:31 +02:00
Adrien de Peretti
e5a2e9c8d2
fix(medusa): circular loading ( #3705 )
2023-04-04 16:02:35 +02:00
Adrien de Peretti and Oliver Windall Juhl
d886430bf8
fix(medusa): Rounding issues on line item adjustments ( #3446 )
...
* chores(medusa): Attempt to fix discount rounding issues
* add migration
* update entities
* apply multipler factor properly
* fix discount service
* WIP
* fix rounding issues in discounts
* fix some tests
* Exclude raw_discount_total from responses
* fix adjustments
* cleanup response
* fix
* fix draft order integration
* fix order integration
* fix order integration
* address feedback
* fix test
* Create .changeset/polite-llamas-sit.md
* remove comment
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-29 11:04:41 +02:00
Adrien de Peretti
7f120e576b
chore: Merge master to develop and manage conflict ( #3570 )
2023-03-29 10:11:32 +02:00
Adrien de Peretti
b9c6c3d059
fix(medusa-payment-paypal): Missing typescript dev dependency ( #3609 )
2023-03-28 19:20:39 +02:00
5307408894
feat(medusa-payment-paypal): Migrate to the new payment processor API ( #3414 )
...
* feat(medusa-payment-paypal): Migrate to the new payment processor API
* WIP
* WIP
* WIP unit tests
* WIP
* unit tests
* fix package.json
* yarn
* cleanup
* address feedback 1/2
* Start to implement a new Paypal SDK
* cleanup
* finalise sdk
* cleanup
* fix push missing file
* rename sdk methods
* unit test the http client
* WIP
* fix http client
* Create .changeset/empty-melons-eat.md
* refactor tests
* fix quote
* fix options
* cleanup
* do not retry auth
* WIP
* retry mechanism max attempts
* use both old and new options
* fix capture
* remove totals fields
* add missing method
* cleanup
* fix current tests
* authorize should update the data with the fresh order
* remove comments
* fix tests
* Update packages/medusa-payment-paypal/src/core/paypal-http-client.ts
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* fix unit tests
* update changeset
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-03-28 13:49:09 +02:00
Adrien de Peretti
4a7bdc917a
fix(event-bus-local): Error handling ( #3575 )
...
**What**
The error handling was applied on the emit, which always succeed. On the other hand, the `on` which calls the handler, was not handling any errors and therefore crashed the server
2023-03-24 13:49:29 +00:00
Adrien de Peretti
98fe8fd00a
fix(medusa): Variant update should include the id for the listeners to be able to identify the entity ( #3539 )
...
* fix(medusa): Variant update should include the id for the listeners to be able to identify the entity
* fix unit tests
* Create brave-seahorses-film.md
2023-03-21 16:15:05 +01:00
Adrien de Peretti
fa4049cb51
feat(medusa): Improve performance of Products domain ( #3417 )
...
* feat(medusa): Improve product update performances
* fix tests and update
* update mock repo
* improve repo
* cleanup
* fix
* cleanup + bulk emit + unit test fix
* improvements
* improve
* fix unit tests
* fix export
* fix product update handler
* enhance mock repo
* fix import integration
* fix end point tests
* revert mock repo product variant
* fix unit
* cleanup
* cleanup
* address feedback
* fix quotes in tests
* address feedback
* Create new-tips-mate.md
* use types
2023-03-15 17:05:43 +01:00
Adrien de Peretti
f0a1355feb
feat(medusa): Bulk emit events ( #3407 )
2023-03-13 15:28:51 +01:00
Adrien de Peretti
601d20e7ab
chores(medusa): Improve draft order creation perf flow ( #3431 )
2023-03-09 16:17:41 +01:00
Adrien de Peretti
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
Adrien de Peretti
84e4489683
chore(medusa): Little improvement in draft order creation ( #3374 )
...
**What**
Only call line item service create once, instead of twice.
2023-03-07 19:10:53 +00:00
Adrien de Peretti
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
Adrien de Peretti and Oliver Windall Juhl
d6b1ad1ccd
feat(medusa): Performance improvement of DraftOrder creation ( #3350 )
...
* chore(medusa): Improve draft order creation
* cleanup
* fix unit tests
* fix unit tests 2
* Create beige-ties-hunt.md
* cleanup feedback
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-02 18:03:04 +01:00
Adrien de Peretti and Oliver Windall Juhl
f033711ad6
feat(medusa): Add Lifetime support on project/plugin services ( #3349 )
...
* feat(medusa): Add Lifetime support on project/plugin services
* Create kind-dogs-argue.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-02 16:33:11 +01:00
Adrien de Peretti and Oliver Windall Juhl
e143a86976
fix(medusa): Plugin repository loader ( #3345 )
...
* fix(medusa): Plugin repository loader
* Create brave-goats-pay.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-01 18:14:36 +01:00
Adrien de Peretti
b458615ed5
fix(medusa): Delete all payment sessions when cart total is 0 ( #3346 )
...
* Fix(medusa): On cart total amount at 0 the non initialised payment sessions are not delete
* fix test
* Create good-crews-pull.md
2023-03-01 13:22:25 +01:00
Adrien de Peretti
589d1c09b0
feat(medusa-payment-stripe): Stripe PaymentProcessor implementation ( #3257 )
2023-02-28 18:44:24 +01:00
Adrien de Peretti and Oliver Windall Juhl
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
Adrien de Peretti
5301a1e9d6
chore(medusa): Revert AbstractPaymentService deprecation ( #3298 )
2023-02-21 20:40:40 +01:00
Adrien de Peretti
d11ab924b8
feat(medusa): Configurable returnable_items on order decorate totals ( #3276 )
2023-02-21 14:48:49 +01:00
Adrien de Peretti and Oliver Windall Juhl
f43e9f0f20
feat(medusa): Load PaymentProcessors + integrate in PaymentProviderService ( #2978 )
...
* feat: Add payment process support into the loader and payment provider
* WIP
* feat: continue payment provider alignment
* fix tests and defer payment service resolution
* continue to add support to payment provider
* continue to add support to payment provider
* fix fixtures
* chore: add updateSessionData unsupported error
* chore: Adress feedback
* chore: Adress feedback
* chore: fix default loader
* cleanup
* cleanup
* fix unit tests
* Create purple-sloths-confess.md
* address feedback
* minor changes
* fix unit test
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-02-21 09:48:32 +01:00
Adrien de Peretti and Oliver Windall Juhl
46547f29c7
chore(medusa): Improve store list products ( #3252 )
...
* chore(medusa): Improve list products by 46.5 percents
* fix handler
* todo's
* Create tricky-terms-wash.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-02-20 12:45:05 +01:00
Adrien de Peretti
aefe5aa133
feat(medusa): Expose an activeManager_ getter in TransactionBaseService ( #3256 )
2023-02-16 10:26:23 +00:00
Adrien de Peretti and Oliver Windall Juhl
5e0273a370
chore(medusa): New totals calc. in Swap creation ( #3191 )
...
* feat(medusa): Cleanup swap creation flow
* revert test and package
* fix unit tests
* fix swap seeder that does not include the tax lines on the return line item
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-02-14 10:52:45 +01:00
Adrien de Peretti
4cb44a3a2e
fix(medusa): Discount allocation precision issues ( #3244 )
2023-02-13 17:22:18 +01:00
Adrien de Peretti
bbbb3d8882
fix(medusa): Missing withTransaction on update in get-cart.ts ( #3246 )
2023-02-13 16:30:46 +01:00
Adrien de Peretti
a2cc084db8
fix(medusa): Missing withTransaction on calculateDiscountForLineItem ( #3247 )
2023-02-13 16:29:11 +01:00
Adrien de Peretti
eee9283818
feat(medusa): Allow empty fields/expand ( #3220 )
2023-02-09 18:05:56 +01:00
Adrien de Peretti
8c5219a31e
chore: Update ignored files for npm ( #3217 )
2023-02-09 17:25:14 +01:00
Adrien de Peretti
6e443dc708
feat(medusa): Improve addShippingMethod on store cart route ( #3222 )
2023-02-09 16:55:40 +01:00
Adrien de Peretti
bfa33f444c
fix(medusa): Applying Discounts (with Conditions) on DraftOrders and Carts ( #3197 )
2023-02-08 19:01:23 +01:00
Adrien de Peretti
ce866475b4
chore(*-payment-*): Cleanup PaymentProvider plugins ( #3011 )
2023-02-07 12:43:24 +01:00
Adrien de Peretti
82da3605fb
feat(medusa-payment-stripe): Avoid unnecessary customer update if the stripe id already exists ( #3046 )
2023-02-06 14:25:02 +01:00
Adrien de Peretti and Oliver Windall Juhl
dc156861d4
fix(medusa): ShippingOption type on listAndCount ( #2040 )
...
**What**
Fix typing issue
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-02-06 13:00:32 +00:00