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
so there is a significance difference between push depending on the the existence of SELF (the reimplementation using merge as in the PR suffers from similar yet different problems. (chagning the code and ending with SELF; gives different issues altogether, but they are still different).
my question is: how to handle this. keep the old code, but warn in the doc that push/npush/push_if have undesired sideeffects in DML blocks?
some sanity could be restored by using append in push/push_if, but there is no equivalent of append for dicts (in particular, merge with single argument to update SELF is not supported; see quattor/pan#103).
The text was updated successfully, but these errors were encountered:
we will fix this issue as a bug-fix in the core templates (probably by using append).
but we will not add push as a buitlin (see quattor/pan#108 for that discussion)
While working on #102, i stumbled on some ill defined behaviour of
push
(which also exists innpush
andpush_if
)current master returns
so there is a significance difference between push depending on the the existence of
SELF
(the reimplementation using merge as in the PR suffers from similar yet different problems. (chagning the code and ending withSELF;
gives different issues altogether, but they are still different).my question is: how to handle this. keep the old code, but warn in the doc that push/npush/push_if have undesired sideeffects in DML blocks?
some sanity could be restored by using
append
inpush
/push_if
, but there is no equivalent of append for dicts (in particular,merge
with single argument to updateSELF
is not supported; see quattor/pan#103).The text was updated successfully, but these errors were encountered: