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
6 changes: 3 additions & 3 deletions scripts/lib/sbom/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ function normaliseDottedTag(tag) {
}

/**
* Build the stream-prefixed cache key used in FeedItems.tsx.
* extractReleaseTag() in FeedItems produces: stable-YYYYMMDD, gts-YYYYMMDD,
* etc.
* Build the stream-prefixed cache key read by FirehoseFeed.tsx.
* sbomKeyForRelease() in src/utils/firehoseHelpers.ts looks up
* stable-YYYYMMDD, stable-daily-YYYYMMDD, etc.
*/
function buildCacheKey(streamPrefix, dateStr) {
return `${streamPrefix}-${dateStr}`;
Expand Down
2 changes: 1 addition & 1 deletion scripts/sbom-parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test("normaliseDottedTag leaves unrelated streams alone", () => {
assert.equal(normaliseDottedTag("gts-20260331"), "gts-20260331");
});

test("buildCacheKey matches the key FeedItems.tsx derives", () => {
test("buildCacheKey matches the key sbomKeyForRelease derives", () => {
assert.equal(buildCacheKey("stable", "20260331"), "stable-20260331");
});

Expand Down
Loading
Loading