[Git][qa/jenkins.debian.net][master] rdn: use searchParams for excuses.html
Holger Levsen (@holger)
gitlab at salsa.debian.org
Mon May 11 14:21:30 BST 2026
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
7e5a6050 by Jochen Sprickerhof at 2026-05-11T15:21:21+02:00
rdn: use searchParams for excuses.html
(cherry picked from commit 161d641a32ebcc88bd59fa9b342a5057b563607c)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- hosts/osuosl5-amd64/var/www/html/excuses.html
Changes:
=====================================
hosts/osuosl5-amd64/var/www/html/excuses.html
=====================================
@@ -56,13 +56,13 @@
return a;
}
- function searchPkgs(div, query, arch) {
+ function searchPkgs(div, source_name, arch) {
let a = document.createElement('pre');
a.appendChild(spanWith(`${arch}`));
div.appendChild(a);
let url = `/${arch}/api/v1/packages/binary?` + new URLSearchParams({
- source_name: query,
+ source_name: source_name,
distro: 'debian',
release: 'unstable',
seen_only: 'true',
@@ -121,8 +121,9 @@
// clear children
div.innerHTML = '';
const archs = ["all", "amd64", "arm64", "armhf", "i386", "ppc64el", "riscv64"];
- let query = location.hash.substr(1);
- archs.forEach(arch => searchPkgs(div, query, arch));
+ const urlParams = new URL(window.location.toLocaleString()).searchParams;
+ const source_name = urlParams.get('source_name');
+ archs.forEach(arch => searchPkgs(div, source_name, arch));
}
fetchStats();
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7e5a6050710db25ef39b1e70544cb192d2685dfe
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7e5a6050710db25ef39b1e70544cb192d2685dfe
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20260511/2963887a/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list