From edc572356d1b0cd411d051d79568a1117c03c4cf Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Wed, 18 Dec 2024 12:14:28 +0100 Subject: [PATCH] graph: display the oci graph Cincinnati now serves a separate graph for OCI images, since https://github.com/coreos/fedora-coreos-cincinnati/pull/99 Allow displaying the oci graph by passing `oci=true` as a query parameter. See https://github.com/coreos/fedora-coreos-tracker/issues/1823 --- graph/index.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/graph/index.html b/graph/index.html index 7893038..8823b7b 100644 --- a/graph/index.html +++ b/graph/index.html @@ -25,6 +25,7 @@ var pageInfra = ""; var pageStream = ""; var pageArch = ""; + var pageOci = false; var pageStreamDetails = zeroStream(); @@ -59,7 +60,7 @@ @@ -171,7 +180,13 @@ } pageInfra = infra; - const updatesUrl = `https://raw-updates.coreos.${infraPrefix}fedoraproject.org/v1/graph?basearch=${basearch}&stream=${stream}`; + var oci = urlParams.get('oci'); + if (oci === null) { + oci = false; + } + pageOci = oci; + + const updatesUrl = `https://raw-updates.coreos.${infraPrefix}fedoraproject.org/v1/graph?basearch=${basearch}&stream=${stream}&oci=${oci}`; return updatesUrl; }