mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
Support include_subprojects flag in reports.get_all_ex endpoint
This commit is contained in:
parent
8061dfedbb
commit
5239755066
@ -706,6 +706,13 @@ get_all_ex {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"999.0": ${get_all_ex."2.23"} {
|
||||||
|
request.properties.include_subprojects {
|
||||||
|
description: "If set to 'true' and project field is set then reports from the subprojects are searched too"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
get_tags {
|
get_tags {
|
||||||
"2.23" {
|
"2.23" {
|
||||||
|
@ -173,7 +173,7 @@ def _delete_reports_project_if_empty(project_id):
|
|||||||
def get_all_ex(call: APICall, company_id, request: GetAllRequest):
|
def get_all_ex(call: APICall, company_id, request: GetAllRequest):
|
||||||
call_data = call.data
|
call_data = call.data
|
||||||
call_data["type"] = TaskType.report
|
call_data["type"] = TaskType.report
|
||||||
|
process_include_subprojects(call_data)
|
||||||
# bring projects one level down in case not the .reports project was passed
|
# bring projects one level down in case not the .reports project was passed
|
||||||
if "project" in call_data:
|
if "project" in call_data:
|
||||||
project_ids = call_data["project"]
|
project_ids = call_data["project"]
|
||||||
|
Loading…
Reference in New Issue
Block a user