{"action":"created","comment":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/116985029","pull_request_review_id":38649698,"id":116985029,"diff_hunk":"@@ -134,6 +160,21 @@ app.controller(function(Sequence) {\n     });\n   })\n \n+  this.get('api/sequences-collegues', function (context)  {\n+    if (!context.enforceFormateur()) return;\n+    if (!context.session.currentStructure) throw new Error('context.session.currentStructure is not defined')\n+    var owner = context.utilisateur.oid;\n+\n+    Sequence\n+    .match('owner').notIn([owner])\n+    .match('publicAmis').equals(true)","path":"sesalab-api/source/sequence/index.js","position":70,"original_position":70,"commit_id":"69f4d4f4033f1084ba67b846a49bbc9a3dd88bb1","original_commit_id":"69f4d4f4033f1084ba67b846a49bbc9a3dd88bb1","user":{"login":"qboisson","id":15812401,"avatar_url":"https://avatars3.githubusercontent.com/u/15812401?v=3","gravatar_id":"","url":"https://api.github.com/users/qboisson","html_url":"https://github.com/qboisson","followers_url":"https://api.github.com/users/qboisson/followers","following_url":"https://api.github.com/users/qboisson/following{/other_user}","gists_url":"https://api.github.com/users/qboisson/gists{/gist_id}","starred_url":"https://api.github.com/users/qboisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qboisson/subscriptions","organizations_url":"https://api.github.com/users/qboisson/orgs","repos_url":"https://api.github.com/users/qboisson/repos","events_url":"https://api.github.com/users/qboisson/events{/privacy}","received_events_url":"https://api.github.com/users/qboisson/received_events","type":"User","site_admin":false},"body":".true() fait la même chose","created_at":"2017-05-17T12:27:13Z","updated_at":"2017-05-17T12:31:31Z","html_url":"https://github.com/Sesamath/sesalab/pull/220#discussion_r116985029","pull_request_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/220","_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/116985029"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/220#discussion_r116985029"},"pull_request":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/220"}}},"pull_request":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/220","id":120147708,"html_url":"https://github.com/Sesamath/sesalab/pull/220","diff_url":"https://github.com/Sesamath/sesalab/pull/220.diff","patch_url":"https://github.com/Sesamath/sesalab/pull/220.patch","issue_url":"https://api.github.com/repos/Sesamath/sesalab/issues/220","number":220,"state":"open","locked":false,"title":"Allow users to share theirs sequences with coworkers","user":{"login":"DonoSybrix","id":3781087,"avatar_url":"https://avatars3.githubusercontent.com/u/3781087?v=3","gravatar_id":"","url":"https://api.github.com/users/DonoSybrix","html_url":"https://github.com/DonoSybrix","followers_url":"https://api.github.com/users/DonoSybrix/followers","following_url":"https://api.github.com/users/DonoSybrix/following{/other_user}","gists_url":"https://api.github.com/users/DonoSybrix/gists{/gist_id}","starred_url":"https://api.github.com/users/DonoSybrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonoSybrix/subscriptions","organizations_url":"https://api.github.com/users/DonoSybrix/orgs","repos_url":"https://api.github.com/users/DonoSybrix/repos","events_url":"https://api.github.com/users/DonoSybrix/events{/privacy}","received_events_url":"https://api.github.com/users/DonoSybrix/received_events","type":"User","site_admin":false},"body":"Trello: [Card](https://trello.com/c/S0LnSlzA/223-gerer-le-partage-de-sequences-entre-mes-structures)\r\n\r\nBonus design \r\n<img width=\"557\" alt=\"capture d ecran 2017-05-11 a 18 21 28\" src=\"https://cloud.githubusercontent.com/assets/3781087/25960208/af92ccd8-3676-11e7-954a-a487a1e0208f.png\">\r\nupdate :\r\n","created_at":"2017-05-11T16:22:03Z","updated_at":"2017-05-17T12:31:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cc15b6270a9494e9fc94f54039f9e6024108651","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/220/commits","review_comments_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/220/comments","review_comment_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/issues/220/comments","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/69f4d4f4033f1084ba67b846a49bbc9a3dd88bb1","head":{"label":"Sesamath:feature/share-friends","ref":"feature/share-friends","sha":"69f4d4f4033f1084ba67b846a49bbc9a3dd88bb1","user":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"repo":{"id":79142233,"name":"sesalab","full_name":"Sesamath/sesalab","owner":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sesamath/sesalab","description":"Un gestionnaire de séances pédagogiques, utilisé pour labomep.sesamath.net","fork":false,"url":"https://api.github.com/repos/Sesamath/sesalab","forks_url":"https://api.github.com/repos/Sesamath/sesalab/forks","keys_url":"https://api.github.com/repos/Sesamath/sesalab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sesamath/sesalab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sesamath/sesalab/teams","hooks_url":"https://api.github.com/repos/Sesamath/sesalab/hooks","issue_events_url":"https://api.github.com/repos/Sesamath/sesalab/issues/events{/number}","events_url":"https://api.github.com/repos/Sesamath/sesalab/events","assignees_url":"https://api.github.com/repos/Sesamath/sesalab/assignees{/user}","branches_url":"https://api.github.com/repos/Sesamath/sesalab/branches{/branch}","tags_url":"https://api.github.com/repos/Sesamath/sesalab/tags","blobs_url":"https://api.github.com/repos/Sesamath/sesalab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sesamath/sesalab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sesamath/sesalab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sesamath/sesalab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/{sha}","languages_url":"https://api.github.com/repos/Sesamath/sesalab/languages","stargazers_url":"https://api.github.com/repos/Sesamath/sesalab/stargazers","contributors_url":"https://api.github.com/repos/Sesamath/sesalab/contributors","subscribers_url":"https://api.github.com/repos/Sesamath/sesalab/subscribers","subscription_url":"https://api.github.com/repos/Sesamath/sesalab/subscription","commits_url":"https://api.github.com/repos/Sesamath/sesalab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sesamath/sesalab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sesamath/sesalab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sesamath/sesalab/contents/{+path}","compare_url":"https://api.github.com/repos/Sesamath/sesalab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sesamath/sesalab/merges","archive_url":"https://api.github.com/repos/Sesamath/sesalab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sesamath/sesalab/downloads","issues_url":"https://api.github.com/repos/Sesamath/sesalab/issues{/number}","pulls_url":"https://api.github.com/repos/Sesamath/sesalab/pulls{/number}","milestones_url":"https://api.github.com/repos/Sesamath/sesalab/milestones{/number}","notifications_url":"https://api.github.com/repos/Sesamath/sesalab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sesamath/sesalab/labels{/name}","releases_url":"https://api.github.com/repos/Sesamath/sesalab/releases{/id}","deployments_url":"https://api.github.com/repos/Sesamath/sesalab/deployments","created_at":"2017-01-16T17:31:11Z","updated_at":"2017-01-16T17:32:00Z","pushed_at":"2017-05-17T10:57:03Z","git_url":"git://github.com/Sesamath/sesalab.git","ssh_url":"git@github.com:Sesamath/sesalab.git","clone_url":"https://github.com/Sesamath/sesalab.git","svn_url":"https://github.com/Sesamath/sesalab","homepage":null,"size":8219,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"Sesamath:master","ref":"master","sha":"dd3ea780c8f2f190bea515fcac8b4a69abdf20af","user":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"repo":{"id":79142233,"name":"sesalab","full_name":"Sesamath/sesalab","owner":{"login":"Sesamath","id":18112218,"avatar_url":"https://avatars0.githubusercontent.com/u/18112218?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesamath","html_url":"https://github.com/Sesamath","followers_url":"https://api.github.com/users/Sesamath/followers","following_url":"https://api.github.com/users/Sesamath/following{/other_user}","gists_url":"https://api.github.com/users/Sesamath/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesamath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesamath/subscriptions","organizations_url":"https://api.github.com/users/Sesamath/orgs","repos_url":"https://api.github.com/users/Sesamath/repos","events_url":"https://api.github.com/users/Sesamath/events{/privacy}","received_events_url":"https://api.github.com/users/Sesamath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sesamath/sesalab","description":"Un gestionnaire de séances pédagogiques, utilisé pour labomep.sesamath.net","fork":false,"url":"https://api.github.com/repos/Sesamath/sesalab","forks_url":"https://api.github.com/repos/Sesamath/sesalab/forks","keys_url":"https://api.github.com/repos/Sesamath/sesalab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sesamath/sesalab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sesamath/sesalab/teams","hooks_url":"https://api.github.com/repos/Sesamath/sesalab/hooks","issue_events_url":"https://api.github.com/repos/Sesamath/sesalab/issues/events{/number}","events_url":"https://api.github.com/repos/Sesamath/sesalab/events","assignees_url":"https://api.github.com/repos/Sesamath/sesalab/assignees{/user}","branches_url":"https://api.github.com/repos/Sesamath/sesalab/branches{/branch}","tags_url":"https://api.github.com/repos/Sesamath/sesalab/tags","blobs_url":"https://api.github.com/repos/Sesamath/sesalab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sesamath/sesalab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sesamath/sesalab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sesamath/sesalab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/{sha}","languages_url":"https://api.github.com/repos/Sesamath/sesalab/languages","stargazers_url":"https://api.github.com/repos/Sesamath/sesalab/stargazers","contributors_url":"https://api.github.com/repos/Sesamath/sesalab/contributors","subscribers_url":"https://api.github.com/repos/Sesamath/sesalab/subscribers","subscription_url":"https://api.github.com/repos/Sesamath/sesalab/subscription","commits_url":"https://api.github.com/repos/Sesamath/sesalab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sesamath/sesalab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sesamath/sesalab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sesamath/sesalab/contents/{+path}","compare_url":"https://api.github.com/repos/Sesamath/sesalab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sesamath/sesalab/merges","archive_url":"https://api.github.com/repos/Sesamath/sesalab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sesamath/sesalab/downloads","issues_url":"https://api.github.com/repos/Sesamath/sesalab/issues{/number}","pulls_url":"https://api.github.com/repos/Sesamath/sesalab/pulls{/number}","milestones_url":"https://api.github.com/repos/Sesamath/sesalab/milestones{/number}","notifications_url":"https://api.github.com/repos/Sesamath/sesalab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sesamath/sesalab/labels{/name}","releases_url":"https://api.github.com/repos/Sesamath/sesalab/releases{/id}","deployments_url":"https://api.github.com/repos/Sesamath/sesalab/deployments","created_at":"2017-01-16T17:31:11Z","updated_at":"2017-01-16T17:32:00Z","pushed_at":"2017-05-17T10:57:03Z","git_url":"git://github.com/Sesamath/sesalab.git","ssh_url":"git@github.com:Sesamath/sesalab.git","clone_url":"https://github.com/Sesamath/sesalab.git","svn_url":"https://github.com/Sesamath/sesalab","homepage":null,"size":8219,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/220"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/220"},"issue":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/220"},"comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/Sesamath/sesalab/statuses/69f4d4f4033f1084ba67b846a49bbc9a3dd88bb1"}}}}
{"actor":{"display_login":"qboisson"}}