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

Improve adding data to final Result objects #65

Merged
merged 1 commit into from Dec 28, 2022

Conversation

otsch
Copy link
Member

@otsch otsch commented Dec 28, 2022

Add new step methods addToResult() and addLaterToResult(). addToResult() is a single replacement for setResultKey() and addKeysToResult() (which are removed) that can be used for array and non array output.
addLaterToResult() is a new method that does not create a Result object immediately, but instead adds the output of the current step to all the Results that will later be created originating from the current output.

New step method createsResult(), so you can differentiate if a step creates a Result object, or just keeps data to add to results later (new addLaterToResult() method). Primarily relevant for library internal use.

getResultKey() is also removed with setResultKey(). It's removed without replacement, as it doesn't really make sense any longer.

Add new step methods `addToResult()` and `addLaterToResult()`.
`addToResult()` is a single replacement for `setResultKey()` and
`addKeysToResult()` (which are removed) that can be used for array and
non array output.
`addLaterToResult()` is a new method that does not create a Result
object immediately, but instead adds the output of the current step to
all the Results that will later be created originating from the current
output.

New step method `createsResult()`, so you can differentiate if a step
creates a Result object, or just keeps data to add to results later
(new `addLaterToResult()` method). Primarily relevant for library
internal use.

`getResultKey()` is also removed with `setResultKey()`. It's removed
without replacement, as it doesn't really make sense any longer.
@otsch otsch merged commit ccebbe3 into main Dec 28, 2022
@otsch otsch deleted the feature/add-to-result-improvement branch December 28, 2022 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant