-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(schedules): remove save button for schedules, couple schedule deployment with workflow deployment #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ployment with workflow deployment
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR couples schedule deployment with workflow deployment, removing the separate "Save" button for schedules. Key Changes:
Architecture: Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant DeployHook as useDeployment
participant PreDeploy as runPreDeployChecks
participant API as /api/workflows/[id]/deploy
participant Validation as validateWorkflowSchedules
participant Deploy as createSchedulesForDeploy
participant DB as Database
User->>DeployHook: Click Deploy
alt Already Deployed (Redeploy)
DeployHook->>PreDeploy: Validate client-side
PreDeploy->>Validation: Check schedule config
Validation-->>PreDeploy: Result
PreDeploy-->>DeployHook: Pass/Fail
alt Validation Failed
DeployHook-->>User: Show error notification
else Validation Passed
DeployHook-->>User: Open deploy modal
end
else First Deploy
DeployHook->>API: POST /deploy
API->>Validation: validateWorkflowSchedules
Validation-->>API: isValid
alt Invalid Schedule
API-->>DeployHook: 400 Error
DeployHook-->>User: Show error
else Valid
API->>DB: deployWorkflow
API->>Deploy: createSchedulesForDeploy
Deploy->>DB: UPSERT schedule records
Deploy-->>API: ScheduleDeployResult
API-->>DeployHook: Success + schedule info
DeployHook-->>User: Open deploy modal
end
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
31 files reviewed, 1 comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
36 files reviewed, 2 comments
...ents/panel/components/editor/components/sub-block/components/schedule-info/schedule-info.tsx
Outdated
Show resolved
Hide resolved
5094808 to
9625db5
Compare
Summary
Type of Change
Testing
Tested manually. Added unit tests
Checklist