{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/delib-org/delib2/pulls/10","id":80354423,"html_url":"https://github.com/delib-org/delib2/pull/10","diff_url":"https://github.com/delib-org/delib2/pull/10.diff","patch_url":"https://github.com/delib-org/delib2/pull/10.patch","issue_url":"https://api.github.com/repos/delib-org/delib2/issues/10","number":10,"state":"closed","locked":false,"title":"Active entity","user":{"login":"curcumin","id":16463722,"avatar_url":"https://avatars.githubusercontent.com/u/16463722?v=3","gravatar_id":"","url":"https://api.github.com/users/curcumin","html_url":"https://github.com/curcumin","followers_url":"https://api.github.com/users/curcumin/followers","following_url":"https://api.github.com/users/curcumin/following{/other_user}","gists_url":"https://api.github.com/users/curcumin/gists{/gist_id}","starred_url":"https://api.github.com/users/curcumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curcumin/subscriptions","organizations_url":"https://api.github.com/users/curcumin/orgs","repos_url":"https://api.github.com/users/curcumin/repos","events_url":"https://api.github.com/users/curcumin/events{/privacy}","received_events_url":"https://api.github.com/users/curcumin/received_events","type":"User","site_admin":false},"body":"Object Def.\r\n    subsManager = {\r\n   isUpdatesSet: function(){\r\n      this.isFeedSet();\r\n      this.isNotificationsSet();\r\n   },\r\n   setFeed: function(){},\r\n   isFeedSet: function(){},\r\n   setNotifications: function(){},\r\n   isNotificationsSet: function(){},\r\n   userFeed: null,\r\n   feedIsSet: false,\r\n   userNotifications: null,\r\n   notificationsIsSet: false\r\n};\r\n\r\nsubsManager is a black-boxed object that handles all the kinds of subscriptions per activeEntity:\r\n\r\nfor each entity: Groups, topics..\r\nfor each event type: ownerCall, chat, newSubEntity\r\nfor both feed and notifications\r\n\r\nsubsManager.isUpdatesSet();\r\nis the only line needed in order to get activeEntity's subscriptions and enable functional subs.\r\n\r\nit does that by implementing set/isSet functions every each time a new activeEntity emerges.\r\n\r\n**NOTE: all previous line in topic/group/question/chat.js that used to handle updates subs. are now GONE.**","created_at":"2016-08-07T00:13:59Z","updated_at":"2016-08-07T01:49:10Z","closed_at":"2016-08-07T01:49:10Z","merged_at":"2016-08-07T01:49:10Z","merge_commit_sha":"ef30161dfcd2e5ea93f5618e4cdeafe2ee936156","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/delib-org/delib2/pulls/10/commits","review_comments_url":"https://api.github.com/repos/delib-org/delib2/pulls/10/comments","review_comment_url":"https://api.github.com/repos/delib-org/delib2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/delib-org/delib2/issues/10/comments","statuses_url":"https://api.github.com/repos/delib-org/delib2/statuses/ef30161dfcd2e5ea93f5618e4cdeafe2ee936156","head":{"label":"delib-org:activeEntity","ref":"activeEntity","sha":"ef30161dfcd2e5ea93f5618e4cdeafe2ee936156","user":{"login":"delib-org","id":17990054,"avatar_url":"https://avatars.githubusercontent.com/u/17990054?v=3","gravatar_id":"","url":"https://api.github.com/users/delib-org","html_url":"https://github.com/delib-org","followers_url":"https://api.github.com/users/delib-org/followers","following_url":"https://api.github.com/users/delib-org/following{/other_user}","gists_url":"https://api.github.com/users/delib-org/gists{/gist_id}","starred_url":"https://api.github.com/users/delib-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delib-org/subscriptions","organizations_url":"https://api.github.com/users/delib-org/orgs","repos_url":"https://api.github.com/users/delib-org/repos","events_url":"https://api.github.com/users/delib-org/events{/privacy}","received_events_url":"https://api.github.com/users/delib-org/received_events","type":"Organization","site_admin":false},"repo":{"id":58949571,"name":"delib2","full_name":"delib-org/delib2","owner":{"login":"delib-org","id":17990054,"avatar_url":"https://avatars.githubusercontent.com/u/17990054?v=3","gravatar_id":"","url":"https://api.github.com/users/delib-org","html_url":"https://github.com/delib-org","followers_url":"https://api.github.com/users/delib-org/followers","following_url":"https://api.github.com/users/delib-org/following{/other_user}","gists_url":"https://api.github.com/users/delib-org/gists{/gist_id}","starred_url":"https://api.github.com/users/delib-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delib-org/subscriptions","organizations_url":"https://api.github.com/users/delib-org/orgs","repos_url":"https://api.github.com/users/delib-org/repos","events_url":"https://api.github.com/users/delib-org/events{/privacy}","received_events_url":"https://api.github.com/users/delib-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/delib-org/delib2","description":"Collabortive decision making web-app","fork":false,"url":"https://api.github.com/repos/delib-org/delib2","forks_url":"https://api.github.com/repos/delib-org/delib2/forks","keys_url":"https://api.github.com/repos/delib-org/delib2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delib-org/delib2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delib-org/delib2/teams","hooks_url":"https://api.github.com/repos/delib-org/delib2/hooks","issue_events_url":"https://api.github.com/repos/delib-org/delib2/issues/events{/number}","events_url":"https://api.github.com/repos/delib-org/delib2/events","assignees_url":"https://api.github.com/repos/delib-org/delib2/assignees{/user}","branches_url":"https://api.github.com/repos/delib-org/delib2/branches{/branch}","tags_url":"https://api.github.com/repos/delib-org/delib2/tags","blobs_url":"https://api.github.com/repos/delib-org/delib2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delib-org/delib2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delib-org/delib2/git/refs{/sha}","trees_url":"https://api.github.com/repos/delib-org/delib2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delib-org/delib2/statuses/{sha}","languages_url":"https://api.github.com/repos/delib-org/delib2/languages","stargazers_url":"https://api.github.com/repos/delib-org/delib2/stargazers","contributors_url":"https://api.github.com/repos/delib-org/delib2/contributors","subscribers_url":"https://api.github.com/repos/delib-org/delib2/subscribers","subscription_url":"https://api.github.com/repos/delib-org/delib2/subscription","commits_url":"https://api.github.com/repos/delib-org/delib2/commits{/sha}","git_commits_url":"https://api.github.com/repos/delib-org/delib2/git/commits{/sha}","comments_url":"https://api.github.com/repos/delib-org/delib2/comments{/number}","issue_comment_url":"https://api.github.com/repos/delib-org/delib2/issues/comments{/number}","contents_url":"https://api.github.com/repos/delib-org/delib2/contents/{+path}","compare_url":"https://api.github.com/repos/delib-org/delib2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delib-org/delib2/merges","archive_url":"https://api.github.com/repos/delib-org/delib2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delib-org/delib2/downloads","issues_url":"https://api.github.com/repos/delib-org/delib2/issues{/number}","pulls_url":"https://api.github.com/repos/delib-org/delib2/pulls{/number}","milestones_url":"https://api.github.com/repos/delib-org/delib2/milestones{/number}","notifications_url":"https://api.github.com/repos/delib-org/delib2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delib-org/delib2/labels{/name}","releases_url":"https://api.github.com/repos/delib-org/delib2/releases{/id}","deployments_url":"https://api.github.com/repos/delib-org/delib2/deployments","created_at":"2016-05-16T16:45:07Z","updated_at":"2016-07-26T18:02:51Z","pushed_at":"2016-08-07T01:49:10Z","git_url":"git://github.com/delib-org/delib2.git","ssh_url":"git@github.com:delib-org/delib2.git","clone_url":"https://github.com/delib-org/delib2.git","svn_url":"https://github.com/delib-org/delib2","homepage":"https://synthesistalyaron.firebaseapp.com","size":2048,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"delib-org:master","ref":"master","sha":"e3e67c1c352bfca6a3be5eacb4958bdd7a6b5b02","user":{"login":"delib-org","id":17990054,"avatar_url":"https://avatars.githubusercontent.com/u/17990054?v=3","gravatar_id":"","url":"https://api.github.com/users/delib-org","html_url":"https://github.com/delib-org","followers_url":"https://api.github.com/users/delib-org/followers","following_url":"https://api.github.com/users/delib-org/following{/other_user}","gists_url":"https://api.github.com/users/delib-org/gists{/gist_id}","starred_url":"https://api.github.com/users/delib-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delib-org/subscriptions","organizations_url":"https://api.github.com/users/delib-org/orgs","repos_url":"https://api.github.com/users/delib-org/repos","events_url":"https://api.github.com/users/delib-org/events{/privacy}","received_events_url":"https://api.github.com/users/delib-org/received_events","type":"Organization","site_admin":false},"repo":{"id":58949571,"name":"delib2","full_name":"delib-org/delib2","owner":{"login":"delib-org","id":17990054,"avatar_url":"https://avatars.githubusercontent.com/u/17990054?v=3","gravatar_id":"","url":"https://api.github.com/users/delib-org","html_url":"https://github.com/delib-org","followers_url":"https://api.github.com/users/delib-org/followers","following_url":"https://api.github.com/users/delib-org/following{/other_user}","gists_url":"https://api.github.com/users/delib-org/gists{/gist_id}","starred_url":"https://api.github.com/users/delib-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delib-org/subscriptions","organizations_url":"https://api.github.com/users/delib-org/orgs","repos_url":"https://api.github.com/users/delib-org/repos","events_url":"https://api.github.com/users/delib-org/events{/privacy}","received_events_url":"https://api.github.com/users/delib-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/delib-org/delib2","description":"Collabortive decision making web-app","fork":false,"url":"https://api.github.com/repos/delib-org/delib2","forks_url":"https://api.github.com/repos/delib-org/delib2/forks","keys_url":"https://api.github.com/repos/delib-org/delib2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delib-org/delib2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delib-org/delib2/teams","hooks_url":"https://api.github.com/repos/delib-org/delib2/hooks","issue_events_url":"https://api.github.com/repos/delib-org/delib2/issues/events{/number}","events_url":"https://api.github.com/repos/delib-org/delib2/events","assignees_url":"https://api.github.com/repos/delib-org/delib2/assignees{/user}","branches_url":"https://api.github.com/repos/delib-org/delib2/branches{/branch}","tags_url":"https://api.github.com/repos/delib-org/delib2/tags","blobs_url":"https://api.github.com/repos/delib-org/delib2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delib-org/delib2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delib-org/delib2/git/refs{/sha}","trees_url":"https://api.github.com/repos/delib-org/delib2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delib-org/delib2/statuses/{sha}","languages_url":"https://api.github.com/repos/delib-org/delib2/languages","stargazers_url":"https://api.github.com/repos/delib-org/delib2/stargazers","contributors_url":"https://api.github.com/repos/delib-org/delib2/contributors","subscribers_url":"https://api.github.com/repos/delib-org/delib2/subscribers","subscription_url":"https://api.github.com/repos/delib-org/delib2/subscription","commits_url":"https://api.github.com/repos/delib-org/delib2/commits{/sha}","git_commits_url":"https://api.github.com/repos/delib-org/delib2/git/commits{/sha}","comments_url":"https://api.github.com/repos/delib-org/delib2/comments{/number}","issue_comment_url":"https://api.github.com/repos/delib-org/delib2/issues/comments{/number}","contents_url":"https://api.github.com/repos/delib-org/delib2/contents/{+path}","compare_url":"https://api.github.com/repos/delib-org/delib2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delib-org/delib2/merges","archive_url":"https://api.github.com/repos/delib-org/delib2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delib-org/delib2/downloads","issues_url":"https://api.github.com/repos/delib-org/delib2/issues{/number}","pulls_url":"https://api.github.com/repos/delib-org/delib2/pulls{/number}","milestones_url":"https://api.github.com/repos/delib-org/delib2/milestones{/number}","notifications_url":"https://api.github.com/repos/delib-org/delib2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delib-org/delib2/labels{/name}","releases_url":"https://api.github.com/repos/delib-org/delib2/releases{/id}","deployments_url":"https://api.github.com/repos/delib-org/delib2/deployments","created_at":"2016-05-16T16:45:07Z","updated_at":"2016-07-26T18:02:51Z","pushed_at":"2016-08-07T01:49:10Z","git_url":"git://github.com/delib-org/delib2.git","ssh_url":"git@github.com:delib-org/delib2.git","clone_url":"https://github.com/delib-org/delib2.git","svn_url":"https://github.com/delib-org/delib2","homepage":"https://synthesistalyaron.firebaseapp.com","size":2048,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/delib-org/delib2/pulls/10"},"html":{"href":"https://github.com/delib-org/delib2/pull/10"},"issue":{"href":"https://api.github.com/repos/delib-org/delib2/issues/10"},"comments":{"href":"https://api.github.com/repos/delib-org/delib2/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/delib-org/delib2/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/delib-org/delib2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/delib-org/delib2/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/delib-org/delib2/statuses/ef30161dfcd2e5ea93f5618e4cdeafe2ee936156"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"curcumin","id":16463722,"avatar_url":"https://avatars.githubusercontent.com/u/16463722?v=3","gravatar_id":"","url":"https://api.github.com/users/curcumin","html_url":"https://github.com/curcumin","followers_url":"https://api.github.com/users/curcumin/followers","following_url":"https://api.github.com/users/curcumin/following{/other_user}","gists_url":"https://api.github.com/users/curcumin/gists{/gist_id}","starred_url":"https://api.github.com/users/curcumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curcumin/subscriptions","organizations_url":"https://api.github.com/users/curcumin/orgs","repos_url":"https://api.github.com/users/curcumin/repos","events_url":"https://api.github.com/users/curcumin/events{/privacy}","received_events_url":"https://api.github.com/users/curcumin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":516,"deletions":309,"changed_files":13}}
{"actor":{"display_login":"curcumin"}}