From 77fc589466fc0c04326231638c5ec6026e7948d4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 20:49:26 -0400 Subject: data: soupy reverse --- .../wiki-data/withReverseContributionList.js | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 src/data/composite/wiki-data/withReverseContributionList.js (limited to 'src/data/composite/wiki-data/withReverseContributionList.js') diff --git a/src/data/composite/wiki-data/withReverseContributionList.js b/src/data/composite/wiki-data/withReverseContributionList.js deleted file mode 100644 index 04dc52d7..00000000 --- a/src/data/composite/wiki-data/withReverseContributionList.js +++ /dev/null @@ -1,42 +0,0 @@ -// Analogous implementation for withReverseReferenceList, for contributions. - -import withReverseList_template from './helpers/withReverseList-template.js'; - -import {input} from '#composite'; - -import {withFlattenedList, withMappedList, withPropertyFromList} - from '#composite/data'; - -export default withReverseList_template({ - annotation: `withReverseContributionList`, - - propertyInputName: 'list', - outputName: '#reverseContributionList', - - customCompositionSteps: () => [ - withPropertyFromList({ - list: input('data'), - property: input('list'), - }).outputs({ - '#values': '#contributionLists', - }), - - withFlattenedList({ - list: '#contributionLists', - }).outputs({ - '#flattenedList': '#referencingThings', - }), - - withPropertyFromList({ - list: '#referencingThings', - property: input.value('artist'), - }), - - withMappedList({ - list: '#referencingThings.artist', - map: input.value(artist => [artist]), - }).outputs({ - '#mappedList': '#referencedThings', - }), - ], -}); -- cgit 1.3.0-6-gf8a5