Commit Graph

2309 Commits

Author SHA1 Message Date
olivermrbl
9be3860fa5 chore(release): Publish 2022-09-14 10:08:29 +02:00
sabakhilji
2bfde7d787 docs: change title in Create a Service documentation (#2201)
Change title in Create a Service documentation
2022-09-14 10:37:47 +03:00
Sebastian Rindom
eb3b02baf4 fix(medusa): cart to be created with a country code (#2197)
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-09-13 19:19:06 +00:00
Shahed Nasser
3767cf26f7 docs: added returns user guide (#2199) 2022-09-13 18:30:48 +03:00
Shahed Nasser
a9e3c5e68a docs: added user guide for draft orders (#2198) 2022-09-13 17:47:41 +03:00
Shahed Nasser
99b51a90b7 docs: added "Manage Order's Fulfillments" user guide (#2196) 2022-09-13 16:31:43 +03:00
Shahed Nasser
27526fe879 docs: added user guide for manage payment (#2194) 2022-09-13 15:25:34 +03:00
Shahed Nasser
ac9e1aca6f docs: updated strapi docs (#2193) 2022-09-13 13:14:27 +03:00
Sushil Kumar
a12d737d1c docs: removed prerequisite section and added required/optional tool section (#2192)
* docs: rearranged and removed installation section

> Removed "Prerequisite Background Knowledge" section
> Created "Required Tools" and "Optional Tools" sections
> Moved "Node.js", "Git", and "Medusa CLI" to Required Section 
> "PostgreSQL" and "Redis" to "Optional Section"

* removed links from heading

* Removed Lists under required tools

* added text below headline
2022-09-13 13:14:06 +03:00
github-actions[bot]
6e0258f36c chore(docs): Generated API Reference (#2191)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-09-13 10:59:51 +03:00
Shahed Nasser
5661250049 docs: adjust summary length of endpoints (#2188)
* change titles for admin apis

* adjusted titles for storefront apis

* added a note about length in contribution guidelines

* adjusted title for get customer endpoint
2022-09-12 18:32:26 +03:00
Shahed Nasser
020331e3ea docs: added manage order details user guide (#2190) 2022-09-12 18:24:41 +03:00
Shahed Nasser
6c1a099aa7 docs: added edit section to manage regions user guide (#2189) 2022-09-12 17:30:29 +03:00
Shahed Nasser
79fb6c5f47 docs: added docs for cron job (#2186) 2022-09-12 15:42:08 +03:00
Gustavo Santos
8fa648b7b5 docs: Add links in the Payment Architecture Overview documentation to the entities in the Entities Reference (#2174)
* Add link to PaymentProvider

* Add link to PaymentSession

* Add link to Payment entity
2022-09-09 16:10:48 +03:00
Gustavo Santos
06818cf409 docs: Add links in the Shipping Architecture Overview documentation to the entities in the Entities Reference and fix a heading level (#2173)
* Add link to FulfillmentProvider

* Add link to ShippingProfile

* Add link to ShippinOption

* Fix heading level of ShippingMethod

* Add link to shippingMethod
2022-09-09 15:55:23 +03:00
Shahed Nasser
8bb3d63702 docs: added missing info for dry run (#2175) 2022-09-09 14:56:59 +03:00
Shahed Nasser
c66e908099 docs: add upgrade guide for 1.3.8 (#2170)
* add upgrade guide for 1.3.8

* added to sidebar

* added announcement bar
2022-09-09 13:26:19 +03:00
Shahed Nasser
866ba8287d docs: fixes for sidebar on small devices (#2161) 2022-09-07 19:46:15 +03:00
Shahed Nasser
65654c551f docs: adjust font size of sidebar items (#2158)
* adjust font size

* made sidebar narrower
2022-09-07 19:20:51 +03:00
Shahed Nasser
7b98e6e009 docs: added batch jobs concept documentation (#2160)
* added batch jobs concept doc

* added to sidebar
2022-09-07 19:16:33 +03:00
Shahed Nasser
a71cf60060 docs: restructured docs sidebar (#2156)
* restructured docs sidebar

* resolved incorrect URLs
2022-09-06 19:16:54 +03:00
github-actions[bot]
cd217c8a95 chore(docs): Generated Entities Reference (automated) (#2153)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-09-06 11:09:51 +03:00
github-actions[bot]
c65d6f0630 chore(docs): Generated Services Reference (automated) (#2152)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-09-06 11:06:32 +03:00
olivermrbl
70139d0bbb chore(release): Publish 2022-09-06 09:50:00 +02:00
olivermrbl
5ea1d98aa7 Merge branch 'master' into develop 2022-09-06 09:44:11 +02:00
Oliver Windall Juhl
e707b46499 fix(medusa-plugin-meilisearch): Update meilisearch dependency (#2140) 2022-09-05 18:15:09 +02:00
Oliver Windall Juhl
ad717b9533 chore(medusa): Remove deprecated dependency @hapi/joi (#2069) 2022-09-05 16:03:06 +02:00
Frane Polić
ba6416f095 feat(medusa): Convert SwapService to TypeScript (#2000)
**What**
- refactor swap service to typescript
- reimplement legacy methods
- use enums instead of magic strings

RESOLVES CORE-396

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-09-05 13:37:47 +00:00
github-actions[bot]
a1350bfaec chore(docs): Generated API Reference (#2143)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-09-05 10:23:46 +03:00
Shahed Nasser
4961aece1c docs: Add request and error examples (#2109) 2022-09-04 20:08:05 +02:00
Frane Polić
546a963f7b feat: import strategy - sales channels support (#2124)
**What**
- add support for specifying sales channel with import strategy
- additional:
  - refactor SC service to use `retrieve_` pattern
  - fix: pass arguments from `startServerWithEnvironment` to setup server
  - fix: minio undefined resolve/reject calls
  - fix: csv parser - detect missing columns from schema only if the column is required

**How**
- extending schema to expect sales channels columns in an import CSV file

RESOLVES CORE-304
2022-09-02 11:28:43 +00:00
Shahed Nasser
c0a002b262 docs: added link to user guide (#2129) 2022-08-30 17:04:19 +03:00
Shahed Nasser
f3170ba529 docs: rearrange user guide (#2127)
* added lists guide

* restructure existing guides

* added new pages after restructuring

* added blank pages + rearranged sidebar
2022-08-30 16:22:06 +03:00
Shahed Nasser
5a68665f33 docs: fix problem in starter URLs (#2128) 2022-08-30 16:21:46 +03:00
Oliver Windall Juhl
d14a0398fb fix(medusa): Delete ProductOption on Product without Variants (#1846)
**What**
Solves admin issue [166](https://github.com/medusajs/admin/issues/166)

Deleting a product option on a product without variants currently throws, because we are cleaning up variant options as well.  

**How**
Only do variant clean up, if product has variants
2022-08-29 18:51:45 +00:00
olivermrbl
37056b8066 Merge branch 'master' into develop 2022-08-29 18:51:34 +02:00
olivermrbl
2e1f5bffa0 chore(release): Publish 2022-08-29 18:39:07 +02:00
olivermrbl
b1e2830fb2 Merge branch 'master' into develop 2022-08-29 15:47:17 +02:00
Carlos R. L. Rodrigues
846ae637e2 fix(medusa): Hot reloading on Windows (#2105) 2022-08-29 15:46:15 +02:00
Oliver Windall Juhl
6a62a8f1ed chore: Remove lerna (#2116)
**What**
- Removes `lerna` as we are now using `changesets` + Turborepo to handle builds and releases
2022-08-29 13:26:58 +00:00
github-actions[bot]
4c18c9251c chore(docs): Generated Entities Reference (automated) (#2122)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-08-29 15:13:25 +03:00
github-actions[bot]
b98a09dd9f chore(docs): Generated API Reference (#2120)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-08-29 14:39:35 +03:00
Shahed Nasser
076b41bb89 fix(docs): API reference bugs (#2119)
* fixed shipping method tax line schema name

* added dry run option to build openapi script

* fixed summary of endpoints

* fixed title of endpoint
2022-08-29 14:25:17 +03:00
Shahed Nasser
890732d238 docs: fixed middleware used in the Storefront endpoint documentation. (#2118) 2022-08-29 13:45:55 +03:00
Trang Le
7fd65b1a41 docs: add instruction for setting up PostgreSQL with Docker (#2103)
* docs: set up Postgre with Docker

* docs: link to installing Postgres with Docker

* docs: add tab for Docker

* docs: remove link to setting up Postgres with Docker

* docs: make sure Docker Desktop is running

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

* docs: break commang flags into bullet list items

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-26 14:20:15 +03:00
olivermrbl
3a44dd5726 Merge branch 'master' into develop 2022-08-26 13:17:55 +02:00
Frane Polić
03221c4a19 feat: product import strategy (#1706)
* init: copy PI files

* feat: add subscribers, refactor strategies folder

* wip: strategies integration tests package

* fix: rename

* wip: use redis

* wip: use redis deps, redis setup in local tests

* fix: naming collision, medusa config

* fix: typing, update apply changes for new event ordering and reimplement interface

* feat: make redis container run in integration tests

* fix: missing yarn lock

* feat: redis setup v2

* fix: setup server imports

* fix: a lot of integration issues

* fix: a lot of integration issues v2, transform tags, fix `ops` object parsing

* wip: parsing product options

* feat: creating product and variants works, processing product/variant options, update schema

* fix: query keys, logic for finding existing variant

* fix: types

* feat: update product variant's options

* feat: parse MA records

* feat: creating/updating MA records, region detection, error handling

* feat: throw an error when creating an MA for nonexistent region

* refactor: remove unused methods

* refactor: use provided ids to track records, extract a couple of methods

* refactor: remove unused method

* refactor/wip: add initial comment for main methods

* refactor: replace usage of RedisJSON functionality with basic k/v api

* feat: async progress report

* types: define more precise types, cleanup

* feat: error handling

* feat: unit testing preprocessing

* feat: integration testing for CI, fix legacy bug where user is unable to create a variant if regional price is also sent as payload, add csv for integration tests

* fix: error throw for logs

* feat: add product endpoint snap

* refactor: remove log

* feat: add snaps, rebase

* refactor: add comments

* feat: snap update

* refactor: typo

* refactor: change error handler

* feat: Redis cleanup after the job is done

* testing :fix product unit test, remove integration snap, add inline object matcher

* testing: fix obsolete snaps

* refactor: update comments

* fix: rebase issue

* fix: rebase issue v2, remove log form an integration test

* fix: try reverting setup server

* fix: insert variants test

* refactor: don't pass tx manager, refactor methods

* refactor: don't use regionRepo, add `retrieveByName` to region repo

* refactor: don't use productRepo

* refactor: don't use `productVariantRepo`

* refactor: remove repo mocks from unit tests

* fix: product import unit tests

* feat: file cleanup on finalize, kill test logs

* wip: use files to persist ops instead of redis, move strategy class into `batch-job` folder

* fix: minio delete method, add file cleanup method to import, fix promise coordination

* fix: replace redis methods

* feat: store import ops as a file instead of Redis

* feat: test cleanup

* fix: change unit tests after Redis logic removal

* feat: use `results` for progress reporting, add `stat_descriptors` info after preprocessing, remove redis mentions

* feat: extract to other files, use directory from property, fix strategy loader to allow other files in `strategies` directory

* feat: fix instance progress counter

* fix: mock services types

* fix: update snaps

* fix: error handling stream, fix test file service name generation

* fix: remove dir with tmp files after testing

* fix: new yarn.lock after rebase

* fix: remove log, change object shape

* fix: add DI types

* refactor: remove container as a csv parser dep

* fix: remove seeder, change typings

* refactor: reimplement `retrieveByName` in the region service

* fix: unit tests typings

* fix: remove ts-ignore, complete typings for csv parser validators

* fix: don't keep track of progress since it is redundant and only keep track of `advancement_count`

* fix: return of the batch job seeder

* fix: update find region by name method

* fix: update types for service typings

* fix: update redis type usage

* fix: update unit tests file

* fix: unit tests

* fix: remove redis from integration test

* feat: refactor region retrieval by name

* feat: refactor product option update

* fix: remove repo import

* fix: return redis in test

* fix: handle stream error

* fix: tmp data cleanup

Co-authored-by: fPolic <frane@medusajs.com>
2022-08-25 22:16:51 +02:00
Shahed Nasser
bf9bf7abff docs: added "Sales Channels" user guides (#2101)
* added overview user guide

* added manage user guide
2022-08-25 18:36:01 +03:00
github-actions[bot]
605fa625a2 chore(docs): Generated API Reference (#2100)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-08-25 18:31:58 +03:00