Title: Client list users method have attribute wrongly spell · Issue #282 · dataiku/dataiku-api-client-python · GitHub
Open Graph Title: Client list users method have attribute wrongly spell · Issue #282 · dataiku/dataiku-api-client-python
X Title: Client list users method have attribute wrongly spell · Issue #282 · dataiku/dataiku-api-client-python
Description: 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 activeWebSocketS...
Open Graph Description: 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,...
X Description: 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,...
Opengraph URL: https://github.com/dataiku/dataiku-api-client-python/issues/282
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client list users method have attribute wrongly spell ","articleBody":"See I wanted to know all the users which are currently active. \r\nProblem with the current code is, list_users() returns list of dictionary. And each dictionary has attribute _activeWebSocketSesssions_, ideally this should be **activeWebSocketSessions**. \r\n\r\nNote - 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.\r\n\r\n```\r\n def list_active_users(self):\r\n \"\"\"\r\n Get all the active users who currently login to the DSS\r\n\r\n This method takes nothing and returns name of the users who are actively working now\r\n\r\n Returns:\r\n string: calculate all currently active users\r\n \"\"\"\r\n user_list = []\r\n dss_users = self.client.list_users()\r\n for user in dss_users:\r\n if user[\"activeWebSocketSesssions\"] != 0:\r\n user_list.append(user[\"displayName\"])\r\n \r\n return user_list\r\n```","author":{"url":"https://github.com/indrajeetgour","@type":"Person","name":"indrajeetgour"},"datePublished":"2023-08-11T16:51:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/282/dataiku-api-client-python/issues/282"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ff4f821-faef-d1cf-061f-3983ee45da5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB78:1A6069:1887596:1F0C021:69917518 |
| html-safe-nonce | 724e907f4a3c011680c59e1121ab66dedc40f410c73c83b677fd52f5cf7eef11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjc4OjFBNjA2OToxODg3NTk2OjFGMEMwMjE6Njk5MTc1MTgiLCJ2aXNpdG9yX2lkIjoiNDc1NTAyMDQxNjM0MDEwMzkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c14a07d3558648ed7f6d30e7da5df2a2f12a6043c6220043ef9fce17dbc6fee2 |
| hovercard-subject-tag | issue:1847141246 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dataiku/dataiku-api-client-python/282/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2eb285ba9089acb297880c926a0f7f81de7700fb8fcd46e5deb16de0f44de215/dataiku/dataiku-api-client-python/issues/282 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2eb285ba9089acb297880c926a0f7f81de7700fb8fcd46e5deb16de0f44de215/dataiku/dataiku-api-client-python/issues/282 |
| og:image:alt | 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,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | indrajeetgour |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/dataiku/dataiku-api-client-python git https://github.com/dataiku/dataiku-api-client-python.git |
| octolytics-dimension-user_id | 2335170 |
| octolytics-dimension-user_login | dataiku |
| octolytics-dimension-repository_id | 40004578 |
| octolytics-dimension-repository_nwo | dataiku/dataiku-api-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40004578 |
| octolytics-dimension-repository_network_root_nwo | dataiku/dataiku-api-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width