{"action":"opened","issue":{"url":"https://api.github.com/repos/Princeton-CDH/mep-django/issues/124","repository_url":"https://api.github.com/repos/Princeton-CDH/mep-django","labels_url":"https://api.github.com/repos/Princeton-CDH/mep-django/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/Princeton-CDH/mep-django/issues/124/comments","events_url":"https://api.github.com/repos/Princeton-CDH/mep-django/issues/124/events","html_url":"https://github.com/Princeton-CDH/mep-django/issues/124","id":361008892,"node_id":"MDU6SXNzdWUzNjEwMDg4OTI=","number":124,"title":"As an admin, I want to generate a report of library members with large time gaps between events in their account history to identify records that may need demerging.","user":{"login":"rlskoeser","id":691231,"node_id":"MDQ6VXNlcjY5MTIzMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/691231?v=4","gravatar_id":"","url":"https://api.github.com/users/rlskoeser","html_url":"https://github.com/rlskoeser","followers_url":"https://api.github.com/users/rlskoeser/followers","following_url":"https://api.github.com/users/rlskoeser/following{/other_user}","gists_url":"https://api.github.com/users/rlskoeser/gists{/gist_id}","starred_url":"https://api.github.com/users/rlskoeser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlskoeser/subscriptions","organizations_url":"https://api.github.com/users/rlskoeser/orgs","repos_url":"https://api.github.com/users/rlskoeser/repos","events_url":"https://api.github.com/users/rlskoeser/events{/privacy}","received_events_url":"https://api.github.com/users/rlskoeser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-17T19:26:54Z","updated_at":"2018-09-17T19:26:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Notes for development\r\n- Write a custom manage command to find people who match these criteria. Should take an option to set the time gap in months, maybe set the default to 6 months.  Iterate over generic events by date checking for timedelta larger than our configured gap.\r\n- SQL queries can't do sophisticated timedelta calculations, so that logic should be implemented in python. If we have performance issues, we could possibly filter to find accounts with a timespan that is longer than our gap.\r\n- We'll have to take care with partially known dates on borrowing events when calculating time gaps."}}
{"actor":{"display_login":"rlskoeser"}}