github-actions[bot]
223a4a4cd9
chore: Version Packages ( #5002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-15 17:09:34 +02:00
Adrien de Peretti
92237db7fe
fix(medusa): Money amount detached migration ( #5079 )
2023-09-15 13:51:19 +02:00
Adrien de Peretti
60360d2fd2
fix(medusa): Fix order service linting issues ( #5071 )
...
* style(medusa): Fix order service linting issues
* Create short-ligers-pull.md
2023-09-15 10:58:30 +02:00
Oli Juhl
dc94f053d3
fix(medusa): Support fields param in list-variants ( #5053 )
...
* fix(medusa): Support fields param in list-variants
* Create cuddly-pigs-tease.md
* address pr comments
2023-09-15 09:08:04 +02:00
Adrien de Peretti
05a32683a3
feat(medusa): Get product with isolated product module ( #5010 )
2023-09-13 14:39:59 +02:00
Adrien de Peretti
4fa675ec25
chore(medusa, modules-sdk, types): Refactor modules loading from medusa ( #5018 )
2023-09-13 14:26:54 +02:00
Carlos R. L. Rodrigues
5362bfc348
feat(medusa): Drop FKs to isolate products ( #5042 )
...
What:
Remove FKs related to product domain tables
2023-09-13 12:05:37 +00:00
Philip Korsholm
5d10c46bb1
feat(medusa): Separate money amount and variant ( #4906 )
...
* initial changes
* working test
* final changes to product tests
* update integration tests
* update price list integration tests
* update integration tests
* update unit tests
* update plugin integration tests
* remove catch from integration test
* undo change
* add andWhere
* update upsertCurrencyMoneyAmount method
* undo line item changes
* undo changes
* update deprecated method
* Update packages/medusa/src/migrations/1692953518123-drop_money_amount_constraints_for_pricing_module.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* rename joinTable
* update with joinTable entity
* update load methods
* remove await create
* re-add context test
* update price list behavior for prices
* update price list snapshots
* re-add admin seeder
* pr feedback
* fix unit tests
* fix plugin integration tests
* initial review changes
* redo changes to variant creation
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-13 13:26:20 +02:00
Adrien de Peretti
7231f65833
feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled ( #5037 )
...
* feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled
* Create breezy-fans-accept.md
2023-09-13 10:36:55 +02:00
Carlos R. L. Rodrigues
05fcfd803e
Fix(medusa): duplicated migration ( #5029 )
...
Fix duplicated migration class name
2023-09-12 20:15:47 +00:00
Adrien de Peretti
30863fee52
feat(medusa): List products with Remote Query ( #4969 )
...
**What**
- includes some type fixes in the DAL layer
- List products including their prices and filtered by the sales channel as well as q parameter and category scope and all other filters
- Assign shipping profile
- ordering
- Add missing columns in the product module
- update product module migrations
**Comment**
- In regards to the fields, we can pass whatever we want the module will only return the one that exists (default behavior), but on the other hand, that is not possible for the relations.
**question**
- To simplify usage, should we expose the fields/relations available from the module to simplify building a query for the user and be aware of what the module provides
**todo**
- Add back the support for the user to ask for fields/relations
2023-09-12 15:55:05 +00:00
Philip Korsholm
2b078f06d9
fix(medusa): default sales channel for store variant endpoints ( #4556 )
...
* add changeset
* include default sales channel when querying variant endpoints
* make parameter optional
* update default values
* add integraiton tests
2023-09-11 14:05:47 +02:00
Adrien de Peretti
6273b4b160
feat(utils, module-sdk, medusa): Extract pg connection utils to utils package ( #4961 )
2023-09-11 12:10:40 +02:00
pepijn-vanvlaanderen
c78e7df502
fix(medusa): Type in AbstractFulfillmentService ( #5003 )
2023-09-10 16:23:06 +02:00
Carlos R. L. Rodrigues
4b0e3fb2a7
feat(medusa,orchestration): Decouple Product in Cart domain ( #4945 )
2023-09-08 17:24:46 +02:00
github-actions[bot]
98b91d1137
chore: Version Packages ( #4891 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-08 14:09:39 +02:00
mortenengel
11fb523051
feat(medusa, admin-ui): Improve gift card application ( #4944 )
...
Fix for the problems identified in issue #4892
Bugfix: admin-ui order summary no longer uses gift card total from order when displaying how much has been withdrawn from each giftcard.
Bugfix(?): no longer keep applying gift cards (at 0 value) when sufficient balance has been reached
Feature: multiple giftcards are now applied in ordered fashion. First by end_date (supports null), then by remaining balance. In order to ensure that customers ends up with as long lasting and few remaining gift cards as possible after the transaction.
2023-09-07 16:56:36 +00:00
Adrien de Peretti
b71776738c
feat(medusa): Event bus db failure handling ( #4963 )
...
* feat(medusa): Event bus db failure handling
* naming
* Create olive-years-heal.md
2023-09-06 17:07:29 +02:00
Shahed Nasser
9781089ca3
chore(oas): Update OAS for upload endpoints ( #4953 )
...
* chore(oas): Update OAS for upload endpoints
* added changeset
* address pr feedback
2023-09-06 17:39:19 +03:00
Josip Matić
bb5ea9d5ca
fix(medusa): Double tax issue on return refund amount ( #4899 )
...
Closes #4686
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-05 08:14:45 +00:00
Carlos R. L. Rodrigues
a4906d0ac0
chore(medusa,orchestration,link-modules,modules-sdk): internal services as modules ( #4925 )
2023-09-04 11:36:05 -03:00
Oli Juhl
17d91c276a
feat(medusa): Add AbstractFulfillmentService ( #4922 )
...
* feat(medusa): Add abstract fulfillment service
* add data types
* add loaders
* Create nine-glasses-allow.md
* address pr comments
2023-09-03 20:05:36 +02:00
Frane Polić
4bf8acbdd4
fix(medusa): csv parser check match prop on column ( #4913 )
...
**What**
- if there is the `match` column with regex defined in the schema don't look up column definition by name
2023-08-31 09:38:52 +00:00
Andreas Deininger
a0bbc1893b
chore: fix typos ( #4877 )
...
* Chore: Fix typos
* Add generated resources
---------
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2023-08-30 13:27:46 +03:00
Rares Stefan
470379e631
fix(medusa, admin-ui): Add deleted_at to Return Reason unique constraint ( #4834 )
...
* Update return reason create to upsert
* Create strange-wombats-invite.md
* Revert upsert, make value index only apply on non-deleted entities
2023-08-29 19:26:58 +02:00
Micky Jittjana
4d439bed38
fix(medusa): Make event enqueuer reconnect the database when it lost the connection ( #4855 )
...
* Try to periodically reconnect database from enqueuer
* Create great-months-train.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2023-08-29 13:03:11 +02:00
Riqwan Thamir
a1110b3438
fix(medusa): category_id and q params for list products endpoint ld work ( #4889 )
...
Looks like during an earlier refactor, some of the categories logic wasn't ported over to the handler that works with q params.
what:
- adds a fix that allows queries to be made on category_id when q param is passed.
Fixes https://github.com/medusajs/medusa/issues/4885
2023-08-28 11:46:55 +00:00
github-actions[bot]
362abdfad7
chore: Version Packages ( #4826 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 16:15:33 +02:00
Shahed Nasser
d04b9635f9
chore(oas): fix Get Variant's Inventory OAS ( #4856 )
...
* chore(oas): fix Get Variant's Inventory OAS
* fix the curl example
2023-08-25 13:03:55 +03:00
Frane Polić
8b860416d2
feat(medusa): PriceListImportStrategy descriptive errors ( #4842 )
2023-08-23 21:39:34 +02:00
Frane Polić
d8a6e3e0d8
feat(medusa-file-local): implement missing streaming methods ( #4788 )
2023-08-23 13:05:04 +02:00
Frane Polić
edf9ed4e59
fix(medusa-interfaces, medusa-file-*): flag for streaming to a private bucket ( #4771 )
...
* wip: unify file service api
* fix: flag type
* fix: update Spaces service
* fix: S3/Spaces - default to private
* fix: MinIO `isPrivate` for `getPresignedDownloadUrl`, add `isPrivate` to `GetUploadedFileType`
* chore: changeset
2023-08-22 13:05:30 +02:00
github-actions[bot]
db36258885
chore: Version Packages ( #4711 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-17 17:17:41 +02:00
Kasper Fabricius Kristensen
f1a05f4725
feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions ( #4761 )
...
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-17 12:14:45 +00:00
Shahed Nasser
320fab8aed
chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema ( #4780 )
...
* chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema
* ran build
2023-08-16 16:42:34 +03:00
Shahed Nasser
914d773d3a
api-ref: custom API reference ( #4770 )
...
* initialized next.js project
* finished markdown sections
* added operation schema component
* change page metadata
* eslint fixes
* fixes related to deployment
* added response schema
* resolve max stack issue
* support for different property types
* added support for property types
* added loading for components
* added more loading
* type fixes
* added oneOf type
* removed console
* fix replace with push
* refactored everything
* use static content for description
* fixes and improvements
* added code examples section
* fix path name
* optimizations
* fixed tag navigation
* add support for admin and store references
* general enhancements
* optimizations and fixes
* fixes and enhancements
* added search bar
* loading enhancements
* added loading
* added code blocks
* added margin top
* add empty response text
* fixed oneOf parameters
* added path and query parameters
* general fixes
* added base path env variable
* small fix for arrays
* enhancements
* design enhancements
* general enhancements
* fix isRequired
* added enum values
* enhancements
* general fixes
* general fixes
* changed oas generation script
* additions to the introduction section
* added copy button for code + other enhancements
* fix response code block
* fix metadata
* formatted store introduction
* move sidebar logic to Tags component
* added test env variables
* fix code block bug
* added loading animation
* added expand param + loading
* enhance operation loading
* made responsive + improvements
* added loading provider
* fixed loading
* adjustments for small devices
* added sidebar label for endpoints
* added feedback component
* fixed analytics
* general fixes
* listen to scroll for other headings
* added sample env file
* update api ref files + support new fields
* fix for external docs link
* added new sections
* fix last item in sidebar not showing
* move docs content to www/docs
* change redirect url
* revert change
* resolve build errors
* configure rewrites
* changed to environment variable url
* revert changing environment variable name
* add environment variable for API path
* fix links
* fix tailwind settings
* remove vercel file
* reconfigured api route
* move api page under api
* fix page metadata
* fix external link in navigation bar
* update api spec
* updated api specs
* fixed google lint error
* add max-height on request samples
* add padding before loading
* fix for one of name
* fix undefined types
* general fixes
* remove response schema example
* redesigned navigation bar
* redesigned sidebar
* fixed up paddings
* added feedback component + report issue
* fixed up typography, padding, and general styling
* redesigned code blocks
* optimization
* added error timeout
* fixes
* added indexing with algolia + fixes
* fix errors with algolia script
* redesign operation sections
* fix heading scroll
* design fixes
* fix padding
* fix padding + scroll issues
* fix scroll issues
* improve scroll performance
* fixes for safari
* optimization and fixes
* fixes to docs + details animation
* padding fixes for code block
* added tab animation
* fixed incorrect link
* added selection styling
* fix lint errors
* redesigned details component
* added detailed feedback form
* api reference fixes
* fix tabs
* upgrade + fixes
* updated documentation links
* optimizations to sidebar items
* fix spacing in sidebar item
* optimizations and fixes
* fix endpoint path styling
* remove margin
* final fixes
* change margin on small devices
* generated OAS
* fixes for mobile
* added feedback modal
* optimize dark mode button
* fixed color mode useeffect
* minimize dom size
* use new style system
* radius and spacing design system
* design fixes
* fix eslint errors
* added meta files
* change cron schedule
* fix docusaurus configurations
* added operating system to feedback data
* change content directory name
* fixes to contribution guidelines
* revert renaming content
* added api-reference to documentation workflow
* fixes for search
* added dark mode + fixes
* oas fixes
* handle bugs
* added code examples for clients
* changed tooltip text
* change authentication to card
* change page title based on selected section
* redesigned mobile navbar
* fix icon colors
* fix key colors
* fix medusa-js installation command
* change external regex in algolia
* change changeset
* fix padding on mobile
* fix hydration error
* update depedencies
2023-08-15 18:07:54 +03:00
Oli Juhl
16249ec280
fix(actions): Disable OAS unit tests + add flags to test commands ( #4767 )
...
* wip
* skip models test
* ignore plugins loader test
2023-08-15 14:32:58 +02:00
Sebastian Rindom
9d8f87b03b
fix(medusa): ignore region_id update w/o value change ( #4751 )
2023-08-13 09:26:32 +02:00
Simons
d8a908bd8e
fix(medusa): removal of shipping methods on addOrUpdateLineItems ( #4725 )
...
* added removal of shipping methods on addOrUpdateLineItems
* Create lovely-beds-design.md
---------
Co-authored-by: Thijs Simons <thijs@careeraim.nl >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-12 12:44:35 +02:00
Oli Juhl
1d2637572b
chore: Remove rimraf from prepare ( #4741 )
2023-08-11 22:55:59 +02:00
Adrien de Peretti
a268d2cb0b
feat(workflows): Data aggregation ( #4732 )
...
* apply the aggregator automatically
* add comment
* apply aggregate
* improve pipe aggregation
* improve test cases
* improvements
* clean tests
* renameing to merge
* fix merge apply
* move merge apply
* cleanup cart workflow and end point
* fixes and naming
2023-08-10 14:01:56 +02:00
Adrien de Peretti
ac866ebb51
test(): Test the create product workflow compensation ( #4716 )
...
**What**
Integration tests to validate the workflow compensation.
Also, fix the transaction state when the workflow is compensating and some steps does not have any compensation
2023-08-09 14:33:04 +00:00
Adrien de Peretti
3f3a84262c
feat(types, product, utils, medusa): Include shared connection for modules ( #4626 )
2023-08-08 15:10:34 +00:00
Oli Juhl
a2d7540e40
fix(medusa): Remove shipping on updates to cart.items ( #4715 )
...
* rm shipping on line item updates
* Add tests
* remove verbose flag
* Create real-items-rhyme.md
2023-08-08 14:53:47 +02:00
Didier Guyon
0cba4d647d
fix(medusa): ExistingItems query in addOrUpdateLineItems ( #4714 )
2023-08-08 13:51:44 +02:00
Oli Juhl
d1e298f5dc
chore: Remove FlagRouter from core ( #4710 )
...
* Allow nested feature flags
* clean up
* Create loud-wombats-shave.md
* add warning
* Add more tests
* Address PR comments
* add back boolean check
* Replace core flag router with utils one
* lol - actually remove it
* Create eleven-doors-roll.md
---------
Co-authored-by: carlos-r-l-rodrigues <rodrigolr@gmail.com >
2023-08-08 13:05:50 +02:00
Riqwan Thamir
281b0746cf
feat(medusa,workflows) Create cart workflow ( #4685 )
...
* chore: add baseline test for create cart
* chore: add basic paths into handlers + make first tests pass
* chore: move input alias to cart specific workflow
* chore: move data around into buckets
* chore: normalize handlers and introduce types
* chore: move aliases to handlers concern
* chore: add compensation step for create cart
* chore: merge with latest develop
* chore: handle error manually + type inputs
* chore: handle error manually
* chore: added types for each handler
* chore: remove addresses
* chore: added changset
* chore: undo package changes
* chore: added config settings to retreieve, cleanup of types
* chore: capitalize cart handlers
* chore: rename todo
* chore: add feature flag for workflow
* chore: reorder handlers
* chore: add logger to route handler
* chore: removed weird vscode moving around things
* chore: refactor handlers
* chore: refactor compensate step
* chore: changed poistion
* chore: aggregate config data
* chore: moved handlers to their own domain + pr review addressing
* chore: address pr reviews
* chore: move types to type package
* chore: update type to include config
* chore: remove error scoping
2023-08-08 12:10:27 +02:00
github-actions[bot]
0deecf353f
chore: Version Packages ( #4643 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 13:43:54 +02:00
olivermrbl
f2c854fc0d
chore(medusa): Replace workspace version
2023-08-07 13:02:53 +02:00
Oli Juhl
5c60aad177
feat(medusa, utils): Allow object feature flags ( #4701 )
...
Feature flags can be set as follows:
**Environment variables**
```
MEDUSA_FF_ANALYTICS=true
MEDUSA_FF_WORKFLOWS=createProducts,addShippingMethods
```
**Project config**
```
{
featureFlags: {
analytics: true,
workflows: {
createProducts: true,
addShippingMethods: true,
}
}
}
```
2023-08-07 09:38:25 +00:00