#121 coreos-download: use `parent-pkgdiff` directly from metadata
Merged by dustymabe. Opened by abai.
fedora-web/ abai/websites coreos-download  into  master

Download 121.patch

Previously we need to calculate the pkg diff between releases manually
from the existing build metadata. However, this will not be the case after
the build metadata includes parent-pkgdiff field which already calculates
the pkgdiffs between releases using coreos-assembler. In the future, we
should be able to completely remove the manual calculation logic from frontend
after a few releases and revert back to the same logic as fedora-coreos-browser.

Reference: https://github.com/coreos/coreos-assembler/pull/1507
Signed-off-by: Allen Bai abai@redhat.com

cc @jlebon @dustymabe

Sorry for the magic indexing here, the metaList is an array of metadata arrays, e.g. [ [ "x86_64", $meta.json ] ]

After there are enough releases that makes manual calculation completely out of scope, the code should be able to revert to the same as fedora-coreos-browser and the handling of magic indexing can be completely removed.

Seems reasonable to me!

Pull-Request has been merged by dustymabe

Metadata