You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The set_* plan functions should all return a Target object for consistency and to allow chaining. Currently the add_facts function returns a hash of the updated facts.
Describe the Solution You Would Like
Return a Target when invoking add_facts in a plan.
Describe Alternatives You've Considered
Introduce a set_facts method similar to set_config.
Additional Context
Changing the return type is a breaking change, it should be part of Bolt 2.0 effort.
The text was updated successfully, but these errors were encountered:
In order to be more consistent with the other `set_*` plan methods for setting target data, this commit updates the `add_facts` function to return a `Target` where previously a `Hash` of the updated facts was returned. Given this is a breaking change it is gated with the `future` flag.
donoghuc
added a commit
to donoghuc/bolt
that referenced
this issue
Oct 14, 2019
Use Case
The
set_*
plan functions should all return aTarget
object for consistency and to allow chaining. Currently theadd_facts
function returns a hash of the updated facts.Describe the Solution You Would Like
Return a
Target
when invokingadd_facts
in a plan.Describe Alternatives You've Considered
Introduce a
set_facts
method similar toset_config
.Additional Context
Changing the return type is a breaking change, it should be part of Bolt 2.0 effort.
The text was updated successfully, but these errors were encountered: