olivermrbl
4245312d8d
chore: Version packages
2024-11-25 09:57:00 +01:00
Carlos R. L. Rodrigues
aeb5b43692
feat(workflows-sdk): add response to permanent failure ( #10177 )
2024-11-20 17:29:37 -03:00
Adrien de Peretti
10da8b379f
chore(workflows-sdk): Display each error individually instead of packed ( #10072 )
...
**What**
Instead of displaying a single string prepared with all the errors, log each error individually
2024-11-15 11:27:52 +00:00
Carlos R. L. Rodrigues
1eef324af3
fix(orchestration): fix set step failure ( #10031 )
...
What:
- copy data before saving checkpoint
- removed unused data format function
- properly handle registerStepFailure to not throw
- emit onFinish event even when execution failed
2024-11-12 10:06:36 +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
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
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
Adrien de Peretti
7c5415ba3a
fix(workflows-sdk):transaction id inheritence ( #9507 )
2024-10-10 17:08:42 +02:00
Adrien de Peretti
34d57870ad
chore: workflow internals improvementss ( #9455 )
2024-10-10 09:11:56 +02:00
Adrien de Peretti
ad3524ffbe
feat: Add useQueryStep ( #9384 )
...
* feat: Query step replacement
* fix
* fix types
2024-10-07 12:07:06 +02:00
Harminder Virk
d98f22c7d6
Feat: Move container bindings declaration merging within the framework ( #9467 )
2024-10-04 15:47:06 +05:30
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
Carlos R. L. Rodrigues
8155c4e9ee
fix(workflows-sdk): when then return value ( #9427 )
2024-10-02 07:40:39 -03:00
Adrien de Peretti
02629625ec
feat(orchestration): Provide hint in workflows error ( #9400 )
...
* feat(orchestration): Provide hint in workflows error
* remove log
* fix tests
* improve stack
* fix type
* formatting
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-10-02 11:54:07 +02:00
Shahed Nasser
20943902f9
chore: update imports in tsdocs ( #9379 )
2024-10-01 11:04:03 +02:00
Harminder Virk
a578313db9
feature: bundle all modules ( #9324 )
2024-09-30 09:04:03 +02:00
Harminder Virk
48bea267dc
chore: perform dependencies scan and fix all dependencies ( #9296 )
2024-09-26 14:14:38 +05:30
Harminder Virk
9e711720dd
chore: upgrade moduleResolution to Node16 ( #9269 )
2024-09-24 17:19:20 +05:30
Harminder Virk
9f72fb5902
Chore: cleanup workflows SDK ( #9244 )
...
Fixes: FRMW-2712
2024-09-23 11:04:38 +00:00
Adrien de Peretti
a227d73e4f
fix(workflow-sdk): Use the correct event group ID from the flow metadata ( #9177 )
2024-09-18 12:52:21 +02:00
Harminder Virk
653a4bff71
feat: add tracing to workflow steps ( #9140 )
2024-09-17 11:35:38 +05:30
Carlos R. L. Rodrigues
ef8dc4087e
feat: run nested async workflows ( #9119 )
2024-09-16 13:06:45 +00:00
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Adrien de Peretti
f0c470cb08
chore(workflows-sdk): Update hook functions type ( #9117 )
...
RESOLVES FRMW-2703
**What**
Update types to reflect both invoke and compensate function for hooks
2024-09-13 07:11:45 +00:00
matteoxplo
91f17fb176
fix: Workflow always print "error:" even if there are none ( #8978 )
...
Fix issue [https://github.com/medusajs/medusa/issues/8976 ](https://github.com/medusajs/medusa/issues/8976 )
2024-09-04 12:17:25 +00:00
Adrien de Peretti
b09c19912b
fix(orchestration, workflow-sdk): Local workflow separated orchestrator ( #8765 )
...
FIXES TRI-174
**What**
Currently, every time a Local workflow is being instantiated, it will grab the global workflow definition including the orchestrator instance. This leads to issues when we have concurrent running workflows which all register their event listeners to this single orchestrator instance which can lead to exhausting the listerners.
With this fix, every local workflow will have a copy of the global workflow definition plus a new instance (cloned) of the orchestrator meaning that from now on, every local workflow will have its own orchestrator.
2024-08-27 08:59:56 +00: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
Carlos R. L. Rodrigues
eb0bfe9f33
feat(workflows-sdk): log on error ( #8666 )
2024-08-20 06:23:24 -03:00
Harminder Virk
9cd66bc842
feature: share execution context with hook handlers ( #8501 )
2024-08-08 17:18:07 +05:30
Stevche Radevski
4155d0354f
fix: Use a global reference to distributed transaction and scheduler ( #8462 )
...
* fix: Add storage cleanup on scheduled jobs
* fix: Use a global reference to distributed transaction and scheduler classes
2024-08-06 14:14:51 +02:00
Shahed Nasser
6fc2019534
chore(workflows-sdk): add TSDocs related to create-hook ( #8380 )
2024-08-01 09:57:14 +03:00
Harminder Virk
864bb0df05
breaking: implement workflow hooks (first iteration) ( #8346 )
2024-07-31 15:36:38 +05:30
Carlos R. L. Rodrigues
24c105f288
feat(orchestration,workflows-sdk): Skip step ( #8334 )
2024-07-29 14:26:47 -03:00
Adrien de Peretti
35c3759ed8
fix: workflow 'when' should return T or undefined instead of Partial<T> ( #8195 )
...
* fix: workflow 'when' should return T or undefined instead of Partial<T>
* fix when usage
2024-07-19 10:46:55 +02:00
Adrien de Peretti
53ddea717c
fix: workflow return type inf missing type ( #8133 )
2024-07-15 14:40:03 +03:00
Carlos R. L. Rodrigues
4321241553
feat(core-flows): request return on order exchanges and claims ( #8107 )
...
FIXES: CC-92, CC-87
2024-07-12 15:48:24 +00:00
Carlos R. L. Rodrigues
de36e2b36e
chore: rename return flow ( #8050 )
2024-07-10 08:09:10 -03:00
Adrien de Peretti
b24c8503d5
feat: Add types to the workflow conditional ( #7979 )
...
**What**
Add typing to the when conditional workflow step
FIXES CORE-2494
2024-07-05 14:43:16 +00:00
Carlos R. L. Rodrigues
9badad24aa
feat(workflows-sdk): conditional step ( #7912 )
...
* chore: move ModuleRegistrationName to utils
* chore(workflows-sdk): conditional step
* type
* when condition
2024-07-05 10:54:18 +02:00
Carlos R. L. Rodrigues
61758f374b
chore(medusa): return endpoints ( #7823 )
2024-06-25 13:53:18 +00:00
Riqwan Thamir
03924a4ff6
chore: move to swc/jest ( #7739 )
...
* chore: move to swc
* chore: fix tax rate tests
* chore: undo failed test
* chore: fix unit tests script
* chore: use node 20
* Update scripts/run-workspace-unit-tests-in-chunks.sh
2024-06-20 12:59:33 +02:00
Adrien de Peretti
48963f55ef
Chore/rm main entity concept ( #7709 )
...
**What**
Update the `MedusaService` class, factory and types to remove the concept of main modules. The idea being that all method will be explicitly named and suffixes to represent the object you are trying to manipulate.
This pr also includes various fixes in different modules
Co-authored-by: Stevche Radevski <4820812+sradevski@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-06-19 13:02:16 +00:00
Riqwan Thamir
3d33f06e77
chore: upgrade jest everywhere ( #7703 )
2024-06-14 07:35:30 +02:00