utask icon indicating copy to clipboard operation
utask copied to clipboard

base_output: useless with array results

Open loopfz opened this issue 6 years ago • 2 comments

  • I'm submitting a ...

    • [ ] bug report
    • [x] feature request
  • What is the current behavior? if I configure

base_output:
    foo: bar

for a step that returns an array, my base output is ignored.

  • What is the expected behavior? I'd like to be able to access my base output (important to keep local context in foreach step chains). This could mean that the base_output should be injected in each item of the result array? Then how does this work if the result array is a list of scalars (ie, list of IDs) ?

  • Which version of uTask are you using? 1.1.0

  • Please tell us about your environment

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

loopfz avatar Dec 27 '19 10:12 loopfz

Hi, we inject the iterator object in the children metadata (see #414). This could be enough for you?

rclsilver avatar Apr 13 '23 06:04 rclsilver

As we discussed, it could be a good idea to add the 'base_output' content to each item in a slice.

rclsilver avatar May 22 '23 13:05 rclsilver