{"action":"created","issue":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/766","repository_url":"https://api.github.com/repos/LearningLocker/learninglocker","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/766/comments","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/766/events","html_url":"https://github.com/LearningLocker/learninglocker/pull/766","id":123667328,"number":766,"title":"Issue/stored date","user":{"login":"ht2","id":1352590,"avatar_url":"https://avatars.githubusercontent.com/u/1352590?v=3","gravatar_id":"","url":"https://api.github.com/users/ht2","html_url":"https://github.com/ht2","followers_url":"https://api.github.com/users/ht2/followers","following_url":"https://api.github.com/users/ht2/following{/other_user}","gists_url":"https://api.github.com/users/ht2/gists{/gist_id}","starred_url":"https://api.github.com/users/ht2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ht2/subscriptions","organizations_url":"https://api.github.com/users/ht2/orgs","repos_url":"https://api.github.com/users/ht2/repos","events_url":"https://api.github.com/users/ht2/events{/privacy}","received_events_url":"https://api.github.com/users/ht2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/priority:medium","name":"priority:medium","color":"eb6420"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/status:confirmed","name":"status:confirmed","color":"e11d21"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/type:enhancement","name":"type:enhancement","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/47","html_url":"https://github.com/LearningLocker/learninglocker/milestones/1.12.0","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/47/labels","id":1324033,"number":47,"title":"1.12.0","description":"","creator":{"login":"daniel-abbey","id":13132831,"avatar_url":"https://avatars.githubusercontent.com/u/13132831?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-abbey","html_url":"https://github.com/daniel-abbey","followers_url":"https://api.github.com/users/daniel-abbey/followers","following_url":"https://api.github.com/users/daniel-abbey/following{/other_user}","gists_url":"https://api.github.com/users/daniel-abbey/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-abbey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-abbey/subscriptions","organizations_url":"https://api.github.com/users/daniel-abbey/orgs","repos_url":"https://api.github.com/users/daniel-abbey/repos","events_url":"https://api.github.com/users/daniel-abbey/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-abbey/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-09-25T15:21:47Z","updated_at":"2016-02-23T10:28:43Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-12-23T14:21:00Z","updated_at":"2016-02-23T12:03:12Z","closed_at":"2016-02-23T10:28:43Z","pull_request":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/766","html_url":"https://github.com/LearningLocker/learninglocker/pull/766","diff_url":"https://github.com/LearningLocker/learninglocker/pull/766.diff","patch_url":"https://github.com/LearningLocker/learninglocker/pull/766.patch"},"body":"Addresses issues with the \"stored\" value being queried and indexed as a string. \r\n\r\nThis PR adds a new MongoDate value to the top of the statement's document. \r\n\r\nIt provides migrations to do this for existing data, and ensures all new data also is inserted with these fields. \r\n\r\nIt also updates any referenced statements through the migration as well as a handful of indexes (added in the background). \r\n\r\nAll of this allows for much quicker sorting on statements as the \"statement.stored\" was the default sorting mechanism, and often the default field for querying on time (e.g. since/until in the xAPI/statements/GET).\r\n\r\nProbably addresses some speed concerns seen in #760 "},"comment":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/comments/187672969","html_url":"https://github.com/LearningLocker/learninglocker/pull/766#issuecomment-187672969","issue_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/766","id":187672969,"user":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T12:03:12Z","updated_at":"2016-02-23T12:03:12Z","body":"It looks like it is querying the right key (`stored`) but constructing the date correctly."}}