kargo icon indicating copy to clipboard operation
kargo copied to clipboard

`PromotionInfo` contains duplicate information about the involved Freight

Open hiddeco opened this issue 3 months ago • 0 comments

Due to #1748 adding the Status of the Promotion to the PromotionInfo, and #1721 adding the Freight itself. The PromotionInfo now contains a duplicate FreightReference, as the Status of the Promotion does also include it.

  lastPromotion:
    name: ab-test-a.01hww6gj8ez5zxvgat11g5rtrt.cb03f5a
    freight:
      # ...omitted for brevity
    status:
      phase: Succeeded
      freight:
        name: cb03f5ab8aa44d64fa8680e0ff35cb47d27e9fe6
       # ...omitted for brevity

This should be addressed, possibly by removing the Status in favor of copying specific fields of interest to present in the frontend (cc: @rbreeze).

hiddeco avatar May 02 '24 09:05 hiddeco