-
Notifications
You must be signed in to change notification settings - Fork 40
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
Readd time to mail for non-expiry activities #1181
base: master
Are you sure you want to change the base?
Conversation
I added a commit to remove some special drone actions from CI - we are cleaning up various things that need special privileges/tokens and the needed tokens no longer exist. Since this PR has just been created and is failing because of this, I may as well fix it here and get a good CI result. |
https://drone.owncloud.com/owncloud/activity/3427/6/7 |
I'm not sure about the implementation. In order to target a group of events, you'll have to distinguish those events somehow. I guess we could use a |
Yes, I also thought about targeting a group of events but did not find a reliable way.
So what we get at https://github.com/owncloud/activity/blob/master/lib/MailQueueHandler.php#L253 is just an array of those fields. So the only valid way to filter for expiry events seemed to use the |
Good to see progess here! |
Just noticed that public links expiration activities contain the following in
while expiration for users/group shares has:
so the PR is in any case incomplete as with the code in place we are missing the case for public links expiration. Maybe we can try to However, note that |
The Line 158 in ce947de
What about including new column for options, or something like that? We could have a column with a bit mask, for example:
For the migration, we can assume that all the current data will have a 0 value as option, which means there won't be changes. |
IIRC there is/was a policy that we only add new columns on major release. Something that needs to be discussed. |
@jvillafanez it looks like the activity files hooks already include the info about the share being or not expired: https://github.com/owncloud/activity/blob/master/lib/FilesHooks.php#L358 What about adding a new column Note: this would additionally require core changes. |
I think that's more or less the idea I've proposed. Taking into account that we might not be allowed to add new columns into the tables freely, I think we should try to make it count. |
In #1118 we removed the time from the notification emails because of the confusion generated by the activity time for shares expiry.
However, this caused the timestamp to be removed for all activity notifications. This PR adds logic for having the correct date format depending on the activity type (expiration vs non-expiration).