Conversation
|
update:
|
| if (item.FinishedTime) { | ||
| if (item.Output && item.Output.Error) { | ||
| if (item.RetryCount) { | ||
| // TODO: |
| return { icon: 'carbon--MisuseOutline' } | ||
| } | ||
| } else { | ||
| return { icon: 'carbon--CheckmarkOutline', tooltip: 'yay' } |
There was a problem hiding this comment.
Don't think we need this tooltip.
|
@kbrock do you have a TLDR for why it wasn't working before? What was it about tasks that was causing it to work? I'm assuming it is because it used to check for RunnerContext but just making sure that's what the real issue was |
| if (item.Output && item.Output.Error) { | ||
| if (item.RetryCount) { | ||
| // TODO: | ||
| return { icon: 'carbon--RetryFailed', tooltip: `${item.Output.Error} : ${item.RetryCount}` } |
There was a problem hiding this comment.
tooltip wise, I'm concerned the error will be too big for a tooltip. If there is no error, will it show : 4? Also there's no indicator that the trailing number is the retry count.
|
@kbrock Can we take out the tooltip stuff and do that in a separate PR? I think fixing the icons can be it's own thing. |
|
Again, can we remove the tooltips / titles entirely from this PR? I'd like to merge the bug fix separate from the enhancement. I'm good with the new icon for retry failed. |
|
@agrare we were looking at State.RunnerContext.Error. Now were looking at State.Error (and friends) update:
update:
/paired with @GilbertCherrie Dev notes: |
|
wip: I need to test the just failing case. Think the retry logic should be bubbled up one level. |
Before ====== Icons were working for Tasks Icons were only displaying play for all others After ===== Icons are displaying for all Tasks
|
Checked commit kbrock@bbf70d8 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
|
update:
un-wip: resolved |
|
Backported to |
Update Workflow State icons (cherry picked from commit e5d7cb2)
Before
Icons were working for Tasks
Icons were only displaying play for all others
After
Icons are displaying for all Tasks