Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base_output: useless with array results #53

Open
1 of 2 tasks
loopfz opened this issue Dec 27, 2019 · 2 comments
Open
1 of 2 tasks

base_output: useless with array results #53

loopfz opened this issue Dec 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@loopfz
Copy link
Member

loopfz commented Dec 27, 2019

  • I'm submitting a ...

    • bug report
    • 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 loopfz added the enhancement New feature or request label Dec 27, 2019
@rclsilver
Copy link
Contributor

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

@rclsilver
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants