« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/artist.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/artist.js')
-rw-r--r--src/data/things/artist.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js
index 6d5e33c0..8ac370c2 100644
--- a/src/data/things/artist.js
+++ b/src/data/things/artist.js
@@ -34,7 +34,7 @@ export class Artist extends Thing {
   static [Thing.referenceType] = 'artist';
   static [Thing.wikiDataArray] = 'artistData';
 
-  static [Thing.getPropertyDescriptors] = ({Album, Flash, Track}) => ({
+  static [Thing.getPropertyDescriptors] = ({Album, Flash, Group, Track}) => ({
     // Update & expose
 
     name: name('Unnamed Artist'),
@@ -74,6 +74,10 @@ export class Artist extends Thing {
       class: input.value(Flash),
     }),
 
+    groupData: wikiData({
+      class: input.value(Group),
+    }),
+
     trackData: wikiData({
       class: input.value(Track),
     }),
@@ -135,6 +139,11 @@ export class Artist extends Thing {
       list: input.value('commentatorArtists'),
     }),
 
+    closelyLinkedGroups: reverseReferenceList({
+      data: 'groupData',
+      list: input.value('closelyLinkedArtists'),
+    }),
+
     totalDuration: artistTotalDuration(),
   });