{"action":"created","comment":{"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/comments/107596755","pull_request_review_id":28577237,"id":107596755,"diff_hunk":"@@ -5,30 +5,53 @@ import type { Deck } from '../api/types';\n \n export type State = {\n   decks: ?Array<Deck>;\n+  inaccessibleDecks: ?Array<Deck>;\n   localChanges: [];\n };\n \n const initialState: State = {\n   decks: null,\n+  inaccessibleDecks: null,\n   localChanges: [],\n };\n \n // if state.decks is null then library hasn't loaded yet\n // if state.decks size is 0, then library is empty\n function library(state: State = initialState, action: Action): State {\n   let decks: Array<Deck> = state.decks == null ? [] : state.decks.slice()\n+  let inaccessibleDecks: Array<Deck> = state.inaccessibleDecks == null ? [] : state.inaccessibleDecks.slice()\n   let localChanges = state.localChanges.slice()\n \n   if (action.type === 'LOADED_LIBRARY') {\n-    decks = action.decks\n+    inaccessibleDecks = []\n+    let loadedDecks = action.decks.slice()\n+\n+    action.decks.forEach(deck => {\n+        if ((!deck.accessible || deck.deleted)) {","path":"Cue/app/reducers/library.js","position":27,"original_position":27,"commit_id":"45d68e2a3141d065be5b4eda1ea2ab4e502c324c","original_commit_id":"45d68e2a3141d065be5b4eda1ea2ab4e502c324c","user":{"login":"mattyu007","id":13400887,"avatar_url":"https://avatars1.githubusercontent.com/u/13400887?v=3","gravatar_id":"","url":"https://api.github.com/users/mattyu007","html_url":"https://github.com/mattyu007","followers_url":"https://api.github.com/users/mattyu007/followers","following_url":"https://api.github.com/users/mattyu007/following{/other_user}","gists_url":"https://api.github.com/users/mattyu007/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyu007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyu007/subscriptions","organizations_url":"https://api.github.com/users/mattyu007/orgs","repos_url":"https://api.github.com/users/mattyu007/repos","events_url":"https://api.github.com/users/mattyu007/events{/privacy}","received_events_url":"https://api.github.com/users/mattyu007/received_events","type":"User","site_admin":false},"body":"Remove extra parens around test.","created_at":"2017-03-23T06:37:09Z","updated_at":"2017-03-23T06:58:59Z","html_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141#discussion_r107596755","pull_request_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141","_links":{"self":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/comments/107596755"},"html":{"href":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141#discussion_r107596755"},"pull_request":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141","id":112077912,"html_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141","diff_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141.diff","patch_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141.patch","issue_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/141","number":141,"state":"open","locked":false,"title":"Options for unavailable decks","user":{"login":"henryc132","id":7501968,"avatar_url":"https://avatars2.githubusercontent.com/u/7501968?v=3","gravatar_id":"","url":"https://api.github.com/users/henryc132","html_url":"https://github.com/henryc132","followers_url":"https://api.github.com/users/henryc132/followers","following_url":"https://api.github.com/users/henryc132/following{/other_user}","gists_url":"https://api.github.com/users/henryc132/gists{/gist_id}","starred_url":"https://api.github.com/users/henryc132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryc132/subscriptions","organizations_url":"https://api.github.com/users/henryc132/orgs","repos_url":"https://api.github.com/users/henryc132/repos","events_url":"https://api.github.com/users/henryc132/events{/privacy}","received_events_url":"https://api.github.com/users/henryc132/received_events","type":"User","site_admin":false},"body":"Closes #98\r\n\r\nAdd alert buttons for when user has public or shared decks that have been deleted or unavailable through privacy settings.\r\n\r\nAllow for the option to just remove deck from library, or to copy the deck.\r\n\r\n![accessibility](https://cloud.githubusercontent.com/assets/7501968/24213917/5f7acf2c-0f0a-11e7-8bbd-9ecac4e2bc72.PNG)\r\n","created_at":"2017-03-22T18:19:03Z","updated_at":"2017-03-23T06:58:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dca6dc752aeb76390bde3894a597841e1826abf3","assignee":{"login":"henryc132","id":7501968,"avatar_url":"https://avatars2.githubusercontent.com/u/7501968?v=3","gravatar_id":"","url":"https://api.github.com/users/henryc132","html_url":"https://github.com/henryc132","followers_url":"https://api.github.com/users/henryc132/followers","following_url":"https://api.github.com/users/henryc132/following{/other_user}","gists_url":"https://api.github.com/users/henryc132/gists{/gist_id}","starred_url":"https://api.github.com/users/henryc132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryc132/subscriptions","organizations_url":"https://api.github.com/users/henryc132/orgs","repos_url":"https://api.github.com/users/henryc132/repos","events_url":"https://api.github.com/users/henryc132/events{/privacy}","received_events_url":"https://api.github.com/users/henryc132/received_events","type":"User","site_admin":false},"assignees":[{"login":"henryc132","id":7501968,"avatar_url":"https://avatars2.githubusercontent.com/u/7501968?v=3","gravatar_id":"","url":"https://api.github.com/users/henryc132","html_url":"https://github.com/henryc132","followers_url":"https://api.github.com/users/henryc132/followers","following_url":"https://api.github.com/users/henryc132/following{/other_user}","gists_url":"https://api.github.com/users/henryc132/gists{/gist_id}","starred_url":"https://api.github.com/users/henryc132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryc132/subscriptions","organizations_url":"https://api.github.com/users/henryc132/orgs","repos_url":"https://api.github.com/users/henryc132/repos","events_url":"https://api.github.com/users/henryc132/events{/privacy}","received_events_url":"https://api.github.com/users/henryc132/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141/commits","review_comments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141/comments","review_comment_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/141/comments","statuses_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/statuses/45d68e2a3141d065be5b4eda1ea2ab4e502c324c","head":{"label":"ClaytonPassmore:feature/Accessibility","ref":"feature/Accessibility","sha":"45d68e2a3141d065be5b4eda1ea2ab4e502c324c","user":{"login":"ClaytonPassmore","id":6856391,"avatar_url":"https://avatars2.githubusercontent.com/u/6856391?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonPassmore","html_url":"https://github.com/ClaytonPassmore","followers_url":"https://api.github.com/users/ClaytonPassmore/followers","following_url":"https://api.github.com/users/ClaytonPassmore/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonPassmore/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonPassmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonPassmore/subscriptions","organizations_url":"https://api.github.com/users/ClaytonPassmore/orgs","repos_url":"https://api.github.com/users/ClaytonPassmore/repos","events_url":"https://api.github.com/users/ClaytonPassmore/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonPassmore/received_events","type":"User","site_admin":false},"repo":{"id":78602542,"name":"ProjectOrange","full_name":"ClaytonPassmore/ProjectOrange","owner":{"login":"ClaytonPassmore","id":6856391,"avatar_url":"https://avatars2.githubusercontent.com/u/6856391?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonPassmore","html_url":"https://github.com/ClaytonPassmore","followers_url":"https://api.github.com/users/ClaytonPassmore/followers","following_url":"https://api.github.com/users/ClaytonPassmore/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonPassmore/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonPassmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonPassmore/subscriptions","organizations_url":"https://api.github.com/users/ClaytonPassmore/orgs","repos_url":"https://api.github.com/users/ClaytonPassmore/repos","events_url":"https://api.github.com/users/ClaytonPassmore/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonPassmore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ClaytonPassmore/ProjectOrange","description":null,"fork":false,"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange","forks_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/forks","keys_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/teams","hooks_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/hooks","issue_events_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/events{/number}","events_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/events","assignees_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/assignees{/user}","branches_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/branches{/branch}","tags_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/tags","blobs_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/statuses/{sha}","languages_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/languages","stargazers_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/stargazers","contributors_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/contributors","subscribers_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/subscribers","subscription_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/subscription","commits_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/contents/{+path}","compare_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/merges","archive_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/downloads","issues_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues{/number}","pulls_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls{/number}","milestones_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/milestones{/number}","notifications_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/labels{/name}","releases_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/releases{/id}","deployments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/deployments","created_at":"2017-01-11T04:25:30Z","updated_at":"2017-03-01T23:08:57Z","pushed_at":"2017-03-23T06:49:22Z","git_url":"git://github.com/ClaytonPassmore/ProjectOrange.git","ssh_url":"git@github.com:ClaytonPassmore/ProjectOrange.git","clone_url":"https://github.com/ClaytonPassmore/ProjectOrange.git","svn_url":"https://github.com/ClaytonPassmore/ProjectOrange","homepage":null,"size":6771,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":2,"default_branch":"master"}},"base":{"label":"ClaytonPassmore:master","ref":"master","sha":"14818eff805cf1daf9a1f939b0aab66e89451192","user":{"login":"ClaytonPassmore","id":6856391,"avatar_url":"https://avatars2.githubusercontent.com/u/6856391?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonPassmore","html_url":"https://github.com/ClaytonPassmore","followers_url":"https://api.github.com/users/ClaytonPassmore/followers","following_url":"https://api.github.com/users/ClaytonPassmore/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonPassmore/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonPassmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonPassmore/subscriptions","organizations_url":"https://api.github.com/users/ClaytonPassmore/orgs","repos_url":"https://api.github.com/users/ClaytonPassmore/repos","events_url":"https://api.github.com/users/ClaytonPassmore/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonPassmore/received_events","type":"User","site_admin":false},"repo":{"id":78602542,"name":"ProjectOrange","full_name":"ClaytonPassmore/ProjectOrange","owner":{"login":"ClaytonPassmore","id":6856391,"avatar_url":"https://avatars2.githubusercontent.com/u/6856391?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonPassmore","html_url":"https://github.com/ClaytonPassmore","followers_url":"https://api.github.com/users/ClaytonPassmore/followers","following_url":"https://api.github.com/users/ClaytonPassmore/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonPassmore/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonPassmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonPassmore/subscriptions","organizations_url":"https://api.github.com/users/ClaytonPassmore/orgs","repos_url":"https://api.github.com/users/ClaytonPassmore/repos","events_url":"https://api.github.com/users/ClaytonPassmore/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonPassmore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ClaytonPassmore/ProjectOrange","description":null,"fork":false,"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange","forks_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/forks","keys_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/teams","hooks_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/hooks","issue_events_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/events{/number}","events_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/events","assignees_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/assignees{/user}","branches_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/branches{/branch}","tags_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/tags","blobs_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/statuses/{sha}","languages_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/languages","stargazers_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/stargazers","contributors_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/contributors","subscribers_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/subscribers","subscription_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/subscription","commits_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/contents/{+path}","compare_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/merges","archive_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/downloads","issues_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues{/number}","pulls_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls{/number}","milestones_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/milestones{/number}","notifications_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/labels{/name}","releases_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/releases{/id}","deployments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/deployments","created_at":"2017-01-11T04:25:30Z","updated_at":"2017-03-01T23:08:57Z","pushed_at":"2017-03-23T06:49:22Z","git_url":"git://github.com/ClaytonPassmore/ProjectOrange.git","ssh_url":"git@github.com:ClaytonPassmore/ProjectOrange.git","clone_url":"https://github.com/ClaytonPassmore/ProjectOrange.git","svn_url":"https://github.com/ClaytonPassmore/ProjectOrange","homepage":null,"size":6771,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141"},"html":{"href":"https://github.com/ClaytonPassmore/ProjectOrange/pull/141"},"issue":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/141"},"comments":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/statuses/45d68e2a3141d065be5b4eda1ea2ab4e502c324c"}}}}
{"actor":{"display_login":"mattyu007"}}