-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update exported TaskState to include a "started" boolean. Record the task started state in the database and show a different icon in the UI. Tracking started enables several improvements. This change improves resuming of workflows to mark tasks that started without finishing as incomplete. This will prevent workflows resuming from an unknown state, where a task may not be safe to resume by default, such as sending a public announcement. Also, this change makes minor tweaks to the UI for task ordering, putting the most recently updated tasks at the top of the list. It also fixes a minor but confusing bug around retrying "approval" tasks. Updates golang/go#53382 Change-Id: Icff1c0df541a6e11a7bb0ab55beef60cd18a074a Reviewed-on: https://go-review.googlesource.com/c/build/+/417221 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Jenny Rakoczy <[email protected]> Auto-Submit: Jenny Rakoczy <[email protected]>
- Loading branch information
Showing
13 changed files
with
142 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
internal/relui/migrations/20220712205734_add_started_to_tasks.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Copyright 2022 The Go Authors. All rights reserved. | ||
-- Use of this source code is governed by a BSD-style | ||
-- license that can be found in the LICENSE file. | ||
|
||
ALTER TABLE tasks | ||
DROP COLUMN started; |
6 changes: 6 additions & 0 deletions
6
internal/relui/migrations/20220712205734_add_started_to_tasks.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Copyright 2022 The Go Authors. All rights reserved. | ||
-- Use of this source code is governed by a BSD-style | ||
-- license that can be found in the LICENSE file. | ||
|
||
ALTER TABLE tasks | ||
ADD COLUMN started bool NOT NULL DEFAULT FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.