I've been looking at this a bit. Generating the diff in time is easy (actually easier than doing it in its current position, I think), but showing it is hard because diffs are linked to SPRs and PCJs don't have a fixed SPR.
I wonder if it would be terrible to just add an optional SPR reference to the PCJ table, so that we could use that to look up PackageDiffs as needed? We don't always have an SPR in hand (e.g. in DistroSeriesLocalDifferencesView.requestUpgrades), but as far as I can see the cases where we don't have one when creating the PCJ don't matter for queue reviews.
I've been looking at this a bit. Generating the diff in time is easy (actually easier than doing it in its current position, I think), but showing it is hard because diffs are linked to SPRs and PCJs don't have a fixed SPR.
I wonder if it would be terrible to just add an optional SPR reference to the PCJ table, so that we could use that to look up PackageDiffs as needed? We don't always have an SPR in hand (e.g. in DistroSeriesLoc alDifferencesVi ew.requestUpgra des), but as far as I can see the cases where we don't have one when creating the PCJ don't matter for queue reviews.