Commit Graph
7193 Commits
Author SHA1 Message Date
Shahed NasserandGitHub b41a4ceea8 docs: add documentation for check constraints (#10425) 2024-12-04 20:04:36 +02:00
Shahed NasserandGitHub a943dfb529 docs: revise define brand link (#10434) 2024-12-04 19:51:28 +02:00
olivermrbl 648be3cde3 chore: Release 2024-12-04 18:44:27 +01:00
olivermrbl 4723acd949 chore: Version packages 2024-12-04 18:36:57 +01:00
Shahed NasserandGitHub 51b8b39525 docs: revise extend models (features) (#10429) 2024-12-04 18:27:32 +02:00
Oli JuhlandGitHub ff4663713a fix(core-flows): Listing return shipping options (#10432) 2024-12-04 17:21:07 +01:00
Kasper Fabricius KristensenandGitHub 3d5ca155e3 fix(dashboard): Prevent order details page from crashing on no region (#10431)
Resolves SUP-356
2024-12-04 16:18:54 +00:00
Kasper Fabricius KristensenandGitHub c6f955f0b5 fix(dashboard): Add Shipping Profile metadata route (#10430) 2024-12-04 17:09:44 +01:00
Shahed NasserandGitHub 665eea8e75 docs: fixes and improvements to Sanity guide (#10414) 2024-12-04 17:31:20 +02:00
Frane PolićandGitHub 340769595a feat(admin, js-sdk, types): update order forms (#10418)
* feat: edit shipping, billing and email forms

* feat: timeline history, update change model, update tests

* fix: address comments

* fix: invalidation, translation schema, update label

* fix: old/new
2024-12-04 14:56:40 +01:00
Kasper Fabricius KristensenandGitHub a5263083fa fix(framework): Ensure that CORS and Auth middleware is applied for routes only defined in middlewares.ts (#10339) 2024-12-04 14:49:43 +01:00
Shahed NasserandGitHub 582f52b31d docs-util: add user, pricing, and auth as modules with DML (#10423) 2024-12-04 12:54:19 +02:00
Carlos R. L. RodriguesandGitHub 1f3754a75e chore(workflows-sdk): add unit test (#10419) 2024-12-04 10:32:03 +00:00
Shahed NasserandGitHub 563b725ed6 docs: revise brand API route (#10352)
* docs: revise brand API route

* address feedback

* add directory images

* change sidebar title

* address comments
2024-12-04 12:19:42 +02:00
Kasper Fabricius KristensenandGitHub a5c8cc992c fix(dashboard): Prevent language ptBR from breaking dashboard (#10422) 2024-12-04 10:44:04 +01:00
e8f4f7ea2b fix(dashboard): Add default value to inventory item combobox (#10412)
**What**
- Resolves CMRC-761
- Fixes TS errors in the same file.

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-12-03 18:03:54 +00:00
Kasper Fabricius KristensenandGitHub 18583ed567 fix(dashboard): Fix broken number input in adjust inventory form (#10416) 2024-12-03 18:36:20 +01:00
Kasper Fabricius KristensenandGitHub 4e7d242a78 fix(stock-location): Fix export of StockLocation module (#10406) 2024-12-03 18:35:52 +01:00
Frane PolićandGitHub ab948b7c65 feat(core-flows,medusa,order,types): update orders (#10373)
**What**
- add order update endpoint
- add workflows and steps for updating orders
- add `registerChanges` method to Order module + workflow step

---

CLOSES CMRC-633
2024-12-03 17:15:26 +00:00
Lucien Blunk-LalletandGitHub 56ae076fd2 Fix French translation typos (#10348)
Hello,

This is just a small PR to fix a few typos with the French translation, especially with the template strings.

Best regards.
2024-12-03 11:35:37 +00:00
Shahed NasserandGitHub 7643ed048b docs: add missing import to db operations documentation (#10390) 2024-12-03 12:31:41 +02:00
Shahed NasserandGitHub 51de20a64d docs: remove v2 branch of next js starter installation (#10402) 2024-12-03 12:31:07 +02:00
Marco SanninoandGitHub 56e9acbed8 feat: added Italian translations (#10362) 2024-12-02 19:34:27 +01:00
Karl HofmannandGitHub 12884966e3 German language corrections (#10394) 2024-12-02 17:57:30 +01:00
Harminder VirkandGitHub 3e98364bd1 feature: add support for check constraints in DML (#10391) 2024-12-02 17:59:50 +05:30
Adrien de PerettiandGitHub ac79585232 feat(user): Migrate user module to DML (#10389)
* feat(user): Migrate user module to DML

* Create rotten-tigers-worry.md

* update indexes names following conventions

* remove duplicate modifier
2024-12-02 12:36:40 +01:00
Adrien de PerettiandGitHub 4ef353a7b9 feat(auth): Migrate auth module to DML (#10387)
* feat(auth): Migrate auth module to DML

* Create lazy-eagles-bow.md
2024-12-02 11:58:04 +01:00
913cf15e2b refactor: migrate pricing entities to DML models (#10335)
Fixes: FRMW-2810

## Breaking changes
There is only one breaking change

- The `min_quantity` and `max_quantity` properties are now consistently typed as numbers. Earlier, it was [typed as numbers](https://github.com/medusajs/medusa/blob/develop/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts#L68-L69) in some API responses and as [string in others](https://github.com/medusajs/medusa/blob/develop/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts#L186-L187). I did not go to the bottom of this inconsistency, but the tests reveals them.

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-12-02 09:44:41 +00:00
Shahed NasserandGitHub b4d6a4b3f0 docs: intro + basic chapter fixes (#10361) 2024-12-02 09:31:47 +02:00
Adrien de PerettiandGitHub a1f36caaf7 chore(utils): Ensure DML name convention follow the same as the class name for simplicity (#10370)
**What**
DML class name and mikro orm entity name are different, it was ok and the idea was to accept that and do the transformation when needed. But since class name are usually upper case first we decided to re integrate that convention in the DML class name as well to simplify consumption of the dml name without having to worry about the normal case
2024-12-02 04:57:23 +00:00
Riqwan ThamirandGitHub 11bd556133 feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context (#10374)
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context

* chore: add test for shipping options returning free shipping
2024-12-01 20:59:26 +01:00
Oli JuhlandGitHub eacd691951 fix: Ensure tax lines are generated for all items and shipping methods in cart (#10372)
* fix: Generate tax lines for all items in cart

* fix: Correct test
2024-12-01 14:50:38 +01:00
Kasper Fabricius KristensenandGitHub 94f6265dfc fix(ui,icons,ui-preset): Fix CodeBlock and Command components (#10369) 2024-11-29 17:30:25 +01:00
Riqwan ThamirandGitHub 5719e825ca feat(core-flows,types,medusa): ability to update/create custom shipping prices (#10368) 2024-11-29 15:04:33 +01:00
ed11834d6e Fix(dml): DML default/nullable management (#10363)
RESOLVES FRMW-2813

**What**
Extract what we have done in the order module DML migration.
This includes all the changes we discussed around default value and nullable management

From now on, when the default is being set through the DML on a property, no default initializer will be created, this means that when a mikro orm class is being instantiated, no default will be applied at instantiation time. This fixes the issue when retrieving data and not selecting fields that have a default. The default initializer was taking the relay making you think the data was present except that it was the value of the default initializer. From now on, the default value is applied as follows
- db column default
- before flush
- on persist
The same applies for nullable properties/columns

Co-authored-by: Harminder Virk <1706381+thetutlage@users.noreply.github.com>
2024-11-29 11:46:26 +00:00
Harminder VirkandGitHub 194361b95a fix: do not rely on model loading order to find an implicit owner (#10360) 2024-11-29 16:02:34 +05:30
Shahed NasserandGitHub ef6dc53b87 docs: add note about retryInterval making workflow long-running (#10355) 2024-11-29 09:25:03 +02:00
Shahed NasserandGitHub 065146c19d docs: document permanentFailure (#10356) 2024-11-29 09:24:29 +02:00
Riqwan ThamirandGitHub 324b4ab438 feat(pricing, types): add price rule operators to price calculations (#10350)
what:

- adds price rule operators when doing price calculations
- rules now accepts a key where the value can be an array of objects `({ operator: string, value: number })`
  - validation for available types of operator and value to be a number
```
await service.createPriceSets({
  prices: [
    {
      amount: 50,
      currency_code: "usd",
      rules: {
        region_id: "de",
        cart_total: [
          { operator: "gte", value: 400 },
          { operator: "lte", value: 500 },
        ]
      },
    },
  ]
})
```
- price calculations will now account for the operators - lte, gte, lt, gt when the price context is a number

RESOLVES CMRC-747
2024-11-28 20:48:00 +00:00
Frane PolićandGitHub 805fe4b1db fix(order): archive order status update (#10340)
**What**
- array was passed as an id when updating order status upon archive

---

RESOLVES SUP-305
CLOSES https://github.com/medusajs/medusa/issues/10328
2024-11-28 16:51:02 +00:00
Shahed NasserandGitHub 768f970926 docs: changes to deployment + remove admin deployment guides (#10345)
* docs: change headings and text in deployment

* remove admin deployment guide

* generate changes
2024-11-28 14:48:10 +02:00
Shahed NasserandGitHub aca7907d81 docs: revise create brand workflow (#10346)
* docs: revise create brand workflow

* small fix
2024-11-28 14:47:59 +02:00
Harminder VirkandGitHub d57c739052 fix: do not initialize FKs to null (#10337) 2024-11-28 17:15:08 +05:30
Stevche RadevskiandGitHub f7279f1b96 fix: Use the correct defaults for the invite token expiry (#10344) 2024-11-28 12:06:32 +01:00
Shahed NasserandGitHub aced04e182 docs: revised build custom features chapter (#10338) 2024-11-28 12:28:27 +02:00
Shahed NasserandGitHub 441b7adaa7 docs: revise implement brand module (#10341) 2024-11-28 12:27:02 +02:00
Riqwan ThamirandGitHub 3b1a63eca7 feat(pricing,utils,types): add operator field to price rule (#10315)
what:

- adds an operator field to price rule with specific operator fields

RESOLVES CMRC-746
2024-11-28 09:23:26 +00:00
Shahed NasserandGitHub 2838100efc fix(product): change export name of ProductImage (#10326)
Change export of `Image` to `ProductImage` to match the data model's name.
2024-11-27 17:35:06 +00:00
Shahed NasserandGitHub 030b0cc095 docs: generate references manually (#10325)
* docs: generate references

* prep changes
2024-11-27 19:27:25 +02:00
Shahed NasserandGitHub 137913b469 docs: update many-to-many docs (#10323)
* docs: update many-to-many docs

* added note about version

* fix eslint error
2024-11-27 19:11:23 +02:00