File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 5757OLD_FP = "FALSE-POSITIVE"
5858NEW_FP = "FALSE_POSITIVE"
5959
60+ _MQR_SEARCH_FIELDS = (_NEW_SEARCH_SEVERITY_FIELD , _NEW_SEARCH_STATUS_FIELD , _NEW_SEARCH_TYPE_FIELD )
61+ _STD_SEARCH_FIELDS = (_OLD_SEARCH_SEVERITY_FIELD , _OLD_SEARCH_STATUS_FIELD , _OLD_SEARCH_TYPE_FIELD )
62+
6063_COMMA_CRITERIAS = (
6164 _OLD_SEARCH_COMPONENT_FIELD ,
6265 _NEW_SEARCH_COMPONENT_FIELD ,
@@ -1002,6 +1005,8 @@ def pre_search_filters(endpoint: pf.Platform, params: ApiParams) -> ApiParams:
10021005 if allowed is not None and filters [field ] is not None :
10031006 filters [field ] = list (set (util .intersection (filters [field ], allowed )))
10041007
1008+ disallowed = _STD_SEARCH_FIELDS if endpoint .is_mqr_mode () else _MQR_SEARCH_FIELDS
1009+ filters = {k : v for k , v in filters .items () if k not in disallowed }
10051010 filters = {k : util .list_to_csv (v ) for k , v in filters .items () if v }
10061011 log .debug ("Sanitized issue search filters %s" , str (filters ))
10071012 return filters
You can’t perform that action at this time.
0 commit comments