{"action":"created","issue":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/736","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/736/comments","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/736/events","html_url":"https://github.com/LearningLocker/learninglocker/issues/736","id":106156321,"number":736,"title":"Observer users can not view LRS List","user":{"login":"pondermatic","id":5377968,"avatar_url":"https://avatars.githubusercontent.com/u/5377968?v=3","gravatar_id":"","url":"https://api.github.com/users/pondermatic","html_url":"https://github.com/pondermatic","followers_url":"https://api.github.com/users/pondermatic/followers","following_url":"https://api.github.com/users/pondermatic/following{/other_user}","gists_url":"https://api.github.com/users/pondermatic/gists{/gist_id}","starred_url":"https://api.github.com/users/pondermatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pondermatic/subscriptions","organizations_url":"https://api.github.com/users/pondermatic/orgs","repos_url":"https://api.github.com/users/pondermatic/repos","events_url":"https://api.github.com/users/pondermatic/events{/privacy}","received_events_url":"https://api.github.com/users/pondermatic/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:unconfirmed","name":"status:unconfirmed","color":"009800"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/41","html_url":"https://github.com/LearningLocker/learninglocker/milestones/1.10.1","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/41/labels","id":1266095,"number":41,"title":"1.10.1","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":9,"closed_issues":2,"state":"open","created_at":"2015-08-21T10:29:43Z","updated_at":"2015-09-14T08:26:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-12T12:58:50Z","updated_at":"2015-09-14T11:07:53Z","closed_at":null,"body":"**Version**\r\ndevelop at 40adae0260a5f9f1d9c09931927fc44e9977f6a2 on 1.10.0\r\n\r\n**Steps to reproduce the bug**\r\n1. Invite users to a LRS.\r\n\r\n**Expected behaviour**\r\nWhen the user goes to `/lrs`, they should see a list of LRSs that they have been invited to.\r\n\r\n**Actual behaviour**\r\nThe LRS list says \"No LRS's available.\"\r\n\r\n**Server information**\r\nMongoDB 2.6.11 and 3.0.6\r\nPHP 5.6.5 and 5.6.12\r\nWindows 10 and CentOS 7.1\r\n\r\n**Client information**\r\nOS: Windows 10\r\nBrowser: Chrome version 45\r\n\r\n**Additional information**\r\nThe `lrs` collection contains users with string `_id` columns. `Jenssegers\\Mongodb\\Query\\Builder->compileWheres()` 2.0.x will convert the values in columns named `_id` or **ending** with `._id` from a string to MongoId. When users are invited to a LRS, their string `_id` is used for `lrs.users._id`.\r\nThe version of `jenssegers/laravel-mongodb` was changed from 1.4.x to 2.0.x in commit f60753f3a127496ee4e809d7d3d060d1b9b4cb86. v1.4 did not convert columns if the named ended with `._id`.\r\n"},"comment":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/comments/140041082","html_url":"https://github.com/LearningLocker/learninglocker/issues/736#issuecomment-140041082","issue_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/736","id":140041082,"user":{"login":"hallshouse","id":11246769,"avatar_url":"https://avatars.githubusercontent.com/u/11246769?v=3","gravatar_id":"","url":"https://api.github.com/users/hallshouse","html_url":"https://github.com/hallshouse","followers_url":"https://api.github.com/users/hallshouse/followers","following_url":"https://api.github.com/users/hallshouse/following{/other_user}","gists_url":"https://api.github.com/users/hallshouse/gists{/gist_id}","starred_url":"https://api.github.com/users/hallshouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallshouse/subscriptions","organizations_url":"https://api.github.com/users/hallshouse/orgs","repos_url":"https://api.github.com/users/hallshouse/repos","events_url":"https://api.github.com/users/hallshouse/events{/privacy}","received_events_url":"https://api.github.com/users/hallshouse/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T11:07:53Z","updated_at":"2015-09-14T11:07:53Z","body":"I was also able to reproduce the issue by:\r\n1. Selecting an LRS instance (already created)\r\n2. Going to the Users page and inviting a user\r\n3. Having the user authenticate\r\n\r\nI then logged in as my admin user, traversed to the users page, and saw the user have no LRS assigned.\r\nI think this is the cause of the symptom."}}