Bug #18003

filter group validation incorrectly rejects 'contains' and 'exists'

Added by Peter Amstutz about 1 month ago. Updated 5 days ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

api/app/models/groups.rb

        if ! ["=","<","<=",">",">=","!=","like","ilike","in","not in","is_a"].include?(filter[1].downcase)
          errors.add :properties, "filter operator is not valid (must be =,<,<=,>,>=,!=,like,ilike,in,not in,is_a)" 
          return
        end

This is missing the 'contains' and 'exists' operators.


Subtasks

Task #18037: ReviewNewLucas Di Pentima

History

#1 Updated by Peter Amstutz about 1 month ago

  • Description updated (diff)

#2 Updated by Peter Amstutz about 1 month ago

  • Release set to 41

#3 Updated by Ward Vandewege about 1 month ago

This may be more complicated than just adding the operators; we've tried adding them and it produced confusing results.

#4 Updated by Peter Amstutz about 1 month ago

  • Release deleted (41)

#5 Updated by Peter Amstutz about 1 month ago

  • Assigned To set to Ward Vandewege

#6 Updated by Peter Amstutz 19 days ago

  • Target version changed from 2021-09-01 sprint to 2021-09-15 sprint

#7 Updated by Peter Amstutz 5 days ago

  • Target version changed from 2021-09-15 sprint to 2021-09-29 sprint

Also available in: Atom PDF