Return getting_started_info in users.get_current_user

This commit is contained in:
allegroai 2022-07-08 17:45:33 +03:00
parent 3a60f00d93
commit c18eb99d06
3 changed files with 18 additions and 1 deletions

View File

@ -146,4 +146,11 @@
max_backoff_sec: 5 max_backoff_sec: 5
} }
getting_started_info {
"agentName": "clearml",
"configure": "clearml-init",
"install": "pip install clearml",
"packageName": "clearml"
}
} }

View File

@ -139,6 +139,13 @@ get_current_user {
} }
} }
} }
"999.0": ${get_current_user."2.1"} {
response.properties.getting_started {
type: object
description: Getting stated info
additionalProperties: true
}
}
} }
get_all_ex { get_all_ex {

View File

@ -113,7 +113,10 @@ def get_current_user(call: APICall, company_id, _):
user = res[0] user = res[0]
user["role"] = call.identity.role user["role"] = call.identity.role
resp = {"user": user} resp = {
"user": user,
"getting_started": config.get("apiserver.getting_started_info", None),
}
call.result.data = resp call.result.data = resp