Commit Graph

3349 Commits

Author SHA1 Message Date
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
Shahed Nasser
99cc4b0571 docs: small fixes for guides using the start command (#3799) 2023-04-11 14:40:55 +03:00
Oliver Windall Juhl
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
github-actions[bot]
8f8816cbab chore(docs): Removed Docs Announcement Bar (automated) (#3795)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-04-11 10:04:46 +03:00
Shahed Nasser
8da342897c docs: commented out option 2 of admin as a temporary fix (#3789)
* docs: commented out option 2 as a temporary fix

* fix comments
2023-04-10 18:52:23 +03:00
Shahed Nasser
a964bea801 docs: changed message value in feedback component (#3786) 2023-04-10 14:25:28 +03:00
Shahed Nasser
6046323f42 chore: changed PR branch for docs workflows (#3781) 2023-04-10 11:31:39 +03:00
Shahed Nasser
ae017c4657 chore(docs): merge changes from master (#3780)
* chore(docs): Generated API Reference (#3761)

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>

* docs: fix typo (#3771)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
Co-authored-by: Andre Schweighofer <fidrelity@users.noreply.github.com>
2023-04-10 11:15:54 +03:00
Oliver Windall Juhl
5280e1bdad chore: Automate releases (#3736)
* chore: Automate releases

* Update release.yml
2023-04-10 09:51:14 +02:00
Oliver Windall Juhl
085fedb1f7 chore(medusa): Upgrade ioredis-mock (#3704)
* chore(medusa): Upgrade ioredis-mock

* Create .changeset/old-spoons-bow.md

* chore: Increas jest timeout

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-09 16:10:04 +02:00
Rares Stefan
4104d9ccb2 fix(medusa-plugin-economic,medusa-plugin-mailchimp,medusa-plugin-restock-notification,medusa-plugin-sendgrid,medusa-plugin-wishlist): Temporarily remove payload validation in some plugins (#3763)
* Temporarily remove payload validation in some plugins

* Add changeset

* chore: Remove commented out code

* Revert discount generator plugin

---------

Co-authored-by: olivermrbl <oliver@mrbltech.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-04-08 21:09:13 +02:00
Adrien de Peretti
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
Riqwan Thamir
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
Shahed Nasser
74c54a134d docs: use cloudinary env variable (#3769)
* docs: use cloudinary env variable

* fix error

* added default value

* add condition for cloud name
2023-04-07 14:15:48 +03:00
Shahed Nasser
a7b57e8201 docs: optimized cloudinary images (#3767) 2023-04-07 12:24:53 +03:00
Riqwan Thamir
abdb74d997 chore(medusa, utils): rename buildLegacyFieldsListFrom to objectToStringPath (#3738)
* chore(medusa): rename buildLegacyFieldsListFrom to objectToStringPath

* chore: address pr comments
2023-04-07 10:27:13 +02:00
Frane Polić
08f85fa33b fix(medusa): export product prices in human-readable format (#3739)
* fix: export product prices in human-readable format

* feat: add changesets

* fix: update snaps

* fix: update more snaps

---------

Co-authored-by: fPolic <frane@medusajs.com>
2023-04-07 09:59:28 +02:00
Shahed Nasser
d55d8656cf docs: updated contribution guidelines (#3760)
* docs: updated contribution guidelines

* fixed eslint errors
2023-04-07 10:47:21 +03:00
Shahed Nasser
8c8334203e docs: added node.js required version for next.js storefront (#3758)
* docs: added node.js required version for next.js storefront

* changed required version of node across docs

* small fix
2023-04-07 09:24:13 +03:00
Shahed Nasser
f04f5c3498 docs(oas): fixed OAS comments for 1.8 endpoints (#3751)
* docs(oas): fixed oas comments for 1.8 endpoints

* generated changes
2023-04-06 18:28:27 +03:00