Skip to content

Commit 200eef3

Browse files
committed
Use common JSON conversion helper
1 parent b8b61c9 commit 200eef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sonar/util/qualityprofile_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from typing import Any
2323
from sonar import utilities as util
2424
from sonar.util import types
25+
from sonar.util import common_json_helper
2526

2627
KEY_PARENT = "parent"
2728
KEY_CHILDREN = "children"
@@ -62,7 +63,7 @@ def __convert_qp_json(qp_json: dict[str, Any]) -> list[dict[str, Any]]:
6263
r.pop("severities")
6364
if "children" in v:
6465
v["children"] = __convert_qp_json(v["children"])
65-
qp_json[k] = util.order_keys(v, *KEY_ORDER)
66+
qp_json[k] = util.order_keys(common_json_helper.convert_common_fields(v, with_permissions=False), *KEY_ORDER)
6667
return util.dict_to_list(qp_json, "name")
6768

6869

0 commit comments

Comments
 (0)