[users at bb.net] tags dataservice query?

Greg MacDonald gmacdonald at trionworlds.com
Tue Feb 2 22:59:38 UTC 2016


That sounds great! I’m a little pressed for time at the moment, otherwise I might give it a go. Sounds like everything is there.

From: Pierre Tardy [mailto:tardyp at gmail.com]
Sent: Tuesday, February 02, 2016 2:29 PM
To: Greg MacDonald; users at buildbot.net
Subject: Re: [users at bb.net] tags dataservice query?

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<mailto: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<mailto: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/5c32e6f0/attachment.html>


More information about the users mailing list