Commit Graph

3369 Commits

Author SHA1 Message Date
Shahed Nasser
46ea671a46 docs: added orders conceptual guide (#3882)
* docs: added order conceptual guide

* docs: linked to cart page
2023-04-19 18:54:14 +03:00
Philip Korsholm
0d0e9bf206 fix(medusa): Correct inventory quantity calculation (#3881)
* initial fix

* add changeset
2023-04-19 15:43:55 +02:00
Shahed Nasser
f132535056 docs: added cart conceptual guide (#3872)
* docs: added cart conceptual guide

* changed link of idempotency key

* apply suggestions from code review

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* tiny change

* Used correct entity name representation

* small fixes in totals section

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-04-19 16:02:37 +03:00
Shahed Nasser
298567e27d docs: added how to retrieve a category by its handle (#3875) 2023-04-19 12:32:23 +03:00
Adrien de Peretti
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
Oliver Windall Juhl
366b12fcea fix(medusa): Add missing relations when creating return (#3870) 2023-04-18 19:47:19 +02:00
Shahed Nasser
649bb6aa99 docs: added deprecation note for Gatsby Contentful starter (#3873) 2023-04-18 19:05:39 +03:00
Daniel Beck
d85d7bb6d4 fix(admin-ui): Flip rendering condition on reset password (#3864)
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2023-04-18 14:53:24 +02:00
Shahed Nasser
f14ab4e647 docs: fix details about gift cards (#3869) 2023-04-18 13:58:02 +03:00
Shahed Nasser
8766b16e3b docs: added manage products documentation (#3867)
* docs: added manage products documentation

* lint fixes

* generated oas types
2023-04-18 13:20:15 +03:00
Shahed Nasser
9836adeec7 docs: added details about health route (#3861) 2023-04-18 10:43:31 +03:00
Oliver Windall Juhl
cd2d4f6455 fix(inventory): Add missing context arguments (#3863)
* add missing context

* Create ninety-peas-complain.md
2023-04-18 08:43:36 +02:00
Shahed Nasser
e01df41dda docs: added an example of retrieving a product's categories (#3859)
* docs: added an example of retrieving a product's categories

* eslint fixes
2023-04-17 17:49:32 +03:00
Shahed Nasser
5ddef586b3 docs: added a section about returning an array in endpoints (#3860) 2023-04-17 17:38:19 +03:00
Shahed Nasser
1261502b8d docs: added missing stripe options and webhook events (#3858) 2023-04-17 17:25:36 +03:00
Shahed Nasser
c8c0ada27d docs: added products conceptual docs (#3854)
* docs: added products conceptual docs

* eslint fixes

* adjusted pricing note in show-products docs
2023-04-17 15:48:53 +03:00
Shahed Nasser
febdcc271b docs: added a section about accessing customizations (#3855)
* docs: added a section about accessing customizations

* fixed eslint errors
2023-04-17 15:30:52 +03:00
Pevey
d2826872fe chore: Bump package versions to address security vulnerabilities (#3845) 2023-04-16 10:37:43 +02:00
Shahed Nasser
9b9055a8bf chore: update main package README (#3840)
* chore: update main package README

* change linking from master to develop
2023-04-14 14:24:27 +03:00
Riqwan Thamir
1eca596393 docs: adds config documentation for http compression (#3839)
* docs: added configuration docs for http compression

* Update docs/content/development/backend/configurations.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Apply suggestions from code review

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* chore: reposition disabling for endpoint

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-04-14 14:08:31 +03:00
github-actions[bot]
bdd636c996 chore(docs): Generated API Reference (#3836)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-14 11:44:25 +02:00
github-actions[bot]
dfe25730a4 chore(docs): Generated Services Reference (automated) (#3838)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-14 11:44:12 +02:00
github-actions[bot]
d759fc8537 chore(docs): Generated Docs Announcement Bar (automated) (#3837)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-14 11:44:00 +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
Shahed Nasser
3a49f14e3e docs: added a Build Your Own Storefront Roadmap (#3834)
* docs: added storefront roadmap

* docs: added doc to sidebar

* added a link to the product storefront how-to

* added missing customer profiles link
2023-04-14 10:57:24 +03: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
Shahed Nasser
1da7491faa docs: fix rendering of some images on build (#3832) 2023-04-13 22:21:03 +03:00
Shahed Nasser
b9e0af5470 docs: added how-to guide for show products (#3828)
* docs: added how-to guide for show products

* small fixes

* fix links

* renamed store directory

* fixing links after renaming directory

* fix links after renaming directory

* fix link

* fixed sidebar link

* fix tab
2023-04-13 21:18:34 +03:00
Riqwan Thamir
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
Marija Naumovska
3bd4bf0b8d docs: Adding Microtica as a deployment option (#3802)
* Adding Microtica as a deployment option

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update www/docs/sidebars.js

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* resolving comments

* resolved conflicts in sidebars.js

* expanded the RDS acronym

* moved Microtica higher up in the sidebar hierarchy

* Update docs/content/deployments/server/deploying-on-microtica.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

---------

Co-authored-by: “Marija <“naumovskamarija@gmail.com”>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-04-13 19:35:26 +03:00
Shahed Nasser
9c1664f834 docs: changed details regarding plugin structure (#3827) 2023-04-13 18:29:19 +03:00
github-actions[bot]
ab22b345eb chore(docs): Generated API Reference (#3826)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-04-13 15:29:48 +03:00
Shahed Nasser
69bea8cc13 docs: added details about sort order in pagination (#3824) 2023-04-13 14:53:34 +03:00
Riqwan Thamir
4f58ddee03 feat(medusa,utils): add server level configurable http compression (#3785)
* feat(medusa,utils): add server level configurable http compression

* chore: remove unwanted middleware

* chore: add a log for running compression

* chore: change package position

* chore: reposition options

* chore: change equality
2023-04-13 12:39:13 +02:00
Shahed Nasser
1eab1b740f docs: remove unnecessary await (#3821)
* docs: remove unnecessary await

* updated cors import
2023-04-13 11:21:17 +03:00
Shahed Nasser
305d92e0f8 docs: added customer confirmation email guide (#3817)
* docs: added customer confirmation email guide

* fix id in sidebar

* fix link
2023-04-12 21:13:57 +03:00
Patrick
1456056e8f feat(oas): new medusa-oas docs for Redocly and circular references (#3745)
## What

New `medusa-oas docs` to improve OAS compatibility with for Redocly API documentation viewer and handle deep circular references.

## Why

We wish to share the tooling we have been using to generate our public API documentation.

## How

* Move `/docs-utils/redocly` under `medusa-oas-cli` package.
* Move  some of the operations from `oas-github-ci/scripts/build-openapi.js` under the `medusa-oas docs` command.
* Improve DevX when dealing with circular references by outputting precise troubleshooting recommendations in the error message.
* Extract some common operations in utility methods.

## Tests

### Step 1
* Run `yarn install`
* Run `yarn build`
* Run `yarn openapi:generate --dry-run`
* Expect same behaviour as before where OAS is validated and circular references are checked.

### Step 2
* Run `yarn openapi:generate`
* Expect same behaviour as before where API documentation is generated in `/docs`

### Step 3
* Move to the `packages/oas/medusa-oas-cli`
* Run `yarn medusa-oas oas --type store --out-dir ~/tmp/oas` to generate the raw OAS file.
* Run `yarn medusa-oas docs --src-file ~/tmp/oas/store.oas.json --preview`
* Open url from the console output in a browser
* Expect a preview of the API documentation using Redocly.

### Step 4
* Run `yarn medusa-oas docs --src-file ~/tmp/oas/store.oas.json --out-dir ~/tmp/docs/store --clean --split`
* Expect a similiar output as `yarn openapi:generate`

### Step 5
* Run `yarn medusa-oas docs --src-file ~/tmp/oas/store.oas.json --out-dir ~/tmp/docs/store --clean --html`
* Expect `index.html` to have been created.
* Run `npx http-server ~/tmp/docs/store -p 8000`
* Open http://127.0.0.1:8000 in a browser.
* Expect a zero-dependency static rendering of the API documentation using Redocly.

### Step 6
* To emulate an unhandled circular reference, edit [packages/oas/medusa-oas-cli/redocly/redocly-config.yaml](d180f47e16/packages/oas/medusa-oas-cli/redocly/redocly-config.yaml (L9-L10)) and comment out "Address: - Customer"
* Run `yarn medusa-oas docs --src-file ~/tmp/oas/store.oas.json --dry-run`
* Expect an error message with a hint on how to resolve the issue.
* Create a file `~/tmp/redocly-config.yaml` and paste in the recommendation from the error message.
* Run `yarn medusa-oas docs --src-file ~/tmp/oas/store.oas.json --dry-run --config ~/tmp/redocly-config.yaml` 
* Expect Dry run to succeed.
2023-04-12 17:16:15 +00:00
Shahed Nasser
1d50a5e5c1 docs: added description column to product (#3816) 2023-04-12 18:06:35 +03:00
Shahed Nasser
bd21277142 docs: small fixes across documentation (#3815) 2023-04-12 15:04:09 +03:00
github-actions[bot]
8e7e346683 chore(docs): Generated Services Reference (automated) (#3814)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-04-12 11:56:46 +02:00
github-actions[bot]
d83fcfd9ea chore(docs): Generated API Reference (#3813)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-12 11:56:12 +02:00
Oliver Windall Juhl
25672dbb77 docs: Add 1.8.1 upgrade guide (#3804)
* docs: Add 1.8.1 upgrade guide

* Update docs/content/upgrade-guides/medusa-core/1-8-1.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update docs/content/upgrade-guides/medusa-core/1-8-1.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-04-12 11:55:40 +02:00
github-actions[bot]
0b772eb4c5 chore(docs): Generated Docs Announcement Bar (automated) (#3812)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-12 11:55:20 +02:00
github-actions[bot]
3efe13eefd chore: Release (#3782)
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-12 11:32:05 +02:00
Shahed Nasser
2353719f44 docs: added note about migration script (#3809) 2023-04-12 11:16:52 +03:00
Shahed Nasser
a29bf7c155 docs: added note about testing admin in backend deployment (#3808)
* docs: added a note about testing admin in backend deployment

* added a note about admin build

* added DATABASE_TYPE env variable
2023-04-12 10:32:40 +03:00
Shahed Nasser
1651cfd4ac docs: added currency documentation pages (#3803)
* docs: added currency documentation pages

* fixes to OAS
2023-04-11 21:39:24 +03:00
Oliver Windall Juhl
654a546223 chore: Bump Typeorm (#3778) 2023-04-11 18:43:40 +02:00
Shahed Nasser
9b1348df48 docs: updated contentful documentation (#3800) 2023-04-11 18:45:33 +03:00
Frane Polić
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