[Buildbot-devel] Filtering a rest request by a nested value

Pierre Tardy tardyp at gmail.com
Mon Mar 30 17:23:34 UTC 2015


Le lun. 30 mars 2015 à 18:28, Francesco Di Mizio <francescodimizio at gmail.com>
a écrit :

> Got latest and gave websocket a try. As a test, I am sending:
>
> {"_id": 11111, "cmd" : "startConsuming", "path" : "*"}
>
> and the message I get back is:
>
> {"msg":"OK","code":200,"_id":11111}
>
> I on purpose used * just to make sure to catch something.
>

You did wrong on that assumption. * is a wildcard, but does not eat several
path elements.

You should ask for '*.*.*'  , you will get 'builds.1.new',
'buildrequests.2.update', etc. but if you only say '*' you'll get nothing
as there are no endpoint talking on a one element path.

Regards
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150330/b3ad9ee6/attachment.html>


More information about the devel mailing list