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:tar...@gmail.com] Sent: Tuesday, February 02, 2016 2:29 PM To: Greg MacDonald; users@buildbot.net Subject: Re: [us...@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 <gmacdon...@trionworlds.com<mailto:gmacdon...@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@buildbot.net<mailto:users@buildbot.net> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users