Skip to content

chore: rename from task to step#758

Merged
adityachoudhari26 merged 1 commit intomainfrom
rename-to-step
Jan 27, 2026
Merged

chore: rename from task to step#758
adityachoudhari26 merged 1 commit intomainfrom
rename-to-step

Conversation

@adityachoudhari26
Copy link
Copy Markdown
Member

@adityachoudhari26 adityachoudhari26 commented Jan 27, 2026

Summary by CodeRabbit

  • Refactor

    • Updated workflow API terminology from "Task" to "Step" for improved clarity
    • Renamed workflow task references and fields to align with the new Step-based model
  • New Features

    • Added support for string parameters in workflows

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 27, 2026

📝 Walkthrough

Walkthrough

This PR performs a systematic terminology shift across workflow-related OpenAPI schemas and generated types, renaming WorkflowTask to WorkflowStep and WorkflowTaskTemplate to WorkflowStepTemplate with corresponding field updates. It reintroduces the WorkflowStringParameter type to support string-typed workflow parameters.

Changes

Cohort / File(s) Summary
Workflow schema definitions
apps/workspace-engine/oapi/spec/schemas/workflows.jsonnet, apps/workspace-engine/oapi/openapi.json
Renamed WorkflowTask → WorkflowStep and WorkflowTaskTemplate → WorkflowStepTemplate. Updated property names: taskssteps, workflowTaskTemplateIdworkflowStepTemplateId. Updated required field lists and schema references. Introduced WorkflowStringParameter schema with name, type, and default fields.
Generated code
apps/workspace-engine/pkg/oapi/oapi.gen.go
Updated generated type names and fields to match schema changes: WorkflowTask → WorkflowStep, WorkflowTaskTemplate → WorkflowStepTemplate with new JobAgent id field. Changed WorkflowTemplate.Tasks to Steps. Reintroduced WorkflowStringParameter and WorkflowStringParameterType types.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • PR #755: Introduces the initial workflow schema and generated types (WorkflowTask/TaskTemplate) that are being renamed and refined in this PR.
  • PR #756: Modifies the same workflow-related OpenAPI declarations and types, with overlapping impact on WorkflowTask and related field definitions.

Poem

🐰 Tasks transform to Steps so fine,
Templates dance in new design,
Parameters string, the schema's bright,
Workflows evolve, hopping right!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'chore: rename from task to step' accurately summarizes the main change—renaming task-based constructs to step-based constructs across OpenAPI schemas, generated code, and related type definitions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@adityachoudhari26 adityachoudhari26 merged commit 01ddce5 into main Jan 27, 2026
9 checks passed
@adityachoudhari26 adityachoudhari26 deleted the rename-to-step branch January 27, 2026 17:57
This was referenced Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants