Kasper Fabricius Kristensen
c28d0db164
fix(product, dashboard): manual cleanup of uploaded images ( #10254 )
...
* manual cleanup
* add changeset
* remove thumbnail on deletion
2024-11-25 11:44:22 +01:00
olivermrbl
4245312d8d
chore: Version packages
2024-11-25 09:57:00 +01:00
Oli Juhl
29ce10b09e
fix(product): Update images before adding not null constraint ( #10248 )
2024-11-25 08:39:43 +00:00
Kasper Fabricius Kristensen
1659c9be5d
feat(product,dashboard): Allow re-ordering images ( #10187 )
...
* migration
* fix snapshot
* primarykey
* init work on dnd
* progress
* dnd
* undo changes
* undo changes
* undo changes
* undo changes
* fix firefox issue
* lint
* lint
* lint
* add changeset
* undo changes to product module
* set activator node
* init work on service layer
* alternative
* switch to OneToMany
* add tests
* progress
* update migration
* update approach and remove all references to images in product.ts tests
* handle delete images on empty array
* fix config and order type
* update changeset
* rm flag
* export type and fix type in test
* fix type
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-11-25 09:03:10 +01:00
Adrien de Peretti
1f44281ed6
fix(product): Update full descendant tree mpath when updating parent category id ( #10144 )
...
FIXES FRMW-2774
**What**
When updating the parent category id, all descendant mpath should be re computed
2024-11-19 12:51:34 +00:00
Adrien de Peretti
2822972e04
fix(product): wrong snapshot name and inexistent script ( #10119 )
...
* chore(product): Rename wrong snapshot name and add missing elements
* rm non existing command
* Create proud-pigs-deny.md
2024-11-15 15:53:41 +01:00
Adrien de Peretti
1afc577e54
feat(product): Make product option value linkable ( #10116 )
...
RESOLVES FRMW-2799
**What**
Make the product option value linkable
2024-11-15 11:32:55 +00:00
olivermrbl
d5605656ae
chore: Version packages
2024-11-12 10:10:07 +01:00
olivermrbl
ecece05b72
chore: Version packages
2024-11-11 10:58:20 +01:00
olivermrbl
8feb589659
chore: Release
2024-11-06 21:47:01 +01:00
olivermrbl
4ccab16336
chore: Version packages
2024-10-25 17:19:36 +02:00
Shahed Nasser
92bbd7953b
chore: update links to v2 docs in source code and comments ( #9732 )
2024-10-24 15:18:38 +03:00
olivermrbl
2fbebb60e3
chore: Release
2024-10-22 20:43:47 +02:00
Oli Juhl
c3418a2b93
chore: Prepare versions + changeset ( #9707 )
...
* chore: Prepare version + changeset
* chore: Bump dependencies
* chore: Update lock-file
2024-10-22 20:31:33 +02:00
Stevche Radevski
e81dbc754c
chore: Correctly assert test ( #9695 )
2024-10-21 18:07:13 +00:00
Adrien de Peretti
45df24f707
fix(product): Category repository missing ontext ( #9688 )
...
**What**
- Fix product category repository missing context passed to down level methods
- Ensure the base repository when getting the active manager returns a fresh one if possible instead of the global one in order to prevent shared entity map by mistake
2024-10-21 11:42:17 +00:00
Frane Polić
06536e7655
fix(product): options validation if ids are same ( #9622 )
...
**What**
- fix validation of existing variant with options on update if the ids are same
---
FIXES CC-60
CLOSES https://github.com/medusajs/medusa/issues/9620
2024-10-17 06:55:16 +00:00
Harminder Virk
68560787e5
breaking: rename package names to be consistent and under @medusajs scope ( #9580 )
2024-10-16 22:28:09 +05:30
Frane Polić
48cc00e991
feat(core-flows, product): options checks on product create/update ( #9171 )
...
**What**
- validate that variants are unique with respect to options on product update/create and variant update/create
- validate that the product has options upon creation
- ensure variants have the same number of option values as the product has options
- admin error handling
- update tests
---
FIXES FRMW-2707 CC-556
2024-10-15 09:06:51 +00:00
Harminder Virk
ad322f2760
breaking: remove deprecated commands and code ( #9521 )
...
* breaking: remove deprecated commands
* feat: remove deprecated code and usages
* refactor: remove more logic around default relations
* fix tests
* remove log
* fix: remove defaultFields usage
* fix: add back accidentally removed code
* refactor: implement feedback
* feat: add --cluster flag to the start command
* refactor: assign limit to defaultLimit property
* fix: breaking code because of removed check
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2024-10-14 20:11:34 +05:30
Adrien de Peretti
d8b7f90689
chore(product): Update the events emitted from the product module ( #9557 )
2024-10-14 09:19:32 -03:00
Adrien de Peretti
1d8939df3a
chore(): Allow to register modules through array ( #9522 )
2024-10-11 15:17:00 +02:00
Oli Juhl
853187410e
fix(product): Always add q if defined ( #9505 )
2024-10-09 11:52:02 +02:00
Harminder Virk
48e00169d2
breaking: move shared HTTP utils to the framework ( #9402 )
...
Fixes: FRMW-2728, FRMW-2729
After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.
- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-03 09:42:00 +00:00
Harminder Virk
2d1cf12dac
feature: Add MikroORM CLI wrapper to bypass hardcoded module system ( #9426 )
...
FIXES: FRMW-2727
MikroORM (with version 5.9) has [hardcoded the TypeScript module](https://github.com/mikro-orm/mikro-orm/blob/5.x/packages/core/src/utils/ConfigurationLoader.ts#L138-L139 ) system to `commonjs`, which makes it incompatible with the module system we are using, ie `Node16`.
So, in order to continue using the Mikro ORM CLI within our modules, we will have to monkey-patch the block of code responsible for configuring `ts-node`. However, the monkey-patching must be done before their CLI gets booted.
As a result of this, we have to create a wrapper CLI on top of Mikro ORM CLI that performs the following steps.
- Monkey-patch the relevant code
- Register Mikro ORM CLI as the second step.
Due do this, we will have to use this new wrapper CLI within the modules, which is exposed as `medusa-db`. Maybe, `medusa-db` is not a great name, so please send your suggestions.
2024-10-03 04:51:20 +00:00
Harminder Virk
48bea267dc
chore: perform dependencies scan and fix all dependencies ( #9296 )
2024-09-26 14:14:38 +05:30
Adrien de Peretti
e096feb7d5
chore: Update modules deps ( #9286 )
2024-09-26 11:14:35 +05:30
Adrien de Peretti
90d530565b
chore(): Remove default limit from the build query ( #9257 )
...
* chore(): Remove default limit from the build query
* rm take: null
* fix tests
* fix tests
* fix db usage
* fix typo
* rm unsused template arg
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
2024-09-24 16:06:45 +02:00
Harminder Virk
9e711720dd
chore: upgrade moduleResolution to Node16 ( #9269 )
2024-09-24 17:19:20 +05:30
Adrien de Peretti
a734184538
chore(): Handle medusa service base methods events ( #9179 )
...
* chore(): Handle medusa service base methods events
* cleanup
* cleanup
* fix import
* fix decorator order
* fixes
* apply default event emition
* fix binding
* fix binding
* align tests with new event emition
2024-09-18 17:57:00 +02:00
Adrien de Peretti
81d3ae01c7
chore: Cleanup manager decorator usage ( #9181 )
2024-09-18 14:16:20 +02:00
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Carlos R. L. Rodrigues
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Adrien de Peretti
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Carlos R. L. Rodrigues
fde2a9b9be
feat(product): product option value methods ( #9004 )
2024-09-05 11:03:29 +00:00
Adrien de Peretti
5bec38538a
chore: Treat internal event differently, primarely do not display info logs for those events ( #8767 )
...
* chore: Treat internal event differently, primarely do not display info log for those events
* revert doc
* add few tests
* only set internal option if present
* revert to previous condition
* start including feedback after discussion
* include feedback
* fix modules integration tests
* fix modules integration tests
* fix event bus local
2024-08-28 16:46:40 +02:00
Alexander Nortung
afd6fdcdf6
fix: product category types ( #8833 )
2024-08-28 11:13:03 +02:00
Alexander Nortung
ac18b5d35f
fix(product): Add metadata to property to product category data model ( #8766 )
...
* fix: Add metadata to property to product category data model
* chore: Add migration for adding metadata column to product category
* chore: Added test for product category metadata
2024-08-27 16:21:41 +02:00
Oli Juhl
2bacf86d3c
chore: Remove prepublishOnly script ( #8699 )
...
* wip
* wip
* verbose logging
* remove prepublish scripts
* chore: add back prepublish scripts
* wip
* remove prepublishOnly script
* chore: Clean up rest of build scripts
* add back build script
* feedback
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-27 10:31:38 +02:00
Carlos R. L. Rodrigues
3b4eea08ef
chore: peer dependency version ( #8771 )
...
* fix peer dependency version
* dotenv
* commands
* dotenv cli
2024-08-26 21:55:57 +02:00
Carlos R. L. Rodrigues
058378970a
chore: dependecies reorg ( #8535 )
2024-08-23 07:16:04 -03:00
Harminder Virk
5f310c0a00
breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix ( #8672 )
2024-08-20 17:05:19 +05:30
Oli Juhl
c21407afbe
fix(event-bus-redis): Consume job correct in worker ( #8444 )
...
* fix(event-bus-redis): Consume job correct in worker
* fix: Unit tests
* fix event passed to subscriber
* typo
2024-08-08 14:53:42 +02:00
Stevche Radevski
3a068c6b27
feat: Use tag ids instead of values wherever possible ( #8394 )
2024-08-02 09:22:03 +02:00
Stevche Radevski
31449972ed
fix: Use region name in product pricing exports ( #8373 )
...
* fix:Bug fixes to product import
* fix:Add an export failed notification if an export fails
* fix: Use region name in product export prices
2024-07-31 15:34:27 +02:00
Stevche Radevski
639ecdfd74
fix: Correctly associate options to variants ( #8285 )
2024-07-25 17:56:13 +02:00
Stevche Radevski
44f593a7ca
fix:Product options were not preserved over updates ( #8267 )
2024-07-25 08:24:26 +02:00
Harminder Virk
f579f0b3be
feat: restructure events payload ( #8143 )
...
* refactor: restructure events payload
Breaking change: This PR changes the event payload accepted by the event
listeners
* refactor: fix failing tests and implement feedback
* add integration tests
* fix timeout
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
2024-07-16 17:09:16 +01:00
Adrien de Peretti
4af7309170
fix: install modules-sdk for test-utils to work ( #8142 )
2024-07-16 12:00:24 +02:00
Adrien de Peretti
e778870c68
chore: Ensure the events are emitted with the same shape all accross ( #8063 )
...
* chore: Ensure the events are emitted with the same shape all accross
* fixes:
* rm unsues type
* types
* fix tests
2024-07-10 19:34:28 +02:00