kargo icon indicating copy to clipboard operation
kargo copied to clipboard

Wrong tooltip while freight is being promoted

Open alexmt opened this issue 11 months ago • 12 comments

Checklist

  • [x] I've searched the issue queue to verify this is not a duplicate bug report.
  • [x] I've included steps to reproduce the bug.
  • [x] I've pasted the output of kargo version.
  • [x] I've pasted logs, if applicable.

Description

Wrong tooltip while freight is being promoted. See attached screenshot.

Screenshots

image

Steps to Reproduce

Trying to promote frieght to any stage

Version

v1.1.1

alexmt avatar Jan 07 '25 17:01 alexmt

@krancour / @hiddeco did we remove or move to somewhere else the freight details in stage's current promotion field?

Marvin9 avatar Jan 29 '25 10:01 Marvin9

If we did, it was a long time ago.

If you point me to where in the UI code I can find this tooltip, I can investigate.

krancour avatar Jan 29 '25 12:01 krancour

Sure.. there you go @krancour

Promotion reference has that attribute so its not giving type error, I assume the use of it was discarded at some point

Marvin9 avatar Jan 30 '25 03:01 Marvin9

Thanks @Marvin9!

Hmmm. That field should be set.

This smells like a back end problem. 👀

krancour avatar Jan 30 '25 19:01 krancour

I'll take this one over for now.

krancour avatar Jan 30 '25 19:01 krancour

After discussing with @krancour , I'll be taking this one.

nitishfy avatar Feb 19 '25 16:02 nitishfy

While looking into potential causes, I came across the following error in the reconciler setup:

Cannot use 'predicate.GenerationChangedPredicate{}' (type predicate.GenerationChangedPredicate) as the type TypedPredicate[object] 
Type does not implement 'TypedPredicate[object]' need the method: Update(event.TypedUpdateEvent[object]) bool 
have the method: Update(e event.TypedUpdateEvent[object]) bool

References:

  • https://github.com/akuity/kargo/blob/main/internal/controller/stages/regular_stages.go#L171
  • https://github.com/akuity/kargo/blob/main/internal/controller/warehouses/warehouses.go#L96

I'm not sure if this could be related to the tooltip issue, but I wanted to check if this might be affecting how Freight is being processed. Additionally, can anyone guide me on which part of the source code I should focus on to debug this further? Any pointers on where the tooltip gets its data from would be really helpful.

nitishfy avatar Feb 20 '25 11:02 nitishfy

That error is unrelated, but worth looking into independently of this. Please open another issue.

Additionally, can anyone guide me on which part of the source code I should focus on to debug this further? Any pointers on where the tooltip gets its data from would be really helpful.

@Marvin9 linked to relevant UI code here, but the links weren't permalinks, and it seems the files in question have changed enough that the links are no longer pointing to the relevant lines.

🙏 @Marvin9 can you possibly provide some updated links to help @nitishfy can see more clearly where the UI gets the data from, so he can dig in deeper on the back end and see what's going on?

krancour avatar Feb 20 '25 14:02 krancour

Sure. This is the source for UI. You can observe the stage's live manifest to debug the issue. Basically this field must have freight's name

Marvin9 avatar Feb 21 '25 05:02 Marvin9

That error is unrelated, but worth looking into independently of this. Please open another issue

Issue created

nitishfy avatar Feb 24 '25 12:02 nitishfy

@nitishfy please lmk if you need someone from my team to take this over.

krancour avatar Apr 07 '25 20:04 krancour

@krancour sorry for the delay. I've been caught up with some other work. Please assign this to someone from your team. Thank you!

nitishfy avatar Apr 23 '25 06:04 nitishfy

@Marvin9 @rpelczar is this already fixed in #3941?

Or do we still think it's a back end issue?

krancour avatar Apr 30 '25 17:04 krancour

I think its backend issue but new pipeline revamp just lead you to granular details of promotion

Marvin9 avatar Apr 30 '25 20:04 Marvin9

So potentially a non-issue now then?

krancour avatar Apr 30 '25 22:04 krancour

I think so, feel free to reopen otherwise

Marvin9 avatar May 09 '25 10:05 Marvin9