dataiku / dataiku/dataiku-api-client-python
Client list users method have attribute wrongly spell
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 44
- Forks
- 29
- Merge medio
- 3 h 34 min
- PR fusionados (30 d)
- 2
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza en el punto de entrada del cliente de API list_users() e inspecciona en los diccionarios de usuarios devueltos la ortografía del atributo de sesión activa de WebSocket. Se considera terminado cuando la clave devuelta usa activeWebSocketSessions de forma coherente y el uso mostrado de list_active_users() puede identificar a los usuarios activos sin depender de la clave escrita incorrectamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100