Page MenuHomePhabricator

Mentee overview: Clicking on the user avatar sorts the table alphabetically instead of by activity
Closed, ResolvedPublic

Description

If you click the user avatar icon in your mentee overview table, it is sorted alphabetically by username. However, it is supposed to sort it by activity instead.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 725080 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] Mentee overview: Clicking user avatar should sort by last_active

https://gerrit.wikimedia.org/r/725080

Change 725080 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Mentee overview: Clicking user avatar should sort by last_active

https://gerrit.wikimedia.org/r/725080

@Urbanecm - the fix works as expected.

Questions:
(1) "To sort by activity" - two users *User:Vasenya and User:Uthz) listed at the top for the most recent activity based on the fact that their accounts were just created, not on edits or other actions that users themselves did. Their Special:Contirbutions pages are empty.

(2) The UI does not accommodate user names nicely - T292224: Mentee overview: Truncate long usernames to 20 characters:

Screen Shot 2021-10-04 at 4.48.33 PM.png (1×1 px, 158 KB)

Also, some small screen sizes (the screenshot below is taken at 1315px) make it difficult to read the table:
Screen Shot 2021-10-04 at 4.49.38 PM.png (1×2 px, 307 KB)

(3) The updates do not happen immediately (probably it's just a betalabs problem). User ET11 did some edits and after 30 min the record was not updated.

(4) (just an observation) The recent activity is important to mentors to monitor, so maybe the timestamp of the recent activity should go instead to a separate column?

I'm from bnwiki. Currently date is in Y-M-D format, can you make it in D-M-Y format? I prefer D-M-Y, i'm not used to with Y-M-D format. Thanks.

@Aftabuzzaman: This task is not about date formats. Please file separate tickets for separate topics. Thanks. :)

I'm from bnwiki. Currently date is in Y-M-D format, can you make it in D-M-Y format? I prefer D-M-Y, i'm not used to with Y-M-D format. Thanks.

Hello, thanks for the suggeston! Would you mind creating a new ticket for it, so it can be properly discussed (and decided on) by the team? Thank you!

@Urbanecm_WMF - the fix works as expected.

Questions:
(1) "To sort by activity" - two users *User:Vasenya and User:Uthz) listed at the top for the most recent activity based on the fact that their accounts were just created, not on edits or other actions that users themselves did. Their Special:Contirbutions pages are empty.

That is expected. Creating an account is considered an "activity" (it's also something that shows in Special:Logs, too!).

(2) The UI does not accommodate user names nicely - T292224: Mentee overview: Truncate long usernames to 20 characters:

Screen Shot 2021-10-04 at 4.48.33 PM.png (1×1 px, 158 KB)

Also, some small screen sizes (the screenshot below is taken at 1315px) make it difficult to read the table:
Screen Shot 2021-10-04 at 4.49.38 PM.png (1×2 px, 307 KB)

The fix for this is in beta, I'll push it to production once possible. Well, more of a revert of the T292224 patch, but still :-).

(3) The updates do not happen immediately (probably it's just a betalabs problem). User ET11 did some edits and after 30 min the record was not updated.

Mentor dashboard only updates daily (it is noted in the "info" icon). That's because the update queries aren't guaranteed to be quick (they can run seconds, minutes, or even hours). Some information might be updatable more frequently if desired.

(4) (just an observation) The recent activity is important to mentors to monitor, so maybe the timestamp of the recent activity should go instead to a separate column?

Not sure about this. I'll leave it for @MMiller_WMF and @OTichonova to comment.