From 9bf9996d6f9eec874b3d1c2f4e4cafbc687c3f18 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Oct 2024 13:56:08 -0300 Subject: data: filterReferenceErrors: basic series album ref error report --- src/data/checks.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/data/checks.js b/src/data/checks.js index f5aa551f..4dc1e1d0 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -208,6 +208,10 @@ export function filterReferenceErrors(wikiData, { flashes: 'flash', }], + ['groupData', { + serieses: '_serieses', + }], + ['trackData', { artistContribs: '_contrib', contributorContribs: '_contrib', @@ -258,6 +262,15 @@ export function filterReferenceErrors(wikiData, { // need writing, humm...) writeProperty = false; break; + + case '_serieses': + if (value) { + // Doesn't report on which series has the error, but... + value = value.flatMap(series => series.albums); + } + + writeProperty = false; + break; } if (value === undefined) { @@ -294,6 +307,10 @@ export function filterReferenceErrors(wikiData, { }; break; + case '_serieses': + findFn = boundFind.album; + break; + case '_trackNotRerelease': findFn = trackRef => { const track = boundFind.track(trackRef); -- cgit 1.3.0-6-gf8a5