Project

General

Profile

Actions

Bug #18003

closed

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

Added by Peter Amstutz over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-
Release relationship:
Auto

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 1 (0 open1 closed)

Task #18037: Review 18003-support-exists-contains-in-filter-groupsResolvedPeter Amstutz09/28/2021Actions
Actions

Also available in: Atom PDF