Commit Graph

6926 Commits

Author SHA1 Message Date
Harminder Virk
3704700a49 chore: remove husky (#9967)
Fixes: FRMW-2765, FRMW-2760

Since no one is using it for a very long time we can get rid of it

Closes: #9867
2024-11-07 07:54:30 +00:00
olivermrbl
8feb589659 chore: Release 2024-11-06 21:47:01 +01:00
Oli Juhl
441004cc21 chore: Update auth flow (#9959) 2024-11-06 21:21:45 +01:00
Oli Juhl
505768dd9f fix: Product type tax overrides (#9951)
* fix: Make product type tax override work

* fix: Make product type tax override work
2024-11-06 20:33:40 +01:00
Frane Polić
aa78fbf546 fix(types): add display_id to OrderDTO (#9953)
FIXED CMRC-644
2024-11-06 18:21:17 +00:00
Carlos R. L. Rodrigues
898a437db0 chore(locking): disable default provider warning (#9956) 2024-11-06 14:06:01 -03:00
Harminder Virk
b0f416769f fix: do not set default host to localhost (#9957)
Fixes bug introduced by https://github.com/medusajs/medusa/pull/9912

By default the Node.js server listens on the `0.0.0.0` host. However, the related PR changes the host to `localhost` and hence resulted in an unwanted breaking change. This PR reverts the default value assignment and let Node.js decide the host when not explicitly specified.
2024-11-06 17:04:49 +00:00
Oli Juhl
c1c85ef952 fix(core-flows,medusa): Include region_id in shipping option retrieval (#9929)
### What
Include `region_id` when retrieving shipping options for a cart

### Why
Otherwise, region-specific prices will never show in the Store API

Closes CMRC-655 https://github.com/medusajs/medusa/issues/9906
2024-11-06 15:59:47 +00:00
Harminder Virk
c9a2b42252 fix: log cause property from the error (#9944)
Fixes: FRMW-2762

This PR fixes the error reporting to include the original error message and the error cause when logging it using the JSON formatter of Winston.

> Side note: There is still a lot of room for improvements in our logging. But that require a overhaul cleanup in multiple places and will require dedicated loggers for commands and APP and special treatment for pretty printing errors.

## Error output in JSON format

**Before**
![CleanShot 2024-11-06 at 13 12 32@2x](https://github.com/user-attachments/assets/a986d33c-9c30-45bc-816d-e9aa142ea097)

**After**
![CleanShot 2024-11-06 at 13 11 28@2x](https://github.com/user-attachments/assets/15430e55-40b3-4d1c-b91d-3b3b4f9d0d39)
2024-11-06 15:43:54 +00:00
Stevche Radevski
b3cbc160eb fix: Default to a relative path for the admin backend URL (#9947) 2024-11-06 15:08:38 +01:00
Govind
4f4b0ddda2 Update route.ts (#9914)
It was sending two confirmation messages in case of an error

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
2024-11-06 10:58:36 +01:00
Shahed Nasser
37eeaa84a2 docs: small improvement to first customization guide (#9843)
Added a bit more context and what you'll build in the first customization guide and why it's powerful.

Closes DX-1044
2024-11-06 09:09:35 +00:00
Stevche Radevski
30edc8fa40 fix: Support relative path in SDK (#9942) 2024-11-06 09:45:59 +01:00
Adrien de Peretti
de228d209f fix(telemetry): Pointing and resolving packages wrongly (#9939)
FIXES FRMW-2764

**What**
- Fix wrong CLI package
- Fix package.json path resolution
2024-11-06 08:43:04 +00:00
Oli Juhl
674c86eaa0 chore: Use PR author name (#9940) 2024-11-05 19:15:53 +01:00
Adrien de Peretti
879ce33090 fix(utils/dml): set-relationship graphql generator from DML wrong managed belongsTo (#9932)
**What**
Currently, when setting a `belongsTo` relationship on the DML with the otherside being `hasMany` it result in a wrongly generated gql output making the belongs to being a collection of the relation instead of the relation directly. This pr fixes this issue
2024-11-05 14:14:28 +00:00
Adrien de Peretti
bbf4af1725 fix(types): Prev limit wrong values (#9935)
**What**
The values are wrongly set which can lead to infinite depth iteration

**Note**
This will change on how we manage those cases in the future but currently it fixes an issue
2024-11-05 14:14:06 +00:00
Oli Juhl
275a835726 chore: Sync PR and Discussions to Linear (#9938)
* chore: Sync PRs and Discussions to Linear

* chore: Sync PRs and Discussions to Linear
2024-11-05 14:56:10 +01:00
Harminder Virk
293b10cfc5 feat: move to a form based bug report template (#9930) 2024-11-05 14:44:52 +05:30
Kasper Fabricius Kristensen
d19d7a66ff fix(dashboard): Allow using enter key to create newline in Textarea (#9913)
* fix(dashboard):Allow using enter key to create newline in Textarea

* update scheam file
2024-11-05 08:54:28 +01:00
Adrien de Peretti
c0368cca28 fix(workflows-sdk): Paralellize steps rollback issue with config (#9921)
* fix(workflows-sdk): Paralellize steps rollback issue with config

* Create tall-starfishes-travel.md
2024-11-05 08:54:04 +01:00
Adrien de Peretti
16b4cc433e fix(utils): Mikro orm repository update many to many should detach all items by default (#9917)
* fix(utils): Mikro orm repository update many to many should detach all items by default

* Create shiny-spiders-raise.md
2024-11-05 08:53:55 +01:00
Frane Polić
61cb97da26 fix(dashboard): truncate price cell titles (#9715)
Before:
![Screenshot 2024-10-22 at 17 14 56](https://github.com/user-attachments/assets/7ec74e70-c69f-4346-b15a-665fed27e688)

After
![Screenshot 2024-10-22 at 17 26 15](https://github.com/user-attachments/assets/b353c40b-7451-4bdf-9459-1494c18c7531)


Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-11-04 11:01:00 +00:00
Harminder Virk
ab90900d40 fix: disable admin when running integration tests (#9915) 2024-11-04 16:20:41 +05:30
Kasper Fabricius Kristensen
e2058683f4 chore(dashboard): Setup test and script for validating i18n (#9799)
**What**
- Adds a test that validates that en.json and $schema.json matches, this will help us catch missing translations, and prevent us from forgetting to update the schema when we delete/add new keys.
- Adds a script for validating translations against the translation schema. This can be used to validate that community PRs for i18n contain all the required keys. To use the script you can run `yarn i18n:validate <file name>` e.g. `yarn i18n:validate da.json` which will look for a da.json file in the translation folder, and validate it against the schema. We handle this with a script as we don't want to do so through a test. Doing it with a test would mean that if we update the schema, we would also have to update all translations files that we don't maintain ourselves. The purpose of the script is just to allow us to easily review community PRs and also as a tool for people opening PR's to check their translations agains the schema, as it will print missing/additional keys.
- Also adds a script to generate a schema from the en.json file. After adding/deleting keys to en.json you should run `yarn i18n:generate`.
2024-11-04 09:45:07 +00:00
Harminder Virk
300ef8dbb9 fix: consider --host flag and HOST env variable (#9912) 2024-11-04 14:56:57 +05:30
Frane Polić
dd93d8de6e fix(dashboard): tax override reference (#9796)
* fix: tax override reference

* fix: create rest

* fix: comment out unsupported references for now

* fix: edit form
2024-11-04 09:05:46 +01:00
Frane Polić
1889180319 fix(core-flows, dashboard): adjust stock levels when doing partial fulfilments (#9736)
* fix: correctly update stock location when partial fulfillemnt is created

* fix: update test

* fix: count reserved quantity of the item as available quantity for fulfillment

* fix: refresh reservations when order fulfillment is created

* feat: add check for reservation quantity

* feat: add a test case
2024-11-04 09:04:58 +01:00
Kasper Fabricius Kristensen
a0034a0fef fix(dashboard): Allow float values for product prices (#9859) 2024-11-04 09:04:29 +01:00
0xflotus
7b51204ef3 fix(docs): small error (#9868)
* fix(docs): small error

* fix(docs): small typo error
2024-10-30 09:17:35 +01:00
Ikko Eltociear Ashimine
ccec9b8750 chore: update common.ts (#9818)
addreses -> address
2024-10-28 14:30:28 +00:00
Shahed Nasser
4d7cb54762 docs: add a note in 404 page about v1 docs (#9815) 2024-10-28 14:42:22 +01:00
Ratnadeep
c8d79c4ad4 docs : Update page.mdx referring (#9820)
Fix  The correct import is from "@medusajs/framework". referring to the issue #9810
2024-10-28 04:50:27 +00:00
Shahed Nasser
43a44cf426 chore(js-sdk,types): add tsdocs for admin JS SDK methods [4/n] (#9745)
Add TSDocs to admin JS SDK from notification to payment

[4/n]
2024-10-28 04:42:17 +00:00
github-actions[bot]
7c629f494f chore(docs): Update version in documentation (automated) (#9800)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-10-26 16:54:56 +00:00
Shahed Nasser
df5dc65e2a docs: added documentation on environment variables (#9798) 2024-10-26 14:35:38 +00:00
github-actions[bot]
c4cd2c2d7c chore(docs): Generated References (automated) (#9803)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2024-10-26 16:33:31 +02:00
github-actions[bot]
1c046a14ac chore(docs): Generated UI Reference (automated) (#9801)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2024-10-26 16:33:11 +02:00
olivermrbl
a3f71dcdb0 chore: Release 2024-10-25 17:23:25 +02:00
olivermrbl
4ccab16336 chore: Version packages 2024-10-25 17:19:36 +02:00
Frane Polić
ddf3306af1 feat(dashboard, medusa, types): orders list on customer details page (#9790)
**What**
- display orders list on customer details

---

CLOSES CC-625
2024-10-25 11:31:30 +00:00
Shahed Nasser
f40ea9cfbf chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n] (#9788)
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n]

* add api route link
2024-10-25 13:02:17 +03:00
Frane Polić
259d050e53 feat: customer bulk endpoint form managing customer groups (#9761)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-10-25 11:55:57 +02:00
docloulou
bb6d7c6641 feat: Allow customer metadata update (#9780)
* Allow customer metadata update 

See issue 9779
https://github.com/medusajs/medusa/issues/9779

* add integration tests for customer metadata

- Implemented integration tests to verify customer creation with metadata.
2024-10-25 11:28:34 +02:00
Adrien de Peretti
f295596df2 fix(orchestration): Ids wrongly processed when using operators map (#9781)
* fix(orchestration): Ids processing when using operators map

* fix(orchestration): Ids processing when using operators map

* address feedback

* address feedback
2024-10-25 11:10:35 +02:00
Oli Juhl
b9c787ac2b chore: Add fixed packages in changeset (#9752)
* chore: Add fixed packages in changeset

* chore: add dev-cli to changeset packages

* chore: Exclude @medusajs/ui
2024-10-25 11:01:17 +02:00
Shahed Nasser
fd26839616 docs: fixes to ui docs (#9759) 2024-10-25 11:56:54 +03:00
Shahed Nasser
bf18d73ff4 docs: fix complete cart workflow usage in marketplace recipe (#9771)
- Fix usage of `completeCartWorkflow` which now returns an ID instead of the full order
- other: improvements in config across projects
2024-10-25 08:53:42 +00:00
Frane Polić
853dd38044 fix(core-flows, dashboard): products category batch issue (#9766)
FIXES CC-624
2024-10-25 08:52:05 +00:00
github-actions[bot]
d40499ca6a chore(docs): Generated References (automated) (#9772)
Generated the following references:
- `auth_provider`
- `core_flows`
- `js_sdk`
- `medusa_config`
- `modules`
- `payment_provider`
- `tax`
- `tax_provider`
- `types`
- `workflows`

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-10-25 07:08:57 +00:00