Commit Graph

3292 Commits

Author SHA1 Message Date
Shahed Nasser
7813664bba docs: added multi-warehouse how-to docs (#3747) 2023-04-06 13:49:35 +03:00
thephpguy
16f73baca1 docs: show how to use the sendgrid plugin dynamically. (#3679)
* Updating documentation to show how to use the plugin dynamically.

* Updating documentation to show how to use the sendgrid plugin dynamically.

* Update docs/content/plugins/notifications/sendgrid.mdx

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

* Revert "Updating documentation to show how to use the plugin dynamically."

This reverts commit d81c097b1a4637ca773f83f3aa5673bbed58e0f8.

* Adding language type to code sample

* fixed eslint errors

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-04-06 13:02:23 +03:00
Riqwan Thamir
713d85a92c chore(medusa): migrate SalesChannel / ProductCategory repository (#3728)
* chore: Migrate sales channel repository

* chore: migrated product categories

* chore: remove alias + rename changset

* chore(medusa): Cleanup publishable api key sales channel repo

* rm comment

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
2023-04-05 18:33:16 +02:00
Rares Stefan
30ee10fddd fix(react): Fix input type on useAdminUpdateReservation mutation hook (#3732)
The hook was incorrectly expecting the input type for the creation mutation.

Resolves CORE-1316
2023-04-05 14:24:32 +00:00
Patrick
0b3c6fde30 feat(codegen:test): coverage x-expanded-relation + x-codegen.queryParams (#3675)
## What

Adding tests to cover `x-expanded-relation` and  `x-codegen.queryParams` handling

## Why

The logic that processes these OAS extension can be complex to reason with. Therefore, we should have automated tests to prevent unintentional regression.

## How

* Focus on `getModels` method and its sub-routines.
* Add coverage to getOperation codegen parsing.
* Add coverage to model and operation spec property.
2023-04-05 14:01:29 +00:00
olivermrbl
dd1e86b0d4 Merge branch 'master' into develop 2023-04-05 15:12:47 +02:00
Oliver Windall Juhl
8761ec59c7 chore(workflows): Use our default starter in CI (#3730) 2023-04-05 14:47:53 +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
Shahed Nasser
a56f021718 docs: fixed order of admin upgrade guides (#3729) 2023-04-05 11:53:24 +03:00
olivermrbl
4c268238a4 Merge branch 'master' into develop 2023-04-05 09:18:48 +02:00
David Frnoch
f5e6eab14e docs: update implementation examples links to master branch (#3707) 2023-04-04 21:32:11 +03:00
github-actions[bot]
70435d5631 chore(docs): Generated API Reference (#3718)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-04 21:02:44 +03:00
github-actions[bot]
51d0b88404 chore(docs): Generated Docs Announcement Bar (automated) (#3717)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-04 21:02:20 +03:00
github-actions[bot]
198f39f8d4 chore(docs): Generated Services Reference (automated) (#3719)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-04-04 21:01:53 +03:00
Shahed Nasser
3838067a54 docs: updated meta image (#3720) 2023-04-04 21:01:17 +03:00
olivermrbl
66c59d54ff chore(release): v1.8.0 2023-04-04 18:35:27 +02:00
olivermrbl
1044a328b2 chore: Merge changesets 2023-04-04 18:19:20 +02:00
olivermrbl
f0d37b4d2d chore(release): v1.8.0-rc.8 2023-04-04 17:37:13 +02:00
Adrien de Peretti
4488ec6852 fix(medusa): Ignore categories seeding for sqlite (#3713) 2023-04-04 17:33:49 +02:00
olivermrbl
7a3194c313 chore(release): v1.8.0-rc.7 2023-04-04 16:07:48 +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
Patrick
089f1eb19e feat(tests): harmonize and clean-up yarn test commands convention (#3695)
## What

Harmonize and clean-up yarn test commands convention.

## Why

Current strategy to filter integration tests from unit tests was cumbersome to maintain. Also, some packages declared `test:unit` which ended up being an alias to `test`.

## How

* Remove all occurrences of `test:unit`
* Rename all `test` commands under `/integration-tests/**/package.json` to `test:integration`
* In the root `package.json`, rewrite `test:integration` command to run `turbo run test:integration`
* In the root `package.json`, remove filtering on the `test` command
* Introduce a new `test:integration` task in the Turborepo config.
2023-04-04 13:47:54 +00:00
Shahed Nasser
4bb1f833b1 docs: fixes to product category how-to and overview (#3702) 2023-04-04 12:33:27 +02:00
Philip Korsholm
748833383f hotfix(medusa): Temporary multi-warehouse support for draft orders (#3665)
* remove reservations from draft order creation and show correct inventory

* add changeset

* add integration tests

* adjust inventory on payment if no inventory service is installed
2023-04-04 11:36:51 +02:00
olivermrbl
bb9df09e37 chore(release): v1.8.0-rc.6 2023-04-03 18:05:12 +02:00
Shahed Nasser
7a9740bad7 docs: added store how-to guide for categories (#3690) 2023-04-03 18:50:04 +03:00
Patrick
d06ab92994 fix(medusa-react): export product-categories store hooks (#3689) 2023-04-03 17:32:02 +02:00
Philip Korsholm
7f87c4f2c8 fix(medusa-react): Query key invalidation (#3686) 2023-04-03 17:29:48 +02:00
Oliver Windall Juhl
a0c919a8d0 chore(medusa-cli): Add missing utils dep (#3688) 2023-04-03 17:18:38 +02:00
Shahed Nasser
47ccb0601c docs: added transaction orchestrator docs (#3687) 2023-04-03 16:32:11 +03:00
Shahed Nasser
e2322547c7 Merge doc changes 2023-04-03 15:39:27 +03:00
Shahed Nasser
c6bfad14d8 docs: add documentation for v1.8 (#3669) 2023-04-03 13:50:59 +02:00
Philip Korsholm
0cca13779d Fix(medusa): stocked quantity counting when listing products (#3684)
* count stocked quantity correctly when listing products

* add integration test

* add changeset
2023-04-03 11:07:56 +02:00
Kasper Fabricius Kristensen
788ddc0f43 fix(medusa, admin-ui, medusa-react): Gift Card update fixes and admin UI cleanup (#3676)
* fix gc domain issues

* add changeset

* update changeset

* more minor fixes, remove breadcrumb

* more cleanup

* address feedback
2023-04-02 19:04:32 +02:00
Philip Korsholm
a5ad6c0542 fix(admin-ui, medusa): Require name in create stock location (#3670)
* initial fix

* add changeset

* remove company from required fields
2023-04-02 11:57:41 +02:00
Philip Korsholm
eed784d7d0 fix(admin-ui, medusa): Allocations and fulfillments for variants without inventory items (#3660)
* fix fulfillment for order lines without inventory items

* fix summary card on order for variants without inventory items

* add changeset

* minor fixes

* remove variants without inventory items from allocate modal

* naming

* Update .changeset/kind-rings-wave.md

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

* remove line item indicator

* cleanup

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-03-31 15:53:56 +02:00
Nicklas Gellner
7625ed6c92 docs: add details about plugins page (#3668)
* Add Plugin Page

Make people aware that publishing a plugin on npm will let it be showcased on our Plugin Page.

* small changes to text

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-03-31 15:46:37 +03:00
Rares Stefan
ca3b32d53c fix(admin-ui): Make copy on manage locations modal better when no locations (#3666) 2023-03-31 14:38:01 +02:00
Carlos R. L. Rodrigues
bd12a95083 chore: Initialize method for modules (#3649)
What:
- Export initialize methods for all modules to be used as a package.
- Export `runMigrations` and `revertMigration` on modules that DB migrations are available

```typescript
import {
  initialize as initializeInventory,
  InventoryServiceInitializeOptions,
  runMigrations as runMigrationsInventory,
} from "@medusajs/inventory";

import { initialize as eventBusInitialize } from "@medusajs/event-bus-redis";

import { initialize as cacheInitialize } from "@medusajs/cache-redis";

const eventBus = await eventBusInitialize({
  redisUrl: "localhost",
});

const cache = await cacheInitialize({
  redisUrl: "localhost",
});

const options: InventoryServiceInitializeOptions = {
  database: {
    type: "postgres",
    url: `postgres://postgres:@localhost/inventory`,
  },
};

await runMigrationsInventory({
  options,
});

const inventoryService = await initializeInventory(options, {
  eventBusService: eventBus,
});

const sku = "sku_123"
const item = await service.createInventoryItem({
  sku,
});

cache.set(sku, { item });

```
2023-03-31 12:09:04 +00:00
olivermrbl
6f85a3d366 chore(release): v1.8.0-rc.5 2023-03-31 13:27:14 +02:00
Oliver Windall Juhl
809ab2e0eb chore: Merge master to develop (#3653) 2023-03-31 13:09:57 +02:00
Oliver Windall Juhl
b2e2eddcea chore: Update logo in README.md 2023-03-31 13:05:58 +02:00
Rares Stefan
7e1d8ef599 feat(admin-ui): Add new feature badge for categories and inventory (#3657)
* Add new feature badge for categories and inventory

* Add changeset
2023-03-31 12:29:46 +02:00
Oliver Windall Juhl
36337ef3b3 chore: Update README (#3643)
* chore: Update README

* Address feedback

* Update README.md

* Update README.md

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

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-03-31 12:26:20 +02:00
Oliver Windall Juhl
45fd0fb639 fix(admin-ui): Always show categories in product page (#3655)
* fix(admin-ui): Always show categories in product page

* Create .changeset/tasty-timers-drive.md

* add disabled classes
2023-03-31 12:09:11 +02:00
Kasper Fabricius Kristensen
4342ac884b feat(admin-ui, medusa): admin UI metadata (#3644) 2023-03-31 12:07:24 +02:00