Re: Get all issues with attached files

anatoly techtonik <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <CAPkN8xJ8v+VK6_3bG9UP9ChryUoJAg6jykDG9fDKmOtuAAQt6g@mail.gmail.com>
On Tue, Sep 30, 2014 at 10:34 AM, Ralf Schlatterbeck <[email protected]> wrote:
> On Mon, Sep 29, 2014 at 02:39:05PM +0300, anatoly techtonik wrote:
>> I am trying to get all issues with attachments in one query,
>> but I can't find what value I should specify so that Roundup
>> filter matches "any" logic.
> ...
>> It looks like the only way is to get ids of all issues, then all
>> issues without patches (files=-1) and substract one list from
>> the other.
>
> Yes, currently there is no way to specify queries that can do this.
> We also can't do boolean conditions (except for the case that specifying
> constraints on several attributes are automatically ANDed and specifying
> severyl values for a single attribute are automatically ORed).

The interface is broken for my case:

>>> import xmlrpclib
>>> z = xmlrpclib.ServerProxy('http://bugs.python.org/xmlrpc', allow_none=True)
>>> from pprint import pprint as pp
>>> pp(z.display('issue9643', 'files'))
{'files': []}
>>> pp(z.filter('issue', ['9643'], {'files':-1}))
['9643']
>>> pp(z.filter('issue', ['9643'], {'files':[]}))
['9643']
>>> pp(z.filter('issue', ['9643'], {'files':['888']}))
['9643']
>>> pp(z.filter('issue', ['9643'], {'files':'888'}))
['9643']

There is definitely a `files` field which is empty, but no way to check that.
The Roundup is also suspiciously silent about if query is invalid.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.