Store reusable scraper capabilities in scrape DB

This commit is contained in:
2026-08-06 01:01:55 +02:00
parent b11ada9c91
commit 9e3b4de4e2
7 changed files with 411 additions and 12 deletions
+3
View File
@@ -59,6 +59,9 @@ test("mapping source queries are read-only", () => {
assert.doesNotThrow(() =>
assertReadOnlySql(mappingSourcesSql({ manufacturerId: 13 })),
);
assert.match(mappingSourcesSql({ manufacturerId: 13 }), /scrape_manufacturer_sources/);
assert.match(mappingSourcesSql({ manufacturerId: 13 }), /scrape_source_capabilities/);
assert.match(mappingSourcesSql({ manufacturerId: 13 }), /capabilities/);
});
test("manufacturer refresh updates are narrowly allowlisted", () => {