{"action":"created","comment":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/105116259","pull_request_review_id":25978791,"id":105116259,"diff_hunk":"@@ -142,19 +142,30 @@ function store(callback, dontNotify) {\n     delete _utilisateur.password;\n   }\n \n-  app.log.debug(\"Stockage de l'utilisateur\", xfert);\n-  app.sesalab.put('utilisateur', xfert, function(error, utilisateur) {\n-    if (!dontNotify) {\n-      if (!xfert.supprimerCompte) {\n-        app.toaster.toast('Vos modifications ont été prises en compte');\n-      }\n-      else {\n-        app.toaster.toast('Une demande de confirmation vous a été adressée par mail, cette confirmation rendra la suppression du compte effective');\n+  // Count teachers\n+  var teacherCount = 0;\n+  for (var i = 0; i < app.structure.$utilisateurs.length; i++) {\n+    var utilisateur = app.structure.$utilisateurs[i];\n+    teacherCount += (utilisateur.type == 1 && utilisateur.validators.account && utilisateur.validators.account.accepted) ? 1 : 0;","path":"sesalab-formateur/source/client/libraries/utilisateur/index.js","position":16,"original_position":16,"commit_id":"1d3bf0ad106344eef7cbb52857f0d794ba49917d","original_commit_id":"1d3bf0ad106344eef7cbb52857f0d794ba49917d","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":"Même chose ici pour TYPE_FORMATTEUR","created_at":"2017-03-09T09:11:36Z","updated_at":"2017-03-09T09:11:36Z","html_url":"https://github.com/Sesamath/sesalab/pull/52#discussion_r105116259","pull_request_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments/105116259"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/52#discussion_r105116259"},"pull_request":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/Sesamath/sesalab/pulls/52","id":109001417,"html_url":"https://github.com/Sesamath/sesalab/pull/52","diff_url":"https://github.com/Sesamath/sesalab/pull/52.diff","patch_url":"https://github.com/Sesamath/sesalab/pull/52.patch","issue_url":"https://api.github.com/repos/Sesamath/sesalab/issues/52","number":52,"state":"open","locked":false,"title":"Auto remove structure (structures without teachers)","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":"","created_at":"2017-03-03T15:59:37Z","updated_at":"2017-03-09T09:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1759768411cfdf71ab5f7bce2d3b3df634f43538","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Sesamath/sesalab/milestones/3","html_url":"https://github.com/Sesamath/sesalab/milestone/3","labels_url":"https://api.github.com/repos/Sesamath/sesalab/milestones/3/labels","id":2361463,"number":3,"title":"Sprint 3","description":null,"creator":{"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},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-03-03T15:58:54Z","updated_at":"2017-03-03T15:59:37Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/52/commits","review_comments_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/52/comments","review_comment_url":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sesamath/sesalab/issues/52/comments","statuses_url":"https://api.github.com/repos/Sesamath/sesalab/statuses/1d3bf0ad106344eef7cbb52857f0d794ba49917d","head":{"label":"Sesamath:auto-remove-structure","ref":"auto-remove-structure","sha":"1d3bf0ad106344eef7cbb52857f0d794ba49917d","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-03-08T18:10:27Z","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":7132,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"Sesamath:master","ref":"master","sha":"d1376a920d2ca492f4ee959db3dba93b7a2ea564","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-03-08T18:10:27Z","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":7132,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/52"},"html":{"href":"https://github.com/Sesamath/sesalab/pull/52"},"issue":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/52"},"comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sesamath/sesalab/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/Sesamath/sesalab/statuses/1d3bf0ad106344eef7cbb52857f0d794ba49917d"}}}}
{"actor":{"display_login":"qboisson"}}