Re: REST-API: Show retired status

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Fri, Mar 06, 2020 at 06:03:19PM -0500, John P. Rouillard wrote:
> 
> IIRC a .../rest/data/issue request won't show a retired issue?  Does
> .../rest/data/issue?id=1 return only issue1 in the collection or does
> it return an empty collection? I think the latter. So getting an empty
> collection, you have achieved your goal. It does require a search
> rather than a direct lookup (so not quite so quickly a check).

That an idea:
issue?id=1 return nothing
issue/1    return the item even if retired

> If it is not done often, maybe we don't have to optimize for the case.
> The id field is the key it should be indexed for fast lookup anyway,
> so the search may not be any slower/faster than issue/1.

Roundup has an index on id for every class afair

Note that I have someone programming with the API and they didn't
understand the semantics, but the above is easy to explain.

Thanks!
Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]
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.