« get me outta code hell

data, content: remove shared and inferred additional names - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/validators.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-30 15:45:13 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-10-30 16:04:28 -0300
commitfb319c8e0bf69d9925389edf674de938ea489e25 (patch)
treea60bd4f07ce72b9da394a3bf4db8fee91842eb78 /src/data/validators.js
parent859d1777a4f6f6d583466aaf72357d4d611f3909 (diff)
data, content: remove shared and inferred additional names
Removes:
- inferredAdditionalNameList (#composite/things/track) etc
- sharedAdditionalNameList (#composite/things/track) etc
- "specificAlbumExclusive" / "This Album Only" field
- "from" property / "on {ALBUMS}" accent (content)
- generateTrackAdditionalNamesBox (no leftover dynamics)
- related snapshot test
Diffstat (limited to 'src/data/validators.js')
-rw-r--r--src/data/validators.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index 22dc160c..31c7025a 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -920,21 +920,6 @@ export function validateWikiData({
 export const isAdditionalName = validateProperties({
   name: isContentString,
   annotation: optional(isContentString),
-
-  // TODO: This only applies for tracks, not additional names
-  // in general.
-  specificAlbumExclusive: optional(isBoolean),
-
-  // TODO: This only allows indicating sourcing from a track.
-  // That's okay for the current limited use of "from", but
-  // could be expanded later.
-  from:
-    // Double TODO: Explicitly allowing both references and
-    // live objects to co-exist is definitely weird, and
-    // altogether questions the way we define validators...
-    optional(anyOf(
-      validateReferenceList('track'),
-      validateWikiData({referenceType: 'track'}))),
 });
 
 export const isAdditionalNameList = validateArrayItems(isAdditionalName);