{"action":"created","issue":{"url":"https://api.github.com/repos/amiv-eth/amivapi/issues/132","repository_url":"https://api.github.com/repos/amiv-eth/amivapi","labels_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/132/comments","events_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/132/events","html_url":"https://github.com/amiv-eth/amivapi/issues/132","id":165136848,"number":132,"title":"Optional group membership expiry","user":{"login":"NotSpecial","id":7079143,"avatar_url":"https://avatars.githubusercontent.com/u/7079143?v=3","gravatar_id":"","url":"https://api.github.com/users/NotSpecial","html_url":"https://github.com/NotSpecial","followers_url":"https://api.github.com/users/NotSpecial/followers","following_url":"https://api.github.com/users/NotSpecial/following{/other_user}","gists_url":"https://api.github.com/users/NotSpecial/gists{/gist_id}","starred_url":"https://api.github.com/users/NotSpecial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotSpecial/subscriptions","organizations_url":"https://api.github.com/users/NotSpecial/orgs","repos_url":"https://api.github.com/users/NotSpecial/repos","events_url":"https://api.github.com/users/NotSpecial/events{/privacy}","received_events_url":"https://api.github.com/users/NotSpecial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T17:40:34Z","updated_at":"2016-12-11T01:38:10Z","closed_at":null,"body":"Currently groupmembers are part of the group forever.\n\nSince groups are tied to permissions it would make sense to let them expire.\nCurrently the group moderators have to clean their members manually.\n\nWe are afraid that this will get forgotten easily and we will have lots of zombie group members.\n\nBut not all groups have permissions and need auto-expiry.\n\nTherefore I would propose the following:\n\nAdd an optional _maximum_membership_duration_ field to groups with a default value of a year or something.\nSetting it to None would disable the feature.\n\nThen we would need a cron job that cleans up groupmemberships every night.\n"},"comment":{"url":"https://api.github.com/repos/amiv-eth/amivapi/issues/comments/266254733","html_url":"https://github.com/amiv-eth/amivapi/issues/132#issuecomment-266254733","issue_url":"https://api.github.com/repos/amiv-eth/amivapi/issues/132","id":266254733,"user":{"login":"NotSpecial","id":7079143,"avatar_url":"https://avatars.githubusercontent.com/u/7079143?v=3","gravatar_id":"","url":"https://api.github.com/users/NotSpecial","html_url":"https://github.com/NotSpecial","followers_url":"https://api.github.com/users/NotSpecial/followers","following_url":"https://api.github.com/users/NotSpecial/following{/other_user}","gists_url":"https://api.github.com/users/NotSpecial/gists{/gist_id}","starred_url":"https://api.github.com/users/NotSpecial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotSpecial/subscriptions","organizations_url":"https://api.github.com/users/NotSpecial/orgs","repos_url":"https://api.github.com/users/NotSpecial/repos","events_url":"https://api.github.com/users/NotSpecial/events{/privacy}","received_events_url":"https://api.github.com/users/NotSpecial/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T01:38:10Z","updated_at":"2016-12-11T01:38:10Z","body":"We now have this on groupmemberships, which is nice.\r\n\r\nI am wondering if a default value (as a field for the `group`) would be useful.\r\n\r\nE.g. adding a expiry of 6 months to the group vorstand so you don't have to add this for every new vorstand manually.\r\n\r\nWhat do you think? Could this be useful?"}}
{"actor":{"display_login":"NotSpecial"}}