See and set user notification level for topics and messages

AI-generated summary

The discussion revolves around troubleshooting user notification levels for topics and messages. tobiaseigen discovered that administrators cannot view or set notification levels for other users and found that links for “show watched topics” and “show tracked topics” point to the current user’s notification levels instead of the user being edited.

@maja explained that changing topic notification levels requires impersonation and proposed a solution to link to /latest?state=watching for admins when clicking on “Show watched topics”. However, sam suggested that adding a feature to view topics a user is watching is uncommon and recommended using the data explorer for diagnostics instead.

@maja subsequently removed the “Show watched/tracked topics” links for admin profiles and added a default query to the data explorer to view topics a user is watching/tracking. The changes are reflected in the commits to the Discourse and Discourse Data Explorer repositories.

I am trying to troubleshoot an issue with a user who is not getting email notifications as expected, and realized that I am not able to see or set their notification levels for topics and messages. Is there a way to do this that I am missing?

Also, I seem to recall this being reported in the past but when on the category preferences of another user, when I select “show watched topics” or “show tracked topics” or “show muted topics” the link is about my own notification levels and not about this other user I am trying to help. See links below and screenshot.

  • https://SITE/?state=watching
  • https://SITE/?state=tracking
  • https://SITE/?state=muted

Should this not be e.g https://SITE/u/USERNAME/?state=watching or some such?

3 Likes

@maja can you add that to your list?

These links should point to the user you’re editing/viewing the preferences of, not the current user.

9 Likes

“Show watched topics” links to the latest topics with param state=watching and even if there was a way to see user’s latest stream under something like https://SITE/u/USERNAME/?state=watching, it would not be of much benefit since you still wouldn’t be able to change notification level for topics.

It’s only possible to change topic notification level if you impersonate them, hence one solution here would be to impersonate and link to /latest?state=watching when clicking on “Show watched topics” for admins.

4 Likes

Oh I see where this confusion came from @tobiaseigen wants:

http://site.com/latest?user_is_watching=bob

I think this is far to uncommon to add. For diagnostics I would recommend data explorer. @maja can you:

  1. Add a stock query to data explorer to view list of topics a user is watching.

  2. Don’t render the “Show tracked topics” etc links IF you are viewing a profile that is not yours.

4 Likes

“Show watched/tracked topics” links have been removed for admin and data explorer default query for topics a user is watching/tracking has been added:

https://github.com/discourse/discourse/commit/bb5119b88fb65905f08a63e7bf28bbac8f5c4eed

https://github.com/discourse/discourse-data-explorer/commit/538dc6030f558cb3ee0104b6dc1443067411ec7b

6 Likes