Deactivated by staff not being logged

Actually that doesn’t show the list of deactivated users. Any other way to see them? I deactivated three users earlier this week and cannot find the list even in the staff action log.

You can go to
Admin -> Logs -> Staff Actions
and filter by
deactivate user

The users that were deactivated should appear beneath Subject

They don’t?

Nope:

(turns out there were four that I deactivated, and I have no idea who)

I can see the same thing here. The username showed under Subject last year (our last deactivated user showing was Feb '17) but not this year.

2 Likes

So if this is a confirmed bug, can someone look at it? Do I need to file a bug report elsewhere?

I’m not confirming that it’s a bug (it may have been deliberate), just that I can see the same thing here.

That said, I’ll recategorise so that we can get confirmation.

3 Likes

Sure, @techapj if you can repro maybe a quick fix?

2 Likes

Deactivated user doesn’t show up (under subject) in logs if they are deleted. This is because we store target user ID in logs, and if that user gets deleted there is no associated account with that ID.

I added the location as context to deactivated user logs which contains user ID and username via:

https://github.com/discourse/discourse/commit/3a6e137e70c0d57e977679b8a39494c17b1c469e

This is how the “deactivate user” log will look now:

Note that this change will apply on all future deactivations.

6 Likes