Release v2.18.0: template default content
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 2m2s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 31s

This commit is contained in:
lzstealth committed 2026-10-24 18:03:38 +01:00
1 parent 48e8f3eb4b
commit 24f1603b43
54 files changed
+1421 -151

No files matched your search

+7 -4
View File
@@ -166,7 +166,7 @@ test('media library backfills existing image and video uploads', async () => {
}
});
test('media library counts slide and template references', async () => {
test('media library counts slide, template background, and region default references', async () => {
const queries = [];
const pool = {
async query(sql, params) {
@@ -174,16 +174,19 @@ test('media library counts slide and template references', async () => {
if (sql.includes('FROM c_slides')) {
return [[{ ref_count: 2 }]];
}
return [[{ ref_count: 1 }]];
if (sql.includes('FROM c_templates')) return [[{ ref_count: 1 }]];
return [[{ ref_count: 3 }]];
}
};
assert.equal(await countMediaAssetReferences(pool, '/media/uploads/shared.png'), 3);
assert.equal(queries.length, 2);
assert.equal(await countMediaAssetReferences(pool, '/media/uploads/shared.png'), 6);
assert.equal(queries.length, 3);
assert.equal(queries[0].params[0], '/media/uploads/shared.png');
assert.equal(queries[1].params[0], '/media/uploads/shared.png');
assert.equal(queries[2].params[0], '/media/uploads/shared.png');
assert.match(queries[0].sql, /LOCATE/);
assert.match(queries[0].sql, /CAST\(COALESCE\(content_json, ''\) AS CHAR\)/);
assert.match(queries[2].sql, /default_content_json/);
});
test('media library upload and delete routes audit successful asset changes', async () => {