Re: [Bug?] Filtering on property=-1 and ordering by the same property at the same time

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Sun, May 16, 2021 at 01:26:14PM -0400, John P. Rouillard wrote:
> In any
> case I confirm that searching for -1 in link type fields (assignedto)
> with sorting on the same field pretends that -1 is not
> specified. Sorting by assignedto with filter:
> 
>     assignedto=-1,1,Admin1
> 
> behaves as though the filter was:
> 
>     assignedto=1,Admin1
>  
> it's only the search using a negative pseudovalue along with some
> other value that is problematic. Filter:
> 
>    assignedto=-1,-2
> 
> returns no results but I know there are issues without anybody
> assigned.
> 
>    assignedto=1,-2
> 
> acts just like: assignedto=1 regardless of the sort field. This seems
> to be a new problem.

Thanks!
I'm in the process of writing a test for this.

Note that expressions for Link (e.g. your examples 1,-2 or -1,-2) have
*never* worked. Expressions currently are only implemented for Multilink
properties.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   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.