{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16300","labels_url":"https://api.github.com/repos/owncloud/core/issues/16300/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16300/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16300/events","html_url":"https://github.com/owncloud/core/issues/16300","id":75733568,"number":16300,"title":"Trashbin Deletion: Guarantee Deletion Date and Retention Obligation","user":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_trashbin","name":"app:files_trashbin","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement%20-%20approved","name":"enhancement - approved","color":"FF9900"}],"state":"open","locked":false,"assignee":{"login":"VicDeo","id":991300,"avatar_url":"https://avatars.githubusercontent.com/u/991300?v=3","gravatar_id":"","url":"https://api.github.com/users/VicDeo","html_url":"https://github.com/VicDeo","followers_url":"https://api.github.com/users/VicDeo/followers","following_url":"https://api.github.com/users/VicDeo/following{/other_user}","gists_url":"https://api.github.com/users/VicDeo/gists{/gist_id}","starred_url":"https://api.github.com/users/VicDeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VicDeo/subscriptions","organizations_url":"https://api.github.com/users/VicDeo/orgs","repos_url":"https://api.github.com/users/VicDeo/repos","events_url":"https://api.github.com/users/VicDeo/events{/privacy}","received_events_url":"https://api.github.com/users/VicDeo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":633,"closed_issues":309,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-08-10T19:42:13Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":12,"created_at":"2015-05-12T20:47:43Z","updated_at":"2015-08-10T19:52:53Z","closed_at":null,"body":"As an ownCloud administrator, I want to set the trashbin file expiration policy so that I can better manage the disk space of users within ownCloud.\r\n\r\nAcceptance Criteria:\r\n- The current trashbin retention  obligation and trashbin auto expiration would be merged into one setting, with this added as well\r\n- A modified line in the sample.config.php would highlight how this works\r\n- The setting is now just called trashbin retention obligation\r\n- The description is \"If the trash bin app is enabled (default), this is the minimum and / or maximum number of days a file is kept in the trash before it is deleted. Setting can be number of days, auto or disabled\"\r\n- Syntax is something like \r\n      - 'trashbin_retention_obligation' => min 30, max 31\r\n      - OR 'trashbin_retention_obligation' => min 30,auto\r\n      - OR 'trashbin_retention_obligation' => min 30\r\n      - OR 'trashbin_retention_obligation' => auto, max 30\r\n      - OR 'trashbin_retention_obligation' => auto\r\n      - OR 'trashbin_retention_obligation' => disabled (or just comment out the line in the config file)\r\n- If Max is less than min, the min setting wins - so a file is always kept at least as long as the min, but in this case is immediately deleted as soon as the min is met\r\n- If min is Auto, then the file is only kept as long as the space saving algorithm decides, up to a max of the max setting\r\n- if max is auto, then the file is kept as long as the space saving algorithm says, and perhaps may never be actually deleted (this is the current behavior that we are adjusting)\r\n- a setting of disabled (or a commented out config file line item) would remove this and all files would be kept forever\r\n- if only a min value is specified, then really this is the same as no expiration or disabled\r\n- Migration would interpret current settings as follows:\r\n     - an auto expiration set today with no obligation is migrated to a setting of auto\r\n     - a retention obligation set today with auto delete enabled is migrated to min today, auto\r\n     - a retention obligation set today with auto delete disabled is migrated to min today "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/129583053","html_url":"https://github.com/owncloud/core/issues/16300#issuecomment-129583053","issue_url":"https://api.github.com/repos/owncloud/core/issues/16300","id":129583053,"user":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T19:52:53Z","updated_at":"2015-08-10T19:52:53Z","body":"> As of today the expiry will only be triggered if a user is active on the instance.\r\nAs soon as a user is not active the expiry code will not be triggered - this was a complain from at least one of the users/customers afaik\r\n\r\nyes, this is what this feature is trying to fix - so it sounds like cron is required to fix it properly with a guaranteed delete."}}