mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
Return getting_started_info in users.get_current_user
This commit is contained in:
parent
3a60f00d93
commit
c18eb99d06
@ -146,4 +146,11 @@
|
||||
max_backoff_sec: 5
|
||||
}
|
||||
|
||||
getting_started_info {
|
||||
"agentName": "clearml",
|
||||
"configure": "clearml-init",
|
||||
"install": "pip install clearml",
|
||||
"packageName": "clearml"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -113,7 +113,10 @@ def get_current_user(call: APICall, company_id, _):
|
||||
user = res[0]
|
||||
user["role"] = call.identity.role
|
||||
|
||||
resp = {"user": user}
|
||||
resp = {
|
||||
"user": user,
|
||||
"getting_started": config.get("apiserver.getting_started_info", None),
|
||||
}
|
||||
call.result.data = resp
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user