Client list users method have attribute wrongly spell
還沒有人認領這個 Issue。
評估
研究方向
從 API 用戶端入口 list_users() 開始,檢查傳回的使用者字典中作用中 WebSocket 工作階段屬性的拼寫。完成的標準是傳回的鍵一致使用 activeWebSocketSessions,而且所示的 list_active_users() 用法能夠在不依賴拼寫錯誤的鍵的情況下識別作用中的使用者。
由索引模型根據 Issue 內容生成。
描述
See I wanted to know all the users which are currently active.
Problem with the current code is, list_users() returns list of dictionary. And each dictionary has attribute activeWebSocketSesssions, ideally this should be activeWebSocketSessions.
Note - I wanted to make that change using the pull request, but I did not find this attribute in the current codebase, may be because you guys did not revel it, may be not. Aways this is my finding, that will help make this product a bit better.
def list_active_users(self):
"""
Get all the active users who currently login to the DSS
This method takes nothing and returns name of the users who are actively working now
Returns:
string: calculate all currently active users
"""
user_list = []
dss_users = self.client.list_users()
for user in dss_users:
if user["activeWebSocketSesssions"] != 0:
user_list.append(user["displayName"])
return user_list
- 主要語言
- Python
- 星號
- 44
- 分支
- 29
- 平均合併
- 3 小時 34 分鐘
- 30 天內合併 PR
- 2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
dataiku/dataiku-api-client-python 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 55/100
-
難度 2/5 1-3 小時 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 30/100
dataiku/dataiku-api-client-python#335 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 35/100
查看 dataiku/dataiku-api-client-python 的全部 Issue
相似的 Issue
-
essnmx good first issue
難度 1/5 1 小時以內 新手友好度 95/100
-
難度 2/5 1-3 小時 新手友好度 65/100
syfoud/Simulated_Scepter#174 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
Giskard-AI/giskard-oss#2840 · 1 則留言 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success 未關閉area: repo bug perceived difficulty: 2
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
yeti-platform/yeti#1380 ·