activity icon indicating copy to clipboard operation
activity copied to clipboard

[QA] All activity mails lost their date, not only expiry mails

Open jnweiger opened this issue 3 years ago • 6 comments

Seen while testing 2.7.1-rc.1 with core 10.11.0-rc.1

Due to #1118 all mails lost their date info. E.g. "XXX shared YYY with ZZZ" maybe should still expose the time? should it?

Probably a harmless loss, as the mail itself has a timestamp in the header.

jnweiger avatar Sep 12 '22 22:09 jnweiger

https://github.com/owncloud/core/blob/master/apps/files_sharing/lib/Activity.php has the various constants for what type of activity happened. It would be possible to only remove the time for the activities that are about share expiry: SUBJECT_LINK_EXPIRED SUBJECT_LINK_BY_EXPIRED SUBJECT_UNSHARED_* ... (and in some cases the "unshare" happened because the share owner explicitly deleted the share, so in that case the time is relevant. But in other cases the share expired exactly at the end of day, so the time is not really relevant).

What is the requirement?

phil-davis avatar Sep 13 '22 03:09 phil-davis

My question would be: Why was the timestamp removed in the first place? (the related issue is hidden in proprietary repo, so I do not know)

The only situation where it would not lead to any further information would be the aforementioned expiry event, which happens by the end of the day. But for any other event it seems to be valuable information, especially since some customers only subscribe to the the digest mail.

Deaddy avatar Jun 14 '23 07:06 Deaddy

Support could elucidate the original issue a bit more to us and this is how the situation seems to be:

  1. expiry timestamps are utterly useless and confusing, as it is the timestamp when the expiry is actually being enforced, i.e. the first time the cronjob is running after the expiry time or the first time someone tries to access the share after the expiry time
  2. thus timestamps were removed
  3. removal of the other, non-expiry timestamps is collateral damage

Consequently I assume there can be consensus on "timestamps should be brought back for non-expiry events".

Deaddy avatar Jul 04 '23 11:07 Deaddy

Proposed possible approach at https://github.com/owncloud/activity/pull/1181

pako81 avatar Jul 04 '23 15:07 pako81

@Deaddy exactly right. There is a lot of potential confusion with expiry timestamps. The exact time of the day, when something technically expires is pretty unreliable due to random timezone misunderstandings and/or cron jobs running late.

jnweiger avatar Jul 04 '23 19:07 jnweiger

Still not fixed? I'm not happy about that. Stop weird discussions about different timezones. Timestamp including relating (maybe the server's) timezone and the users are getting all, what is needed. Just my 2 cents. (Or let Nextcloud fix it for you. scnr)

GrendelOnCampus avatar Dec 01 '23 10:12 GrendelOnCampus