diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-03 13:26:52 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-03 13:26:52 -0400 |
commit | 4ba84964a90ec93d6d30d577e9e00c3e5b4fca83 (patch) | |
tree | b9d603370471360f62e43e9dfecf9c64c07b3d99 /src/data/composite/things/track/withSharedAdditionalNames.js | |
parent | 5c1d9fb97b8ecc61c0343d6eee63a735c34e53c9 (diff) |
data: individual custom additional name list props
Diffstat (limited to 'src/data/composite/things/track/withSharedAdditionalNames.js')
-rw-r--r-- | src/data/composite/things/track/withSharedAdditionalNames.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/data/composite/things/track/withSharedAdditionalNames.js b/src/data/composite/things/track/withSharedAdditionalNames.js deleted file mode 100644 index bba675c9..00000000 --- a/src/data/composite/things/track/withSharedAdditionalNames.js +++ /dev/null @@ -1,46 +0,0 @@ -// Compiles additional names directly provided on other releases. - -import {input, templateCompositeFrom} from '#composite'; - -import {raiseOutputWithoutDependency} from '#composite/control-flow'; -import {withFlattenedList} from '#composite/data'; - -import CacheableObject from '#cacheable-object'; - -import withOtherReleases from './withOtherReleases.js'; - -export default templateCompositeFrom({ - annotation: `withSharedAdditionalNames`, - - outputs: ['#sharedAdditionalNames'], - - steps: () => [ - withOtherReleases(), - - raiseOutputWithoutDependency({ - dependency: '#otherReleases', - mode: input.value('empty'), - output: input.value({'#sharedAdditionalNames': []}), - }), - - // TODO: Using getUpdateValue is always a bit janky. - - { - dependencies: ['#otherReleases'], - compute: (continuation, { - ['#otherReleases']: otherReleases, - }) => continuation({ - ['#otherReleases.additionalNames']: - otherReleases.map(release => - CacheableObject.getUpdateValue(release, 'additionalNames') - ?? []), - }), - }, - - withFlattenedList({ - list: '#otherReleases.additionalNames', - }).outputs({ - '#flattenedList': '#sharedAdditionalNames', - }), - ], -}); |