Add Workflow Node Outcome in TaskManager#182
Conversation
Summary of ChangesHello @ginaxu1, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the TaskManager by adding an Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds an outcome field to the task execution pipeline, allowing task plugins to communicate completion sub-states. The changes are well-implemented, introducing the Outcome field in plugin.ExecutionResponse and propagating it through the TaskManager to the WorkflowManagerNotification. I have a couple of suggestions to improve logging consistency and test coverage for this new feature.
Summary
Add
outcomefield through the TaskManager plugin execution pipeline. This enables task plugins to produce and communicate completion sub-states (like "APPROVED" or "REJECTED") back to the workflow manager, which is a requirement for evaluating conditional unlock rules (per those introduced in #174).Type of Change
Changes Made
Outcome field (*string)to plugin.ExecutionResponseexecute()method inmanager.goto extract the Outcome from theExecutionResponseand pass it to thenotifyWorkflowManager()functionnotifyWorkflowManager()inmanager.goto accept the outcome parameter and updatedWorkflowManagerNotificationinnotification.goto utilize this Outcome fieldTesting
go test ./internal/task/manager/...to verify all TaskManager tests pass with the updated method signatures