{"action":"created","issue":{"url":"https://api.github.com/repos/CARLI/web-reports/issues/107","repository_url":"https://api.github.com/repos/CARLI/web-reports","labels_url":"https://api.github.com/repos/CARLI/web-reports/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/CARLI/web-reports/issues/107/comments","events_url":"https://api.github.com/repos/CARLI/web-reports/issues/107/events","html_url":"https://github.com/CARLI/web-reports/issues/107","id":176514882,"number":107,"title":"Average running time statistic not being recorded on prod","user":{"login":"patrickzurek","id":6615138,"avatar_url":"https://avatars.githubusercontent.com/u/6615138?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickzurek","html_url":"https://github.com/patrickzurek","followers_url":"https://api.github.com/users/patrickzurek/followers","following_url":"https://api.github.com/users/patrickzurek/following{/other_user}","gists_url":"https://api.github.com/users/patrickzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickzurek/subscriptions","organizations_url":"https://api.github.com/users/patrickzurek/orgs","repos_url":"https://api.github.com/users/patrickzurek/repos","events_url":"https://api.github.com/users/patrickzurek/events{/privacy}","received_events_url":"https://api.github.com/users/patrickzurek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"patrickzurek","id":6615138,"avatar_url":"https://avatars.githubusercontent.com/u/6615138?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickzurek","html_url":"https://github.com/patrickzurek","followers_url":"https://api.github.com/users/patrickzurek/followers","following_url":"https://api.github.com/users/patrickzurek/following{/other_user}","gists_url":"https://api.github.com/users/patrickzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickzurek/subscriptions","organizations_url":"https://api.github.com/users/patrickzurek/orgs","repos_url":"https://api.github.com/users/patrickzurek/repos","events_url":"https://api.github.com/users/patrickzurek/events{/privacy}","received_events_url":"https://api.github.com/users/patrickzurek/received_events","type":"User","site_admin":false},"assignees":[{"login":"patrickzurek","id":6615138,"avatar_url":"https://avatars.githubusercontent.com/u/6615138?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickzurek","html_url":"https://github.com/patrickzurek","followers_url":"https://api.github.com/users/patrickzurek/followers","following_url":"https://api.github.com/users/patrickzurek/following{/other_user}","gists_url":"https://api.github.com/users/patrickzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickzurek/subscriptions","organizations_url":"https://api.github.com/users/patrickzurek/orgs","repos_url":"https://api.github.com/users/patrickzurek/repos","events_url":"https://api.github.com/users/patrickzurek/events{/privacy}","received_events_url":"https://api.github.com/users/patrickzurek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-09-12T23:59:39Z","updated_at":"2016-09-13T18:56:06Z","closed_at":null,"body":"It seems that the Python Django files that contained the code to implement and record the average report running time statistic were not pushed to production when the other statistics changes were.  \r\n\r\nThe view code on the statistics page was pushed, the Django schema was updated and the mysql database table was changed to accommodate the new column on production already but the logic to record the data was not pushed so viewing the stats page on prod just shows a series of 0.0s.\r\n\r\nI'm going to push the two missing files to production now.  I feel confident making this change without prior notice because the change has already been tested by us on devel, it only involves moving the two missing files over to prod.  \r\n\r\n\r\nCan someone with a working staff account (non-NNN_XXXX) please run a test report a few times (the same report in succession) on prod.  Of course you won't be able to verify that the averaging is actually accurate but you will notice if something breaks :) \r\n\r\nI can't test myself because if I use my DPU_PAT account I will skew the general collection of statistics.  Remember that staff accounts are not counted towards them.\r\n\r\nFeel free to close the ticket once you've checked that the numbers are showing up in the avg. running time column in /stats/"},"comment":{"url":"https://api.github.com/repos/CARLI/web-reports/issues/comments/246786452","html_url":"https://github.com/CARLI/web-reports/issues/107#issuecomment-246786452","issue_url":"https://api.github.com/repos/CARLI/web-reports/issues/107","id":246786452,"user":{"login":"patrickzurek","id":6615138,"avatar_url":"https://avatars.githubusercontent.com/u/6615138?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickzurek","html_url":"https://github.com/patrickzurek","followers_url":"https://api.github.com/users/patrickzurek/followers","following_url":"https://api.github.com/users/patrickzurek/following{/other_user}","gists_url":"https://api.github.com/users/patrickzurek/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickzurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickzurek/subscriptions","organizations_url":"https://api.github.com/users/patrickzurek/orgs","repos_url":"https://api.github.com/users/patrickzurek/repos","events_url":"https://api.github.com/users/patrickzurek/events{/privacy}","received_events_url":"https://api.github.com/users/patrickzurek/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T18:56:06Z","updated_at":"2016-09-13T18:56:06Z","body":"While preparing the files to move to prod, I discovered a problem on devel.  There's a mistake in the way I'm recording and calculating the average running times of the reports.  In order to fix this I need to alter the django model and one of the database fields.  It's easy but a little tedious, so I'm going to switch to getting the navbar working for authenticated users on the report-list page first then return to this."}}
{"actor":{"display_login":"patrickzurek"}}