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

[ticket/17312] Add column for tracking user last active time #6618

Merged
merged 4 commits into from
May 22, 2024

Conversation

marc1706
Copy link
Member

@marc1706 marc1706 commented May 17, 2024

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB3-17312

@marc1706 marc1706 added this to the 3.3.12 milestone May 17, 2024
@rxu
Copy link
Contributor

rxu commented May 18, 2024

function user_add() needs to be adjusted as well ($additional_vars array).

@rxu
Copy link
Contributor

rxu commented May 18, 2024

Tested on localhost.
Migration worked fine on update, updating of user_last_active field works correctly as well as users sorting in memberlist and new posts search.
As for the user_lastvisit: having account with user_lastvisit Fri Feb 10 2023 14:48:45 GMT+0000, logged in with that account, browsed through a test board around a bit and user_lastvisit didn't update. Logged out, logged in again and user_lastvisit got updated with that account (synced with session_last_visit column in the sessions table).
So I guess it seems to be working as intended: user_last_active updates during the current session while user_lastvisit updates once per session after logout/login.

@marc1706
Copy link
Member Author

@rxu I've added it to user_add as well as where it made sense and user_lastvisit was used for the last active time.

@rxu
Copy link
Contributor

rxu commented May 19, 2024

Will it make sense to replace user_lasvisit with user_last_active in acp_bots, acp_inactive, acp_prune?

@Derky
Copy link
Member

Derky commented May 19, 2024

Will it make sense to replace user_lasvisit with user_last_active in acp_bots, acp_inactive, acp_prune?

If it does, maybe we can do that in a separate ticket for the next version so we don't risk breaking features just before the release.

@marc1706
Copy link
Member Author

I've used user last active in places where it mentions the user's last active time already (in the acp) but have left it out in places where it said last visit or might affect other functionality.

@marc1706 marc1706 merged commit 130c109 into phpbb:prep-release-3.3.12 May 22, 2024
44 checks passed
@marc1706 marc1706 deleted the ticket/17312 branch May 22, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants