Commit Graph
6501 Commits
Author SHA1 Message Date
Shahed NasserandGitHub d2c48228df chore(oas): [9/n] improve oas schemas (#9166) 2024-09-17 19:27:28 +02:00
Shahed NasserandGitHub b5ffed6973 chore(oas): [7/n] improve oas schemas (#9162) 2024-09-17 19:27:20 +02:00
Shahed NasserandGitHub 78eaed70e5 chore(oas): [8/n] improve oas schemas (#9163)
Improve OAS schemas [8/n]
2024-09-17 17:26:41 +00:00
Shahed NasserandGitHub cda5bbac78 docs: added documentation on instrumentation (#9160)
Added new documentation chapter on instrumentation and observability
2024-09-17 17:22:16 +00:00
Adrien de PerettiandGitHub c6795dfc47 feat(modules-sdk): Parse filters based on loaded modules graph (#9158) 2024-09-17 14:20:04 -03:00
Harminder VirkandGitHub 812b80b6a3 fix: migrate old links tables before performing a sync (#9164) 2024-09-17 19:20:35 +05:30
Harminder VirkandGitHub 261588f6b8 fix: import open telemetry dependencies lazily (#9161) 2024-09-17 16:28:28 +05:30
Harminder VirkandGitHub a872c76b85 refactor: rename remoteQuery to query and db instrumentation flag (#9159) 2024-09-17 14:09:02 +05:30
Riqwan ThamirandGitHub 987d007ba8 fix(core-flows): fixes case where inventory attempts delete when input is empty (#9156)
what:

- when an empty array is passed to the workflow, it attempts to delete all inventory locations. This PR adds a conditional to prevent it from happening.

RESOLVES CC-477

Fixes https://github.com/medusajs/medusa/issues/9154
2024-09-17 08:04:48 +00:00
github-actions[bot]andGitHub 175ca30f4f chore(docs): Generated References (#9153)
Generated the following references:
- `api_key`
- `auth`
- `auth_provider`
- `cart`
- `core_flows`
- `currency`
- `customer`
- `customer_models`
- `dml`
- `file`
- `fulfillment`
- `fulfillment_provider`
- `inventory_next`
- `modules`
- `modules_sdk`
- `notification`
- `order`
- `order_models`
- `payment`
- `payment_provider`
- `pricing`
- `product`
- `product_models`
- `promotion`
- `region`
- `sales_channel`
- `stock_location_next`
- `store`
- `tax`
- `tax_provider`
- `types`
- `user`
- `utils`
- `workflows`
2024-09-17 07:17:55 +00:00
Harminder VirkandGitHub 653a4bff71 feat: add tracing to workflow steps (#9140) 2024-09-17 11:35:38 +05:30
Riqwan ThamirandGitHub aa0928d437 feat(dashboard,types): added inbound shipping placeholder + shipping summary details (#9150)
what:

- shipping summary

<img width="1018" alt="Screenshot 2024-09-16 at 18 05 37" src="https://github.com/user-attachments/assets/d7e3d73c-bf11-42e5-90fb-03069437e96c">

- No Shipping options placeholder

<img width="781" alt="Screenshot 2024-09-16 at 18 06 11" src="https://github.com/user-attachments/assets/05ed682a-97cd-4e66-9af1-f1e77d3d47cb">
2024-09-16 20:50:41 +00:00
Carlos R. L. RodriguesandGitHub d6ff526820 fix(link-modules): table name (#9151)
FIXES: FRMW-2706
2024-09-16 19:08:42 +00:00
Shahed NasserandGitHub cb79a5dbff docs-util: fixes for circular references, PAK in examples, namespaces (#9091)
- Fix circular references in generated OAS comments by cloning objects
- Add publishable API key in the header of store cURL examples + change the admin authentication header to use bearer tokens.
- Add plugin to generate namespaces from the `@customNamespace` tag in TSDocs, this was available before but was removed.
- Other fixes related to re-using schemas, overwritten descriptions, and smaller fixes
2024-09-16 17:55:05 +00:00
Shahed NasserandGitHub 05c88268d3 oas: update authorization header in cURL examples (#9100) 2024-09-16 20:42:06 +03:00
8d3fb7fb2b docs: use require instead of import in medusa-config.js (#9102)
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-09-16 19:34:00 +02:00
Shahed NasserandGitHub 58f06be44d docs: update docs across projects following publishable API key change in store routes (#9098)
* docs: update docs across projects following publishable API key change in store routes

* rename env variable

* move subscribe route out of store
2024-09-16 16:42:08 +03:00
Carlos R. L. RodriguesandGitHub ef8dc4087e feat: run nested async workflows (#9119) 2024-09-16 13:06:45 +00:00
Shahed NasserandGitHub 0bcdcccbe2 docs: update query usage across docs (#9120)
WIP
2024-09-16 12:46:26 +00:00
Shahed NasserandGitHub 35ffaf73d7 docs: update store cURL examples in OAS (#9099) 2024-09-16 15:37:11 +03:00
Shahed NasserandGitHub 8584031041 docs: replace ModuleRegistrationName with Modules (#9142) 2024-09-16 15:30:03 +03:00
8829f89402 chore: query graph api (#9125)
CLOSES: FRMW-2704

**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-09-16 11:32:44 +00:00
Riqwan ThamirandGitHub 3e97a64b21 feat(core-flows,medusa,utils,types): adds delivered_quantity to order (#9130)
what:

- adds delivered_quantity to order


https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
2024-09-16 09:59:01 +00:00
Carlos R. L. RodriguesandGitHub 950cf9af79 chore: remove container registration name (#9137) 2024-09-16 06:22:24 -03:00
Shahed NasserandGitHub ab4a422fc8 docs: fix import of LinkDefinition (#9143) 2024-09-16 12:09:47 +03:00
Kasper Fabricius KristensenandGitHub a2545df823 fix(dashboard): max call error onKeyDown handler (#9141)
* fix(dashboard): max call error onKeyDown handler

* cleanup

* fix linting
2024-09-16 11:01:47 +02:00
Frane PolićandGitHub 9db334554f fix(core-flows): item id in reservations (#9097)
**What**
- on cart completion, when creating reservations, use line item id instead of cart item id
- NOTE: inventory reservation is now done after we create the order

---

FIXES CC-448
2024-09-16 07:33:12 +00:00
erickirtandGitHub 512c6fc8ab Fixed misleading LinkDefinition import from the wrong package (#9139)
It appears that `LinkDefinition` was imported from the incorrect package. From my understanding, `remote-link.d.ts` imports it from the correct location, but the tutorial does not.

```typescript
import { ILinkModule, LinkDefinition, LoadedModule, ModuleJoinerRelationship } from "@medusajs/types";
```

Additionally, I am seeking expert assistance with Medusa's architecture. If someone could reach out to me, I would greatly appreciate any guidance or direction on developing specific components for a complex multi-vendor shipping and shopping platform. My goal is to effectively utilize the Medusa architecture and contribute back to the community as much as possible.

Thank you to the entire Medusa team. I hope my contributions have been helpful to new developers enhancing their experience with Medusa.

email: erickirt582@gmail.com
2024-09-16 07:22:47 +00:00
Adrien de PerettiandGitHub 03d6b64a20 fix(): Query Missing bindings (#9131) 2024-09-13 18:22:38 +02:00
Harminder VirkandGitHub c97ea9546d feature: add tracing to remote query (#9128) 2024-09-13 14:09:59 +05:30
Shahed NasserandGitHub 2c8ae6073e oas: [6/n] improve oas schemas (#9122)
Improve oas schemas [6/n]
2024-09-13 07:23:09 +00:00
Shahed NasserandGitHub a7684b45f6 docs: add new events to reference (#9121) 2024-09-13 09:22:09 +02:00
Shahed NasserandGitHub 1eccf394df docs: added docs for deleting user of actor type (#9104)
- Added to general guide on creating actor type how to delete its user later.
- Added to restaurant delivery recipe how to delete a restaurant admin
2024-09-13 07:17:36 +00:00
Adrien de PerettiandGitHub f0c470cb08 chore(workflows-sdk): Update hook functions type (#9117)
RESOLVES FRMW-2703

**What**
Update types to reflect both invoke and compensate function for hooks
2024-09-13 07:11:45 +00:00
9cf0df53b5 feature: add telemetry to the HTTP layer (#9116)
---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
2024-09-13 12:36:54 +05:30
Shahed NasserandGitHub 8c2a5fbcf2 fix(types, medusa): fix http type of exchanges and claims (#9123) 2024-09-12 20:33:40 +03:00
Riqwan ThamirandGitHub 64d5b74c12 feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked (#9118)
what:

- module only deletes api keys once its revoked
- disables ui elements


https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30

RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Stevche RadevskiandGitHub c94f89610f fix: Remove test listeners after the event has happened (#9115) 2024-09-12 10:45:58 +02:00
420coupeandGitHub 4471b25ea7 add first class discount_subtotal var (#9112) 2024-09-12 09:39:01 +02:00
Harminder VirkandGitHub 2b8e15d2ec feat: introduce a thin wrapper on top of OpenTelemetry (#9109) 2024-09-12 12:59:49 +05:30
Adrien de PerettiandGitHub a9b559ab2e fix(dml): Throw when many to many are not configured properly (#9085)
**What**
When both sides of a many to many relationship do not define the mapped by option, it leads to misconfigured relations and a malformed SQL query. (ref. https://github.com/medusajs/medusa/issues/9075)

- When both mapped by are not defined, infer look up to try to identify the missing configuration if any
- Disallow defining many to many only on one side
2024-09-12 07:08:24 +00:00
Shahed NasserandGitHub 41fb2aacb0 docs: fixes to long-running workflows + relationship docs (#9101) 2024-09-12 09:51:00 +03:00
Frane PolićandGitHub 42cedd073b fix(dashboard): product create - ignored variants in datagrid (#9087)
* wip: fix mismatch in indexes

* fix: refactor
2024-09-12 08:47:04 +02:00
Riqwan ThamirandGitHub 24704f420a feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted (#9106)
* feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted

* chore: fix specs
2024-09-11 21:24:01 +02:00
Carlos R. L. RodriguesandGitHub e9280fb254 fix: product options event names (#9108) 2024-09-11 15:50:59 +00:00
Carlos R. L. RodriguesandGitHub 9a7daca21e feat(core-flows): product type, option and tag events (#9105) 2024-09-11 12:32:01 -03:00
McTom234andGitHub 5651e890dc fix: instanceof MedusaError does not work (#9094)
* fix(error): add custom name

* revert: remove changeset

as requested https://github.com/medusajs/medusa/pull/9094#discussion_r1753971768

* refactor(error): use object identifier to check error type
2024-09-11 17:21:44 +02:00
Adrien de PerettiandGitHub a01e7e4ffe chore: Register Query in container (#9103)
* chore(framework): Register the query

* chore(framework): Register the query
2024-09-11 15:08:46 +02:00
Riqwan ThamirandGitHub a729fb3fbb feat(utils,types,framework,medusa): store endpoints should require publishable key (#9068)
* feat(utils,types,framework,medusa): store endpoints should require publishable key

* chore: fix specs

* chore: fix more specs

* chore: update js-sdk

* chore: fix specs wrt to default SC

* chore: revert custom headers + change error message

* chore: fix specs

* chore: fix new store specs
2024-09-11 15:08:37 +02:00
Carlos R. L. RodriguesandGitHub fdd0543011 chore: joiner config entity property (#9084) 2024-09-11 06:25:25 -03:00