Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled users inside robot brain #184

Closed
milani opened this issue Apr 19, 2015 · 12 comments
Closed

Disabled users inside robot brain #184

milani opened this issue Apr 19, 2015 · 12 comments
Labels
bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented

Comments

@milani
Copy link

milani commented Apr 19, 2015

I see disabled slack users inside robot brain which is not desired. Isn't it better to ignore them?

@milani
Copy link
Author

milani commented Apr 19, 2015

or at least we should have a property for disabled users.

@ariporad
Copy link

Agreed. I'd actually rather have a property for them.

@technicalpickles
Copy link
Contributor

I started #229 to track most of the data coming from Slack about a user in the hubot brain. That should help here.

That said, I don't know if it's a good idea to keep disabled users in the brain like you said.

@milani
Copy link
Author

milani commented Sep 27, 2015

@technicalpickles As far as I know, removing users is not implemented in slack since a user can be a member of more than one organization. So, disabling a user is actually removing him/her from an organization. I vote for not keeping disabled users in the brain!

@technicalpickles
Copy link
Contributor

That's a really good point. I think that means we should skip populating users that are disabled into the brain.

Only other question remains is: should disabled users be actively removed from the brain? That is, say I'm a user, and I'm disabled, does all the data with my user go away? Or should it stick around? I'm inclined to leave it in the brain for now, as that's what most other adapters do by convention.

@milani
Copy link
Author

milani commented Sep 29, 2015

I agree. Let's keep it in the brain.

@UncannyBingo
Copy link

It should stick around—we keep the user around in Slack because maybe they come back into the org (think summer interns that you later re-hire)—you'd like them to be able to pick up where they left off. The Hubot brain should mirror what Slack is doing, I think.

@UncannyBingo
Copy link

How far does #229 go to fixing this issue, BTW?

@UncannyBingo UncannyBingo added bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented Priority—Medium labels Jun 29, 2016
@milani
Copy link
Author

milani commented Jun 29, 2016

Should I look in presence? According to #229.

@UncannyBingo
Copy link

It would be in the deleted field, which answers my earlier question: #229 doesn't go far enough.

@UncannyBingo
Copy link

Plus #229 only updates users on receiving a user_change event. That will miss user changes when the bot is offline…needs a way to refresh the cache from users.list

@johnagan
Copy link

This should be resolved in #381. Reopen if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Projects
None yet
Development

No branches or pull requests

5 participants