Oli Juhl
4bf42f7889
fix: Update auth app_metadata when deleting users + customers ( #9041 )
...
* wip
* more work
* working on stuff
* more
* fix test
* remove incorrect test
* fix test
* fix: Only allow deletion of yourself
* remove redundant tests
2024-09-10 19:58:16 +02:00
Oli Juhl
e27056b3c3
feat: Reset password ( #8962 )
...
* wip
* more work
* wip
* more work
* wrap up first iteration
* work on new approach
* more work
* move middleware func to route
* cleanup
* more work
* wrap up
* more work
* fix workflow
* minor tweaks
* finalize
* Use JWT secret instead
2024-09-06 12:28:29 +02:00
Oli Juhl
f063a69632
chore(core-flows): Add invite resent event ( #8986 )
2024-09-04 19:53:29 +02:00
Oli Juhl
cbb0a6adc7
fix: Customer registration ( #8896 )
...
* fix: Customer registration
* update test
* one mroe test
* chore: add transformation
2024-09-01 11:41:39 +02:00
Oli Juhl
4350fe5368
chore: Remove @medusajs/medusa usage + local types from dashboard ( #8883 )
...
Closes CC-403
2024-08-30 15:37:44 +00:00
Oli Juhl
e360a495b7
chore: Replace Error with FetchError ( #8885 )
2024-08-30 11:08:36 +02:00
Oli Juhl
e0cb5ff0aa
fix(dashboard): Fetch tags + types in product forms ( #8887 )
2024-08-30 08:35:46 +02:00
Oli Juhl
9cf1a5d709
chore: Remove last trace of client in dashboard ( #8873 )
2024-08-29 17:48:01 +02:00
Oli Juhl
00bd9271e3
chore: Workflow execution JS-SDK ( #8851 )
2024-08-29 11:22:43 +00:00
Oli Juhl
e652d03b98
chore: Replace reservation customer group client with JS-SDK + clean up ( #8857 )
2024-08-29 11:51:23 +02:00
Oli Juhl
37b7592fba
chore: Remove unused clients in admin + clean up js-sdk ( #8839 )
...
* feat(js-sdk): Add API key
* chore: Remove unused clients in admin + clean up js-sdk
* fix sales channel hooks
2024-08-28 15:43:55 +02:00
Oli Juhl
c2e7940f61
fix: Validate boolean query params ( #8834 )
2024-08-28 13:14:15 +02:00
Oli Juhl
dbe931ab00
feat(js-sdk): Add API key ( #8838 )
...
* feat(js-sdk): Add API key
* address PR comments
* Allow params to create + update
2024-08-28 13:07:06 +02:00
Oli Juhl
c11ef01c15
feat: Separate registration from authentication in auth domain ( #8683 )
...
* wip
* feat: Introduce register
* fix: user command
* fix: Invite HTTP tests
* fix: Auth tests
* fix: Invite modules tests
2024-08-27 13:44:52 +02:00
Oli Juhl and Carlos R. L. Rodrigues
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
Oli Juhl
2f62b47bff
fix(pricing): Calculate price sets with amount 0 ( #8622 )
2024-08-16 12:49:11 +02:00
Oli Juhl
9de9b3825f
fix(payment): Partial refunds ( #8603 )
...
* fix(payment): Partial payment provider refunds
* add tests
2024-08-15 19:01:22 +02:00
Oli Juhl
bda3f68057
fix(notification): Properly disable notification providers ( #8607 )
2024-08-15 14:59:14 +02:00
Oli Juhl
90120d6463
fix(dashboard): Delete product media ( #8506 )
2024-08-08 17:00:46 +02:00
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
Oli Juhl
78eb457487
fix(core-flows): Allow return requests with no shipping ( #8472 )
...
Closes CC-265
2024-08-07 07:48:14 +00:00
Oli Juhl
1e0149ad08
fix(core-flows): Unsetting reason on return items ( #8470 )
2024-08-07 09:33:43 +02:00
Oli Juhl
afa740606f
chore: Update labeler to add type labels automatically ( #8410 )
2024-08-02 13:55:32 +02:00
Oli Juhl
dbd0b18726
feat: Add requested_at + open status to return ( #8391 )
...
* feat: Add requested_at + open status to return
* Update return in confirm claim workflow
* Revert snapshot
* feat: Change OrderChangeType
* fix test
2024-08-01 16:20:45 +02:00
Oli Juhl
4017f91352
chore: Publish framework package ( #8322 )
2024-07-29 11:22:02 +02:00
Oli Juhl
feabe0e6c0
feat: update return request ( #8302 )
2024-07-26 19:41:21 +02:00
Oli Juhl
63ead0a2ae
chore: Add @medusajs/framework to changeset ( #8256 )
2024-07-24 10:12:34 +02:00
Oli Juhl
4024935e91
feat(medusa): Order preview endpoint ( #8144 )
...
* feat: Add order preview endpoint
* remove log
* add test
* add note
2024-07-16 12:42:02 +01:00
Oli Juhl
b7e6b1461b
feat: Returns order previews ( #8135 )
...
* work on order previews
* fix create return shipping flow
* fix http tests
* fix tests
2024-07-16 11:07:04 +01:00
Oli Juhl and Carlos R. L. Rodrigues
ffd4b195ee
feat: Add exchange return shipping ( #8108 )
...
* wip
* finalize tests
* feat: Add exchange return shipping
* add shipping to preview
* test input
* move utils and ignore already inserted shipping method
* use custom price
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2024-07-15 22:04:20 +02:00
Oli Juhl
00c7900337
feat: Admin Returns API ( #8117 )
...
* feat: Add request item + add shipping APIs
* wip
* finalize workflow
* move steps
* add returns to js-sdk
* few chores
* fix test
* fix another test :)
2024-07-15 15:57:06 +02:00
Oli Juhl
7e82f981f9
feat: Add return shipping method workflow ( #8106 )
2024-07-13 13:09:07 +02:00
Oli Juhl
256912f392
fix(tax): Add indexes to enforce unique constraint on tax region ( #8067 )
2024-07-10 20:09:19 +02:00
Oli Juhl
fa6cd84049
chore: Migrate region module to use DML ( #7837 )
2024-06-29 13:14:52 +00:00
Oli Juhl
b1df20b0dc
fix(inventory): Entity Formulas + softDelete and restore ( #7851 )
2024-06-26 20:51:19 +02:00
Oli Juhl
b5f248f154
fix(region): Soft deleting region unsets region on countries ( #7786 )
...
**What**
Unset `region_id` on countries when soft deleting the associated region. Otherwise, countries cannot be added to new or other regions
Alternatively, we hard delete the region, which will trigger the DB level cascade
In both cases, we cannot easily restore the region countries.
2024-06-26 16:44:16 +00:00
Oli Juhl
25210369d9
fix(utils): Uppercase event action name ( #7822 )
...
Currently, the keys of the events contain a lowercased action, e.g. `INVENTORY_ITEM_created`, which is breaking our usage across multiple modules
2024-06-24 17:43:49 +00:00
Oli Juhl
305e1d66ca
fix(medusa): Load subscribers and scheduled jobs in worker mode ( #7769 )
2024-06-18 19:15:55 +02:00
Oli Juhl
f138339cbc
fix: Sort orders by created_at desc ( #7706 )
2024-06-13 21:31:59 +02:00
Oli Juhl
6ee0a2c1b5
feat: Variant inventory quantity in GET requests ( #7701 )
...
* feat: Variant inventory quantity in GET requests
* clean up
* fix link name
2024-06-13 13:41:54 +02:00
Oli Juhl
73ca358606
feat: Introduce order.placed event ( #7682 )
2024-06-12 12:05:13 +02:00
Oli Juhl
3f661c917b
feat: Fix subscribers loading + add order <> cart link ( #7617 )
2024-06-09 12:31:28 +02:00
Oli Juhl
f0e78d062e
feat: Add tax region + rates to SDK and types ( #7635 )
...
* feat: Add tax region + rates to SDK and types
* replace client with sdk in loaders
* Address PR feedback
2024-06-06 18:31:39 +02:00
Oli Juhl
20cd6a7b51
chore: Split up admin domain in js-sdk ( #7612 )
2024-06-05 09:34:18 +02:00
Oli Juhl
dc087bf310
feat: Move shipping option + profile test and more ( #7609 )
2024-06-05 08:36:41 +02:00
Oli Juhl
ce40fe88f5
chore: Move admin invites + user tests to HTTP ( #7596 )
2024-06-04 10:53:01 +02:00
Oli Juhl
0c0c510a37
chore: Move admin region tests ( #7582 )
2024-06-03 14:25:43 +02:00
Oli Juhl
cabdb2fcd8
chore: Move sales channel tests ( #7579 )
...
What
- Move sales channel integration tests from `/api` to `/http`
Deleted tests that do not belong in the suite:
- POST /admin/products/:id
- Mutation sales channels on products
- POST /admin/products
- Creating a product with a sales channel
- GET /admin/products
- Filtering products by sales channel
- Expanding with a sales channel
- GET /admin/orders
- Filtering orders by sales channel
- Expanding with a sales channel
- POST /admin/orders/:id/swaps
- Creating a swap with a sales channel
2024-06-03 09:47:45 +00:00
Oli Juhl
65d3222973
chore: Move customer + customer group integration tests and fixes issues ( #7577 )
...
* chore: Move customer + customer group and fixes issues
* remove /customer sendpoint
2024-06-03 10:52:32 +02:00
Oli Juhl
4e04214612
chore: Move product category integration tests ( #7569 )
...
* chore: Move category integration tests
* remove module service
2024-06-02 14:03:11 +02:00
Oli Juhl
dbb23d20be
chore: Remove currency + country logs ( #7508 )
2024-05-28 16:42:32 +02:00
Oli Juhl
e020b49493
chore: Add missing types deps ( #7504 )
2024-05-28 15:20:29 +02:00
Oli Juhl
c9de1d28a4
feat: Assign store default sales channel in cart creation ( #7495 )
2024-05-28 12:12:01 +02:00
Oli Juhl and Carlos R. L. Rodrigues
ad21bd30b1
fix: errors thrown in transformer ( #7480 )
...
* chore: wup
* throw on error
* add back test
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2024-05-28 08:44:33 +02:00
Oli Juhl
ebc4215f16
fix: Change num_code column from int to varchar ( #7463 )
2024-05-27 10:28:07 +02:00
Oli Juhl
3b93bc9f55
chore: Remove babel package from changeset ( #7462 )
2024-05-26 21:17:56 +02:00
Oli Juhl
05077bab32
feat: Add copy invite action ( #7413 )
...
https://github.com/medusajs/medusa/assets/59018053/2a2d0d39-e020-4146-8679-cbc99d75c98e
2024-05-23 10:58:59 +00:00
Oli Juhl
b0209e1114
fix: Navigate to orders on signin ( #7415 )
2024-05-23 10:11:25 +02:00
Oli Juhl
9a10adfd91
fix: Remove log for read only links ( #7410 )
2024-05-22 22:36:23 +02:00
Oli Juhl
4ee47cf9b1
fix: Accept invite in admin ( #7393 )
...
* fix: Accept invite in admin
* fix: Accept invite in admin
* minor fix
2024-05-22 21:40:38 +02:00
Oli Juhl
c198e2329c
chore: Change default log level ( #7402 )
2024-05-22 15:16:45 +02:00
Oli Juhl
c9bffdfecb
feat: expose backend url in admin options ( #7370 )
2024-05-20 11:24:15 +02:00
Oli Juhl
c0813a3547
fix: undefined BACKEND_URL in client ( #7367 )
2024-05-19 13:51:36 +02:00
Oli Juhl
bf4724b8e6
feat: Destroy session + introduce http config ( #7336 )
2024-05-19 12:40:28 +02:00
Oli Juhl
31648b12ca
fix: Retrieve region in loader ( #7351 )
2024-05-17 09:35:30 +02:00
Oli Juhl and Sebastian Rindom
2e42e053d4
chore: Publish preview release + deploy staging every 3 hours ( #7341 )
...
* wip
* Wrap up
* Update .github/workflows/trigger-staging-deployment.yml
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
* enable schedule
---------
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2024-05-16 12:36:30 +02:00
Oli Juhl
774696845c
chore: Update perfect-fishes-listen.md ( #7339 )
2024-05-15 16:24:15 +02:00
Oli Juhl
5b26f5f2cf
feat: Add publishable key scopes middleware ( #7301 )
...
**What**
Add pub key + sales channel middlewares to the store carts API
- Assign sales channel associated with pub key, if sales channel is not passed in request
- Throw if pub key has multiple associated sales channels
- Throw if sales channel ID in payload is not associated with publishable API key in header
2024-05-13 16:17:52 +00:00
Oli Juhl
948458a43d
chore: Re-introduce CLI test ( #7268 )
2024-05-08 11:11:06 +02:00
Oli Juhl
8b61dccd0f
fix(dashboard,medusa): Minor clean-up of admin v2 ( #7257 )
2024-05-07 09:39:42 +02:00
Oli Juhl
aff1eac91c
fix(dashboard): use-backend-url-from-env in new client ( #7256 )
2024-05-06 18:35:18 +02:00
Oli Juhl
309c04afe8
chore: Remove remaining V1 plugins ( #7255 )
2024-05-06 17:31:24 +02:00
Oli Juhl
16528c57b0
chore: Introduce release notes formatting + preview release action ( #7247 )
...
### What
- Add changelog formatting file to automate pull request categorization in release notes*
- Add action to trigger preview releases
- Remove unused staging deployment action
**Add changelog formatting file to automate pull request categorization in release notes**
In order for this work, we need to be more strict about our labels usage. More specifically, we need to add one of the four different labels noted in the `release.yml` file. The labels should be self-explanatory. If your PR introduces both features and bugs, you should choose the label based on importance of the changes.
2024-05-06 12:59:37 +00:00
Oli Juhl and Carlos R. L. Rodrigues
cf9605fe6f
feat(order): Add display_id to order table ( #7242 )
...
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-05-05 19:43:13 +02:00
Oli Juhl
2f7b53488d
fix: Accept filters in softDelete + fulfillment location clean-up ( #7198 )
2024-05-03 16:32:07 +00:00
Oli Juhl
1366e2efad
fix: Retrieve ancestors and/or descendants on product categories ( #7226 )
2024-05-03 18:09:04 +02:00
Oli Juhl
c41e90fa36
chore: Remove Admin v1 ( #7214 )
...
* chore: Remove v1 admin
* update eslint
2024-05-03 10:56:38 +02:00
Oli Juhl
e78362c000
chore: Remove legacy MWH modules ( #7213 )
...
* chore: Remove legacy MWH modules
* chore: Add stock-location deps
2024-05-02 20:07:42 +02:00
Oli Juhl
b8a0a459a8
chore: Update CI to trigger for v1.x ( #7207 )
2024-05-02 15:11:26 +02:00
Oli Juhl
f430ed7040
chore: Remove deprecated plugins ( #7199 )
2024-05-02 09:55:50 +02:00
Oli Juhl
ba71903e12
chore: Introduce bug report for 2.0 ( #7194 )
2024-05-01 14:14:37 +02:00
Oli Juhl
497c735ea6
chore: Update contibuting with new branching strategy ( #7193 )
2024-05-01 13:50:02 +02:00
Oli Juhl
bb37e139aa
chore: change minor bumps to patch ( #7177 )
2024-04-30 19:05:04 +02:00
Oli Juhl and Stevche Radevski
10e120062b
feat: V2 batch update products in categories ( #7125 )
...
* wip
* wip
* fix: batch category update
* update tet
* fix type
---------
Co-authored-by: Stevche Radevski <sradevski@live.com >
2024-04-23 17:17:25 +02:00
Oli Juhl
b61dcb84c9
chore: Update CODEOWNERS ( #7119 )
...
Allow @medusajs/engineering to approve lock-file + package.json changes
2024-04-23 11:37:15 +02:00
0eb68541b8
fix: Resume workflow execution ( #7103 )
...
Supercedes #7051 – if OK, I'll move the base of this PR to `develop` and we can run reviews only of this one.
**What**
- Gracefully close BullMQ Worker in Redis Event Bus and Redis Workflow Engine (by @edast, @sradevski)
- Register workflows before MedusaApp is loaded*
- Introduce `onApplicationPrepareShutdown`**
- Refactor plugin resolving for reusability purposes
*We now register workflows before modules are loaded to ensure modules can run workflows as part of bootstrapping. E.g. the Redis Workflow Engine resumes workflows when it starts, which has until this change failed, because the workflows were not registered yet.
**We introduce a new hook to prepare resources for an application shutdown. E.g. closing the BullMQ worker as a preparatory step to closing the BullMQ queue. The worker will continue to process jobs while the queue is still open to receive new jobs (without processing them).
Co-authored-by: Stevche Radevski <4820812+sradevski@users.noreply.github.com >
Co-authored-by: Darius <618221+edast@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-04-22 12:32:50 +00:00
Oli Juhl
67a21c3e45
feat: Update product category ( #7092 )
...
* feat: Update product category
* Disable V2 FF in product category tes
* clean up
2024-04-22 12:30:27 +02:00
Oli Juhl
bc081a7777
feat: Create product category flow ( #7034 )
...
* feat: Create product category
* address PR comments
2024-04-15 17:11:42 +02:00
Oli Juhl
3882cac622
feat: Admin V2 customer group ( #7000 )
2024-04-09 12:32:27 +02:00
Oli Juhl
dbddfc12ed
feat: Admin Shipping Profiles API ( #7019 )
2024-04-09 11:03:37 +02:00
Oli Juhl
c03216efbf
fix: Delete service zone ( #7017 )
2024-04-08 20:24:59 +02:00
Oli Juhl
6cc9a5e469
feat: Categories retrieve + list API ( #7009 )
2024-04-08 19:26:34 +02:00
Oli Juhl
4f88743591
feat: Admin V2 Customers ( #6998 )
2024-04-07 21:38:50 +02:00
Oli Juhl
a24d6e6c97
feat: Update service zone ( #6990 )
2024-04-07 17:30:55 +02:00
Oli Juhl
31b07aea3d
feat: Add tax regions table ( #6983 )
2024-04-07 15:02:48 +02:00
Oli Juhl
d1728990e9
feat: Delete service zone ( #6984 )
2024-04-07 10:59:08 +02:00
Oli Juhl
81ea044f31
feat(medusa, core-flows): Create service zones ( #6979 )
2024-04-06 21:31:23 +02:00
Oli Juhl
5724d80286
feat: Bring back API key sales channel management ( #6976 )
...
- Add API key sales channel management
- Add HTTP responses for API keys and sales channels
- Use HTTP responses in `dashboard` and remove now redundant types
2024-04-06 16:30:27 +00:00
Oli Juhl
c31dea02eb
feat: Add generic link filter middleware ( #6969 )
2024-04-06 11:18:03 +02:00
Oli Juhl
94146e4bfe
chore: Trigger pipeline on merge to develop ( #6954 )
2024-04-06 11:02:47 +02:00