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 <[email protected]> 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 > [email protected] > https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] https://lists.buildbot.net/mailman/listinfo/users
