{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/118","labels_url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/118/comments","events_url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/118/events","html_url":"https://github.com/mozilla/api.webmaker.org/pull/118","id":95238367,"number":118,"title":"bulk project endpoint","user":{"login":"cadecairos","id":438003,"avatar_url":"https://avatars.githubusercontent.com/u/438003?v=3","gravatar_id":"","url":"https://api.github.com/users/cadecairos","html_url":"https://github.com/cadecairos","followers_url":"https://api.github.com/users/cadecairos/followers","following_url":"https://api.github.com/users/cadecairos/following{/other_user}","gists_url":"https://api.github.com/users/cadecairos/gists{/gist_id}","starred_url":"https://api.github.com/users/cadecairos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadecairos/subscriptions","organizations_url":"https://api.github.com/users/cadecairos/orgs","repos_url":"https://api.github.com/users/cadecairos/repos","events_url":"https://api.github.com/users/cadecairos/events{/privacy}","received_events_url":"https://api.github.com/users/cadecairos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/api.webmaker.org/labels/PR%20needs%20review","name":"PR needs review","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"ashleygwilliams","id":1163554,"avatar_url":"https://avatars.githubusercontent.com/u/1163554?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleygwilliams","html_url":"https://github.com/ashleygwilliams","followers_url":"https://api.github.com/users/ashleygwilliams/followers","following_url":"https://api.github.com/users/ashleygwilliams/following{/other_user}","gists_url":"https://api.github.com/users/ashleygwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleygwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleygwilliams/subscriptions","organizations_url":"https://api.github.com/users/ashleygwilliams/orgs","repos_url":"https://api.github.com/users/ashleygwilliams/repos","events_url":"https://api.github.com/users/ashleygwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/ashleygwilliams/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/api.webmaker.org/milestones/6","html_url":"https://github.com/mozilla/api.webmaker.org/milestones/1.0.2","labels_url":"https://api.github.com/repos/mozilla/api.webmaker.org/milestones/6/labels","id":1205525,"number":6,"title":"1.0.2","description":"","creator":{"login":"cadecairos","id":438003,"avatar_url":"https://avatars.githubusercontent.com/u/438003?v=3","gravatar_id":"","url":"https://api.github.com/users/cadecairos","html_url":"https://github.com/cadecairos","followers_url":"https://api.github.com/users/cadecairos/followers","following_url":"https://api.github.com/users/cadecairos/following{/other_user}","gists_url":"https://api.github.com/users/cadecairos/gists{/gist_id}","starred_url":"https://api.github.com/users/cadecairos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadecairos/subscriptions","organizations_url":"https://api.github.com/users/cadecairos/orgs","repos_url":"https://api.github.com/users/cadecairos/repos","events_url":"https://api.github.com/users/cadecairos/events{/privacy}","received_events_url":"https://api.github.com/users/cadecairos/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":2,"state":"open","created_at":"2015-07-13T17:19:22Z","updated_at":"2015-07-15T21:41:16Z","due_on":"2015-07-17T04:00:00Z","closed_at":null},"comments":4,"created_at":"2015-07-15T16:41:59Z","updated_at":"2015-07-17T20:02:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/api.webmaker.org/pulls/118","html_url":"https://github.com/mozilla/api.webmaker.org/pull/118","diff_url":"https://github.com/mozilla/api.webmaker.org/pull/118.diff","patch_url":"https://github.com/mozilla/api.webmaker.org/pull/118.patch"},"body":"Fixes #76 \r\n\r\nThis is the initial implementation, I'm working on tests and debugging, and making sure error messages are meaningful."},"comment":{"url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/comments/122396752","html_url":"https://github.com/mozilla/api.webmaker.org/pull/118#issuecomment-122396752","issue_url":"https://api.github.com/repos/mozilla/api.webmaker.org/issues/118","id":122396752,"user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T20:02:05Z","updated_at":"2015-07-17T20:02:05Z","body":"based on discussions we've decided the most workable solution is to make sure records have a reference to the owning user's id, so that any operation can be validated against values local to the table we need to work in.\r\n\r\nThe schema update for this will be a backward-compatible new `user_id` column in the projects/pages/elements tables, making explicit the ownership relation that is currently left implicit and requires walking all the tables (\"element id X belongs to page Y, page Y belongs to project Z, is user U authorized to work in project Z?\")"}}