{"action":"created","issue":{"url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/139","repository_url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui","labels_url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/139/comments","events_url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/139/events","html_url":"https://github.com/edgi-govdata-archiving/web-monitoring-ui/pull/139","id":265993132,"number":139,"title":"Show links to versionista diffs","user":{"login":"lightandluck","id":3014813,"avatar_url":"https://avatars1.githubusercontent.com/u/3014813?v=4","gravatar_id":"","url":"https://api.github.com/users/lightandluck","html_url":"https://github.com/lightandluck","followers_url":"https://api.github.com/users/lightandluck/followers","following_url":"https://api.github.com/users/lightandluck/following{/other_user}","gists_url":"https://api.github.com/users/lightandluck/gists{/gist_id}","starred_url":"https://api.github.com/users/lightandluck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightandluck/subscriptions","organizations_url":"https://api.github.com/users/lightandluck/orgs","repos_url":"https://api.github.com/users/lightandluck/repos","events_url":"https://api.github.com/users/lightandluck/events{/privacy}","received_events_url":"https://api.github.com/users/lightandluck/received_events","type":"User","site_admin":false},"labels":[{"id":659134662,"url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-17T04:57:06Z","updated_at":"2017-10-25T23:33:20Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/pulls/139","html_url":"https://github.com/edgi-govdata-archiving/web-monitoring-ui/pull/139","diff_url":"https://github.com/edgi-govdata-archiving/web-monitoring-ui/pull/139.diff","patch_url":"https://github.com/edgi-govdata-archiving/web-monitoring-ui/pull/139.patch"},"body":"Fixes #131 \r\n\r\nI decided to go with the fancy version and try to show a link if the versions fall within the 50 kept in Versionista. I did this by checking indexes in `versions` object. Unfortunately, our versions don't align perfectly with Versionista.\r\n\r\nCheck this example from the versionista2 account: \r\n[Our view](https://monitoring-staging.envirodatagov.org/page/de2762b0-b88b-4645-ae3d-480f612bda86/6767cfa5-b643-4d90-88e4-8190ca427b53..0d1f4170-2144-4e51-8660-991cd295c21c)\r\n[Versionista](https://versionista.com/74273/6210778/)\r\n\r\nVersionista has 2 newer versions that aren't showing up in -db.\r\nI don't know how to check for those or the situation below without scraping Versionista itself again, which seems out of scope for -ui. Open to suggestions.\r\n>  we generally have it set to always keep the original, but worth noting that got missed on a few pages.t\r\n\r\nAlso, added tests for the first time! I know this component is temporary, but it was fairly straightforward, so worth the time to practice and get some good learnings in.\r\n"},"comment":{"url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/comments/339505549","html_url":"https://github.com/edgi-govdata-archiving/web-monitoring-ui/pull/139#issuecomment-339505549","issue_url":"https://api.github.com/repos/edgi-govdata-archiving/web-monitoring-ui/issues/139","id":339505549,"user":{"login":"Mr0grog","id":74178,"avatar_url":"https://avatars0.githubusercontent.com/u/74178?v=4","gravatar_id":"","url":"https://api.github.com/users/Mr0grog","html_url":"https://github.com/Mr0grog","followers_url":"https://api.github.com/users/Mr0grog/followers","following_url":"https://api.github.com/users/Mr0grog/following{/other_user}","gists_url":"https://api.github.com/users/Mr0grog/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr0grog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr0grog/subscriptions","organizations_url":"https://api.github.com/users/Mr0grog/orgs","repos_url":"https://api.github.com/users/Mr0grog/repos","events_url":"https://api.github.com/users/Mr0grog/events{/privacy}","received_events_url":"https://api.github.com/users/Mr0grog/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T23:33:20Z","updated_at":"2017-10-25T23:33:20Z","author_association":"CONTRIBUTOR","body":"@danielballan do you have time to give this a quick once-over? Bit of a conflict of interest for me to review now :P"}}
{"actor":{"display_login":"Mr0grog"}}