Ask for detailed news outlines and keep checked severities

Outlines move to geometry version 4: the news server now follows Natural
Earth's own border vertices instead of a coarse grid, and the new version is a
new cache entry. A severity a reviewer set (severityBy 'label') is kept as such
instead of reading as the rules'.
This commit is contained in:
Denis Groshev committed 2026-11-06 00:45:27 +01:00
1 parent 60fad38c3f
commit ee3593cfbd
4 files changed
+21 -5

No files matched your search

+3 -3
View File
@@ -58,8 +58,8 @@ test('reads validated hotspots, feed and outlines from the same-origin routes',
[
'/api/news/hotspots',
'/api/news/feed?hotspot=all&limit=60&today=1',
'/api/news/outline?hotspot=ua&v=3',
'/api/news/outline?country=SD&v=3',
'/api/news/outline?hotspot=ua&v=4',
'/api/news/outline?country=SD&v=4',
],
);
for (const { url, init } of calls) {
@@ -166,7 +166,7 @@ test('the host allowlist admits the client routes and refuses anything else', ()
'/api/news/air-alerts',
'/api/news/outline?hotspot=ua',
'/api/news/outline?hotspot=ua&v=2',
'/api/news/outline?country=ukraine&v=3',
'/api/news/outline?country=ukraine&v=4',
])
assert.equal(allowed(path), false, path);
});