Closed liorzam closed 2 months ago
Latest commit: 154ded7b564801e98364f315f74fbb5a36eaf662
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates to the workflow service enhance flexibility and maintainability by introducing a new type for workflow extensions, refining data structures, and improving API documentation. Key enhancements include the integration of plugin schemas, the addition of a method to list workflow plugins, and increased type safety. These modifications aim to streamline workflow management and facilitate better integration with other system components.
File(s) | Change Summary |
---|---|
services/workflows-service/src/global.d.ts services/workflows-service/src/workflow-defintion/types/index.ts |
Introduced TWorkflowExtenstion type and updated WorkflowDefinition to include extensions . Enhanced TWorkflowDefinitionWithTransitionSchema . |
services/workflows-service/src/workflow/dtos/get-workflows-runtime-output.dto.ts |
Added GetWorkflowPluginOutput constant from WorkflowExtensionSchema , enhancing DTO capabilities. |
services/workflows-service/src/workflow/schemas/extensions.schemas.ts |
Created a new schema file with various plugin structures for validation. |
services/workflows-service/src/workflow/workflow.controller.external.ts |
Added listWorkflowPlugins method and updated @ApiTags , improving API documentation and functionality. |
sequenceDiagram
participant Client
participant WorkflowControllerExternal
participant WorkflowService
Client->>WorkflowControllerExternal: Request to list workflow plugins
WorkflowControllerExternal->>WorkflowService: Fetch workflow definition by ID
WorkflowService-->>WorkflowControllerExternal: Return workflow definition with plugins
WorkflowControllerExternal-->>Client: Respond with workflow plugins
🐰 In the land of code, where workflows play,
New extensions hop in, brightening the way!
With plugins and schemas, so tidy and neat,
Our service now dances, oh what a treat!
A rabbit's delight in each line we see,
Hopping towards harmony, joyful and free! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Improvements
Bug Fixes