kargo icon indicating copy to clipboard operation
kargo copied to clipboard

Add additional information to Stage History

Open rbreeze opened this issue 2 years ago • 2 comments

Background In the UI DAG view, we'd like to indicate Stages whose most recent promotions failed (see https://github.com/akuity/kargo/issues/1207). The only way to do this today is to call the ListPromotions API repeatedly for each Stage, which would be too resource intensive for medium- to large-scale projects.

Solution Right now, the history field in StageStatus is simply an array of the 10 most recent freight. We will expand this to include information about the Promotion associated with each Freight.

rbreeze avatar Dec 18 '23 19:12 rbreeze

@rbreeze, I wanted to confirm you still need this...

krancour avatar Feb 23 '24 17:02 krancour

I've just realized this may not work. A failed Promotion won't result in a new history entry in the Stage status. This means history is just going to show successful Promotions. 🤦‍♂️

We may need to rethink this.

krancour avatar Mar 07 '24 22:03 krancour

Fixed by https://github.com/akuity/kargo/pull/2109

rbreeze avatar Jun 27 '24 16:06 rbreeze