Skip to content

Commit 6db6f04

Browse files
committed
Add keys replacement for portfolios and apps
1 parent fe473ea commit 6db6f04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sonar/issues.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,9 @@ def pre_search_filters(endpoint: pf.Platform, params: ApiParams) -> ApiParams:
870870
return {}
871871
log.debug("Sanitizing issue search filters %s", str(params))
872872
version = endpoint.version()
873-
filters = util.dict_remap(original_dict=params.copy(), remapping={"project": COMPONENT_FILTER})
873+
filters = util.dict_remap(
874+
original_dict=params.copy(), remapping={"project": COMPONENT_FILTER, "application": COMPONENT_FILTER, "portfolio": COMPONENT_FILTER}
875+
)
874876
filters = util.dict_subset(util.remove_nones(filters), _SEARCH_CRITERIAS)
875877
if version < (10, 2, 0):
876878
# Starting from 10.2 - "componentKeys" was renamed "components"

0 commit comments

Comments
 (0)