dataiku / dataiku/dataiku-api-client-python
Client list users method have attribute wrongly spell
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 44
- 派生
- 29
- 平均合并
- 3 小时 34 分钟
- 30 天内合并 PR
- 2
描述
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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 API 客户端入口 list_users() 开始,检查返回的用户字典中活动 WebSocket 会话属性的拼写。完成的标准是返回的键始终使用 activeWebSocketSessions,并且所示的 list_active_users() 用法能够在不依赖拼写错误的键的情况下识别活动用户。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100