2914 show last login date#2936
2914 show last login date#2936Alkarex merged 15 commits intoFreshRSS:masterfrom equinoxmatt:2914-show-last-login-date
Conversation
|
Not a strong opinion, but maybe instead of login we could say a more general "last user activity"? |
|
Sure, last login could be weeks or months ago unless it actually means
last activity.
…On Friday, May 1, 2020, Alexandre Alapetite ***@***.***> wrote:
Not a strong opinion, but maybe instead of login we could say a more
general "last user activity"?
And we could remove never_loggedin for now.
What do others think?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2936 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABRQBK5DI2C24W2LAC55PTRPJ7FPANCNFSM4MWU2FAA>
.
|
equinoxmatt
left a comment
There was a problem hiding this comment.
Not a strong opinion, but maybe instead of login we could say a more general "last user activity"?
And we could removenever_loggedinfor now.
What do others think?
'Last seen' maybe a good option?
|
It depends a bit on what we want to measure. In my opinion, the most interesting are user actions, which are typically not automatised. Here are some examples (it should already now be more or less like that, but some points need to be double-checked): Catching:
Not catching:
|
|
I am not sure if this is getting overcomplicated? The original issue was to fix a use case whereby an admin can quickly see which of their users are using the system. Last login is an ideal way to measure that. Even if they logged in and then straight back out, they are still using the system. This is why my initial approach was recording the login time as opposed to when the configuration file was last modified. I have also just discovered, when the actualize script runs, all the configuration files are touched. Therefore, you cannot rely on the configuration file modified time. Background processes modify it. I propose we either put the last_login value back in the user config, as per my original PR or leave this issue until we have a user table. |
|
My last post was only to explain the choice of the wording, not to ask for more work :-P |
I see your point. How do you want to proceed with this? I don't think the file modified time can realistically be used. As I said previously, it can be modified by background processes. |
|
I think we should complete this PR with the file modified time (which should still work OK even if not perfect), and wait for another PR to improve the storage of this information in a dedicated field in DB |
| <td><?= format_number($values['feed_count']) ?></td> | ||
| <td><?= format_number($values['article_count']) ?></td> | ||
| <td><?= format_bytes($values['database_size']) ?></td> | ||
| <td><a href="<?= _url('user', 'details', 'username', $username) ?>">Details</a></td> |
There was a problem hiding this comment.
This line was not translated (from before this PR), so I moved the link
|
@equinoxmatt I have made a few changes. Could you please double-check whether that works for you? |
|
Merging, but feedback still welcome |
|
@Alkarex Sorry for the delay, the changes LGTM 👍 thansk for your help on this. |
|
Does this |
|
@alexkuang0 The last user activity is updated only when there is a non-automatic action such as marking an article as read, as favourite, modifying a feed / category, etc. independently of whether this is done through the Web interface or through the API. |
Closes #2914
Changes proposed in this pull request:
How to test the feature manually:
Pull request checklist:
Additional information can be found in the documentation.
I was wondering about time formatting. I have stuck with the basic ISO 8601 format, but it isn't the most user friendly display. How are dates handled generally within the project?