Skip to content

fix: overdue bugs from copilot#324

Merged
gusfcarvalho merged 1 commit intomainfrom
gc-fix-overdue-fuxes
Feb 18, 2026
Merged

fix: overdue bugs from copilot#324
gusfcarvalho merged 1 commit intomainfrom
gc-fix-overdue-fuxes

Conversation

@gusfcarvalho
Copy link
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copilot AI review requested due to automatic review settings February 18, 2026 09:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes several bugs related to evidence creation timing and validation in workflow and step execution status updates. The main issue being addressed is that evidence was being created before status updates, which could lead to inconsistencies. The PR moves evidence creation to occur after status updates and relaxes validation to handle both pre- and post-transition states.

Changes:

  • Moved evidence creation from before to after status updates in both workflow and step execution services
  • Added early returns when status update is a no-op (status already matches target)
  • Fixed a typo where "complete" should have been "completed" in evidence validation
  • Updated validation to allow evidence creation for both pending/in_progress states (started) and in_progress/completed states (completed)
  • Fixed step execution service to load due_date field when needed for setDueDateIfNeeded logic
  • Updated tests to reflect that evidence now captures the post-transition status

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
internal/workflow/evidence.go Relaxed validation to allow evidence creation in both pre- and post-transition states; fixed typo changing "complete" to "completed"
internal/service/relational/workflows/workflow_execution_service.go Moved evidence creation to after status update; added early return for no-op updates
internal/service/relational/workflows/step_execution_service.go Moved evidence creation to after status update; added early return for no-op updates; added due_date to Select calls for setDueDateIfNeeded
internal/workflow/evidence_test.go Updated test expectations to reflect post-transition status; improved test names and comments for clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gusfcarvalho gusfcarvalho merged commit 43bb49a into main Feb 18, 2026
10 checks passed
@gusfcarvalho gusfcarvalho deleted the gc-fix-overdue-fuxes branch February 18, 2026 09:21
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