[users at bb.net] tags dataservice query?
Pierre Tardy
tardyp at gmail.com
Tue Feb 2 22:28:38 UTC 2016
Hi,
dustin added this a few days ago to the data api.
https://github.com/buildbot/buildbot/pull/1954
the syntax would be
data = dataService.open()
data.getBuilders(tags__contains: ‘bar’)
However the data module api does not yet support it, so there is a need to
finish the job. There is a need to implement similar filtering in the
client as well. This is needed in order to implement live update.
The code is here.
https://github.com/buildbot/buildbot/blob/master/www/data_module/src/services/data/collection/dataquery.service.coffee
I would love to see a filter with similar syntax as you are suggesting. we
could use listfilter as the operator keyword as you are suggesting.
data.getBuilders(tags__listfilter: [‘-foo’, ‘+bar’])
or.. we could use the set semantics
https://docs.python.org/2/library/sets.html
data.getBuilders(tags__lt: [‘foo’], tags__gt [‘bar’])
both solutions need changes in python data api, and coffee data module
Le mar. 2 févr. 2016 à 22:38, Greg MacDonald <gmacdonald at trionworlds.com> a
écrit :
> Hi All,
>
>
>
> Would it be possible to query for tags using the dataservice module in
> coffeescript? Maybe something like so:
>
>
>
> data = dataService.open()
>
> data.getBuilders(tags: [‘-foo’, ‘+bar’])
>
>
>
> Thx.
>
>
>
> -Greg
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160202/8f045fca/attachment.html>
More information about the users
mailing list