Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion e2e/spending.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ try {
await labelStore.put('cls:ls_legacy', '2026-09-01T00:00:00.000Z');
await labelStore.put('cls:ls_malformed', '{broken');
await labelStore.put('unrelated-secret', 'must not appear');
await labelStore.put('cls:obsolete-raw-key', '2026-09-01T00:00:00.000Z');
let next = adminUrl;
const seen = new Set();
const pageSizes = [];
Expand All @@ -51,7 +52,7 @@ try {
assert.match(response.headers.get('cache-control'), /private/);
const html = await response.text();
assert.match(html, /All label sets/);
assert.doesNotMatch(html, /<script>alert|must not appear/);
assert.doesNotMatch(html, /<script>alert|must not appear|obsolete-raw-key/);
const ids = [...html.matchAll(/data-classifier="([^"]+)"/g)].map(match => match[1]);
pageSizes.push(ids.length);
for (const id of ids) { assert.ok(!seen.has(id), 'no duplicate registry rows'); seen.add(id); }
Expand Down
2 changes: 1 addition & 1 deletion src/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ ${table("Busiest classifiers", d.topLabels, ["label_names", "labels", "requests"
// ---------------------------------------------------------------- entry

async function classifierRegistry(env: Env, cursor: string) {
const listed = await env.STATS.list({ prefix: "cls:", limit: 50, ...(cursor ? { cursor } : {}) });
const listed = await env.STATS.list({ prefix: "cls:ls_", limit: 50, ...(cursor ? { cursor } : {}) });
const rows = await Promise.all(listed.keys.map(async ({ name }) => {
const raw = await env.STATS.get(name);
let labels: string[] = [];
Expand Down
Loading