SANBIBiodiversityforLife / nssl

GNU General Public License v2.0
1 stars 0 forks source link

Dates: user 'last access' and content 'updated' #68

Closed reupost closed 6 years ago

reupost commented 6 years ago

I know some of this may be cached and so not up-to-the-minute accurate, but I recall you mentioning there was something funny about the dates shown on the site. Brenda swore she had not logged into the site on 15 Nov, which was the date assigned to some test content of hers (now deleted, I'm afraid).

Perhaps the site only records when someone logs out, so the dates can be odd if they have multi-day sessions (if they log-in but then never explicitly log-out). Any ideas?

Not urgent, but as we are trying to get the users to work on the site some indication of their activity would be useful.

rukayaj commented 6 years ago

Oh yeah. I’ve been using her account as my test account, which is why that date appeared. But I think there is something wrong with the dates as well.

From: Reuben Roberts [mailto:notifications@github.com] Sent: 24 November 2017 10:32 AM To: rukayaj/ssp Cc: Subscribed Subject: [rukayaj/ssp] Dates: user 'last access' and content 'updated' (#68)

I know some of this may be cached and so not up-to-the-minute accurate, but I recall you mentioning there was something funny about the dates shown on the site. Brenda swore she had not logged into the site on 15 Nov, which was the date assigned to some test content of hers (now deleted, I'm afraid).

Perhaps the site only records when someone logs out, so the dates can be odd if they have multi-day sessions (if they log-in but then never explicitly log-out). Any ideas?

Not urgent, but as we are trying to get the users to work on the site some indication of their activity would be useful.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/rukayaj/ssp/issues/68, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJNQ4-8GKF_R4-hWDjgKQ_5LlP6xXyLbks5s5n8SgaJpZM4QpglF.


Think before you print. Please consider the environment before printing this email.

NOTE: This e-mail message and any attachments are intended for the addressee only, and contain confidential information that may be legally privileged and/or the subject of copyright that is protected by law. Any unauthorised usage, disclosure, alteration or dissemination is prohibited. SANBI accepts no responsibility for loss, data corruption or mail that fails to reach its intended destination. Furthermore, SANBI cannot assure the integrity of this communication nor guarantee that it is free of errors, viruses, interception or interference. No liability, whether direct or indirect, is accepted by SANBI or the sender. Any view or opinion expressed in this message may not necessarily be that of SANBI or SANBI Management. SANBI reserves the right to monitor all e-mail communication.

The disclaimer is located at http://www.sanbi.org/node/5672

rukayaj commented 6 years ago

Hmm I didn't change anything but it does seem to be working now. To test it I logged in with Jeff's account, and it's correctly showing last activity as a few minutes ago. It says you last logged in 6 hours ago, is that about right?

I think that it just is confused about how long people have been a member of the site for. I definitely didn't add Jeff 3 weeks ago, he's had an account pretty much from the start of the site a year ago. Perhaps it calculates that based on when the site was last restored from a backup somehow?

reupost commented 6 years ago

Yes, it was looking fine when I tried logging in and creating content as well. Maybe its something to do with the server, but let's leave this until we find a specific problem. Maybe use the 'TestExpert' account (or make another one) if you need to test, to avoid confusing Brenda :)

rukayaj commented 6 years ago

Following Selwyn's email, I found that what's happening is the people list is getting cached. If we want to see updated dates for that listing, we need to clear the cache, here:

http://nssl.sanbi.org.za/admin/config/development/performance

reupost commented 6 years ago

Great - well sleuthed! :). So if we want to refresh these details we simply clear the caches. I will relay on to Selwyn et al.

rukayaj commented 6 years ago

https://www.drupal.org/project/drupal/issues/2650768 here's the issue thread so we can monitor