Commit Graph

3748 Commits

Author SHA1 Message Date
Riqwan Thamir
8af55aed87 feat(product, types, modules-sdk): added event bus events for products (#4654)
what:

- adds an eventbus dependency to product module.
- emits events on product, category and collection CUD

RESOLVES CORE-1450
2023-08-04 09:26:02 +00: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
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
zhangpengchen
fc6c9df035 fix(medusa): Assign metadata when creating a draft order or creating a line item (#4662)
When creating a draft order or creating a line item via Postman, filled metadata is not saved, metadata remains null in the API response

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-02 16:02:29 +00:00
Lacey Pevey
9c682ce288 chore(medusa): Update request-ip dependency version (#4636)
This updates the request-ip package dependency in @medusajs/medusa.

This resolves the critical security warnings seen when creating a new medusa backend OTHER THAN medusa-admin related issues.  Because the admin is undergoing an extensive rewrite, I didn't address the older version of node-fetch that is at the root of those issues.

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-02 15:29:12 +00: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
Shahed Nasser
738eac63aa docs: fixes to medusa-react (#4672)
* docs: fixes to medusa-react

* fixes to admin customization pages

* fix eslint errors

* added routes and settings props

* fixes to settings page

* small fix for settings
2023-08-02 15:27:32 +03: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
zhangpengchen
dae34297eb feat(medusa): Expose some commonly used utils (#4630)
* feat(medusa): Expose some commonly used utils

* Create chilled-lions-raise.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-02 13:48:56 +02:00
Oli Juhl
bb534e0453 fix(admin-ui): Customer Groups in Pricing + TIP (#4670)
* Use NextSelect

* Ensure boolean value of includes taxa

* Create thin-kings-grab.md
2023-08-02 13:45:27 +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
Minh Tu Ngo
7f1421c218 docs: fixes env variable name in next.js docs (#4665)
the SEARCH_INDEX_NAME variable should equal to  process.env.NEXT_PUBLIC_SEARCH_API_KEY  (as in the .env file) instead of NEXT_PUBLIC_INDEX_NAME.

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-08-02 11:47:59 +03:00
Shahed Nasser
84fe2a3837 docs: add missing code in create entity doc (#4669) 2023-08-02 10:45:04 +03:00
github-actions[bot]
82ceea7000 chore(docs): Removed Docs Announcement Bar (automated) (#4667)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-08-02 10:12:42 +03:00
Shahed Nasser
c90191eb7e docs: revamped endpoints, services, and entities (#4660)
* revamp create endpoint docs

* docs: revamped endpoints, services, and entities

* eslint fixes

* fix metadata

* fix missing closing tag

* fixes to create migration doc

* fixes to create endpoint doc

* small fix in create service doc
2023-08-01 19:36:56 +03:00
Shahed Nasser
6c885ac2d6 docs: fixes to create entity docs (#4657) 2023-08-01 13:50:23 +03:00
Shahed Nasser
18ba749695 docs: fixes to create migrations guide (#4656) 2023-08-01 12:59:06 +03:00
Specture X
1d70b46bb9 docs: fix create fulfillment parameter descriptions (#4653)
Co-authored-by: daniel99k <dk99@divcodes.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-08-01 12:15:15 +03:00
Shahed Nasser
554af1abf3 docs: fix configurations link in backend install (#4634) 2023-08-01 11:11:22 +03:00
Shahed Nasser
2e42141822 docs: shorten npx commands (#4652) 2023-08-01 10:50:19 +03:00
Shahed Nasser
26a606a1bb docs: fixes to create endpoint documentation (#4650) 2023-08-01 10:14:59 +03:00
Shahed Nasser
d4e7f679cc docs: fixes to entities overview page (#4651) 2023-07-31 19:42:57 +03:00
Shahed Nasser
c0cf786e48 docs: improvements to storefront roadmap (#4648) 2023-07-31 19:18:05 +03:00
Shahed Nasser
14fe1f1f69 docs: fixes to implement cart docs (#4645) 2023-07-31 17:30:58 +03:00
Shahed Nasser
da903fd798 docs: fixes to implement checkout (#4646) 2023-07-31 16:27:34 +03:00
Shahed Nasser
483bf2e544 docs: added admin setting page documentation (#4641)
* docs: added admin setting page documentation

* add link from routes to settings page
2023-07-31 15:09:19 +03:00
Shahed Nasser
c2f4ad8378 docs: remove unnecessary typing (#4642) 2023-07-31 14:52:40 +03:00
Adrien de Peretti
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
Shahed Nasser
648eb106d6 docs: added a note in create-medusa-app (#4640)
* docs: added a note in create-medusa-app

Added a note in `create-medusa-app` guide linking to the backend quickstart as the recommended solution for an installation with more configurations.

* move stable option note
2023-07-31 12:54:37 +03:00
Shahed Nasser
8321925404 docs: added troubleshooting section for medusa-react (#4639) 2023-07-31 12:30:13 +03:00
Shahed Nasser
90dea3bfcf docs: add a link to loaders guide (#4638) 2023-07-31 11:22:24 +03: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
Shahed Nasser
c8ef0c6d25 docs: added details about the stable option (#4632)
* docs: added details about the stable option

* fix link
2023-07-28 17:55:23 +03:00
Shahed Nasser
5d71a8d26f docs: added general troubleshooting error (#4625) 2023-07-28 11:42:06 +03:00
Shahed Nasser
75f2f9ad62 chore(oas): fix tag names (#4622) 2023-07-28 10:41:47 +03:00
Shahed Nasser
723f2677da docs: improved configurations documentation (#4619)
* docs: improved configurations documentation

* fix feature-flag link

* removed required section
2023-07-28 10:21:54 +03:00
Oli Juhl
6e4d160251 docs: Upgrade guide for 1.13.0 (#4614) 2023-07-27 15:52:24 +00:00
olivermrbl
375447155d chore: Release 2023-07-27 17:17:24 +02:00
github-actions[bot]
0885e13aa6 chore: Version Packages (#4624)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 17:13:39 +02:00
olivermrbl
ce3f914e01 chore: Add changeset minor bumping 2023-07-27 17:03:46 +02:00
Riqwan Thamir
107ae23a3f fix(utils, types, medusa-plugin-meilisearch, medusa-plugin-algolia): move SoftDeletableFilterKey, variantKeys, indexTypes from types to utils (#4623)
* chore: move SoftDeletableKey from types to utils

* chore: move variantkeys, indextypes
2023-07-27 16:42:26 +02:00
github-actions[bot]
c85d479e52 chore(docs): Generated Docs Announcement Bar (automated) (#4616)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-07-27 14:58:04 +03:00
olivermrbl
7d3630f366 chore: Release 2023-07-27 13:24:35 +02:00
github-actions[bot]
5a569c4a20 chore: Version Packages (#4591)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 13:19:14 +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
Shahed Nasser
8d0ce0af06 chore(oas): add link for additional info on metadata (#4613) 2023-07-27 12:44:16 +03:00
Shahed Nasser
5fcb0d5281 docs: added directory structure documentation (#4612)
* docs: added directory structure documentation

* improvements
2023-07-27 12:18:31 +03:00
olivermrbl
30e8bb2757 chore: Add changeset with minor bump 2023-07-27 10:58:06 +02:00
zhangpengchen
f18f1b9bfe feat(medusa): Expose error handler from middlewares (#4609)
* feat: Expose error handler from middlewares

* Create unlucky-fireants-talk.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-07-27 10:03:19 +02:00
Riqwan Thamir
131477faf0 feat(product, types, utils): tags, types, options, categories and collections for product module (#4535)
* 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)

* chore: added tags and types methods for product module

* chore: remove console log

* chore: fork managers on every repository call

* chore: add forked manager decorator

* chore: rename to inject manager from inject forked manager

* chore: added product tag and type create/update/delete

* chore: added collection create/update/delete

* chore: fix naming

* update injectManager and related behaviour

* simplify get active manager

* chore: reset package.json

* makes the base repository methods related to manager generic

* makes some wrapper generic enough

* add some todos

* chore: added options CRUD

* clean up

* chore: fix issue with deleted_at not being updated

* wip

* chore: added categories write operations

* chore: remove async nature of injection decorator

* chore: added changeset

* chore: reset package.json

* chore: add manager injection to all contextable methods

* chore: fix unit tests

---------

Co-authored-by: adrien2p <adrien.deperetti@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-27 09:52:17 +02:00