{"push_id":598901552,"size":1,"distinct_size":1,"ref":"refs/heads/leftjoin-accept-results","head":"c5ed364b0b820d7f3b7a2ff3344f4cd311a99c85","before":"d8671d4aae9fe2581cb58b1de521581511924e6e","commits":[{"sha":"c5ed364b0b820d7f3b7a2ff3344f4cd311a99c85","author":{"email":"b617834f89be0c2a85d223f602f0a5edf9446141@vimeo.com","name":"Dieter Plaetinck"},"message":"make eval() take resultslices next to string/expr\n\nfixes #753\n\nthis means that callers can transparanetly supply resultslices,\nstrings and expressions.\nAs an end user, this means functions can take expressions or results.\nOne case in particular where this proves very useful, is LeftJoin.\nBefore, LeftJoin could not take a result, it would only take expressions\nto evaluate to results, and then joins the results.\nSo you had no control over the order.\nNow however, LeftJoin also accept resultslices, which means you can\ncontrol sorting via an intermediate step like so:\n\n{{$sorted := (.EvalAll .Alert.Vars.foo).DescByValue}}\n{{range $r := .LeftJoin $sorted_importance .Alert.Vars.bar}}\n...\n{{end}}\n\nhere we sort by any arbitrary \"dimension\", in this case $foo.","distinct":true,"url":"https://api.github.com/repos/vimeo/bosun/commits/c5ed364b0b820d7f3b7a2ff3344f4cd311a99c85"}]}