{"action":"created","comment":{"url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/comments/227103600","pull_request_review_id":167067593,"id":227103600,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzEwMzYwMA==","diff_hunk":"@@ -518,6 +536,36 @@ protected function prepareProjection(array $fields)\n         return $projection;\n     }\n \n+    /**\n+     * Based on the work of bjori/mongo-php-transistor.\n+     * Calculate `$set` and `$unset` arrays for update operation and store them on $changes.\n+     *\n+     * @see https://github.com/bjori/mongo-php-transistor/blob/70f5af00795d67f4d5a8c397e831435814df9937/src/Transistor.php#L108\n+     */\n+    private function calculateChanges(array &$changes, array $newData, array $oldData, string $keyfix = '')\n+    {\n+        foreach ($newData as $k => $v) {\n+            if (!isset($oldData[$k])) { // new field\n+                $changes['$set'][\"{$keyfix}{$k}\"] = $v;\n+            } elseif ($oldData[$k] != $v) {  // changed value\n+                if (is_array($v) && $oldData[$k] && $v) { // check array recursively for changes\n+                    $this->calculateChanges($changes, $v, $oldData[$k], \"{$keyfix}{$k}.\");\n+                } else {\n+                    // overwrite normal changes in keys\n+                    // this applies to previously empty arrays/documents too\n+                    $changes['$set'][\"{$keyfix}{$k}\"] = $v;\n+                }\n+            }\n+        }\n+\n+        foreach ($oldData as $k => $v) { // data that used to exist, but now doesn't\n+            if (!isset($newData[$k])) { // removed field\n+                $changes['$unset'][\"{$keyfix}{$k}\"] = '';\n+                continue;","path":"src/DataMapper/DataMapper.php","position":101,"original_position":101,"commit_id":"367c77dcc80ca7fba7b4f4af9d1aeb91f6ab5730","original_commit_id":"367c77dcc80ca7fba7b4f4af9d1aeb91f6ab5730","user":{"login":"ravanscafi","id":6104262,"node_id":"MDQ6VXNlcjYxMDQyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6104262?v=4","gravatar_id":"","url":"https://api.github.com/users/ravanscafi","html_url":"https://github.com/ravanscafi","followers_url":"https://api.github.com/users/ravanscafi/followers","following_url":"https://api.github.com/users/ravanscafi/following{/other_user}","gists_url":"https://api.github.com/users/ravanscafi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravanscafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravanscafi/subscriptions","organizations_url":"https://api.github.com/users/ravanscafi/orgs","repos_url":"https://api.github.com/users/ravanscafi/repos","events_url":"https://api.github.com/users/ravanscafi/events{/privacy}","received_events_url":"https://api.github.com/users/ravanscafi/received_events","type":"User","site_admin":false},"body":"yeah, I just copied the script. I saw it too, I guess it is defensive programming","created_at":"2018-10-22T19:20:08Z","updated_at":"2018-10-22T19:20:08Z","html_url":"https://github.com/leroy-merlin-br/mongolid/pull/134#discussion_r227103600","pull_request_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/comments/227103600"},"html":{"href":"https://github.com/leroy-merlin-br/mongolid/pull/134#discussion_r227103600"},"pull_request":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134"}},"in_reply_to_id":227092193},"pull_request":{"url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134","id":224758434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NzU4NDM0","html_url":"https://github.com/leroy-merlin-br/mongolid/pull/134","diff_url":"https://github.com/leroy-merlin-br/mongolid/pull/134.diff","patch_url":"https://github.com/leroy-merlin-br/mongolid/pull/134.patch","issue_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/134","number":134,"state":"open","locked":false,"title":"Use atomic updates for update() method of data mapper","user":{"login":"ravanscafi","id":6104262,"node_id":"MDQ6VXNlcjYxMDQyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6104262?v=4","gravatar_id":"","url":"https://api.github.com/users/ravanscafi","html_url":"https://github.com/ravanscafi","followers_url":"https://api.github.com/users/ravanscafi/followers","following_url":"https://api.github.com/users/ravanscafi/following{/other_user}","gists_url":"https://api.github.com/users/ravanscafi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravanscafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravanscafi/subscriptions","organizations_url":"https://api.github.com/users/ravanscafi/orgs","repos_url":"https://api.github.com/users/ravanscafi/repos","events_url":"https://api.github.com/users/ravanscafi/events{/privacy}","received_events_url":"https://api.github.com/users/ravanscafi/received_events","type":"User","site_admin":false},"body":"- [X] Better `update` method (fixes #122)\r\n- [X] Stop saving fields with value `null`\r\n- [x] Allow modification of array values directly\r\n\r\n----\r\n\r\nPreviously, our update method would send all fields to `updateOne` on mongodb, *even if it was not modified*. It was both slow and could have undesired effects, like two update operations on different php processes could lead to a racing condition where some data would go missing.\r\n\r\nNow it accounts for changed fields only, and also uses `$unset` to remove fields (fixes #122).\r\n\r\nOther change brought by this PR is not saving fields with `null` values anymore (only `null`, empty strings/false/empty arrays/zeros are still being saved). Take a look on [this](https://stackoverflow.com/questions/12403240/storing-null-vs-not-storing-the-key-at-all-in-mongodb) and [this](https://docs.mongodb.com/manual/tutorial/query-for-null-fields/) if you have questions regarding this practice.\r\n\r\nAnd perhaps the most developer friendly change:\r\n\r\n```php\r\n// previously\r\n$array = $model->array;\r\n$array['key'] = 'value';\r\n$model->array = $array;\r\n\r\n// now\r\n$model->array['key'] = 'value';\r\n```\r\n\r\n(notice, it might lead to a very specific edge case with `$mutable = true`  and setting an key dinamically, but it worth the risk IMO)","created_at":"2018-10-22T17:47:32Z","updated_at":"2018-10-22T19:20:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cc0a6c1fcc07f6fda4c2d27e79548299faa643b","assignee":{"login":"ravanscafi","id":6104262,"node_id":"MDQ6VXNlcjYxMDQyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6104262?v=4","gravatar_id":"","url":"https://api.github.com/users/ravanscafi","html_url":"https://github.com/ravanscafi","followers_url":"https://api.github.com/users/ravanscafi/followers","following_url":"https://api.github.com/users/ravanscafi/following{/other_user}","gists_url":"https://api.github.com/users/ravanscafi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravanscafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravanscafi/subscriptions","organizations_url":"https://api.github.com/users/ravanscafi/orgs","repos_url":"https://api.github.com/users/ravanscafi/repos","events_url":"https://api.github.com/users/ravanscafi/events{/privacy}","received_events_url":"https://api.github.com/users/ravanscafi/received_events","type":"User","site_admin":false},"assignees":[{"login":"ravanscafi","id":6104262,"node_id":"MDQ6VXNlcjYxMDQyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6104262?v=4","gravatar_id":"","url":"https://api.github.com/users/ravanscafi","html_url":"https://github.com/ravanscafi","followers_url":"https://api.github.com/users/ravanscafi/followers","following_url":"https://api.github.com/users/ravanscafi/following{/other_user}","gists_url":"https://api.github.com/users/ravanscafi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravanscafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravanscafi/subscriptions","organizations_url":"https://api.github.com/users/ravanscafi/orgs","repos_url":"https://api.github.com/users/ravanscafi/repos","events_url":"https://api.github.com/users/ravanscafi/events{/privacy}","received_events_url":"https://api.github.com/users/ravanscafi/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"djonasm","id":1079090,"node_id":"MDQ6VXNlcjEwNzkwOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1079090?v=4","gravatar_id":"","url":"https://api.github.com/users/djonasm","html_url":"https://github.com/djonasm","followers_url":"https://api.github.com/users/djonasm/followers","following_url":"https://api.github.com/users/djonasm/following{/other_user}","gists_url":"https://api.github.com/users/djonasm/gists{/gist_id}","starred_url":"https://api.github.com/users/djonasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djonasm/subscriptions","organizations_url":"https://api.github.com/users/djonasm/orgs","repos_url":"https://api.github.com/users/djonasm/repos","events_url":"https://api.github.com/users/djonasm/events{/privacy}","received_events_url":"https://api.github.com/users/djonasm/received_events","type":"User","site_admin":false},{"login":"brnbp","id":8925112,"node_id":"MDQ6VXNlcjg5MjUxMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8925112?v=4","gravatar_id":"","url":"https://api.github.com/users/brnbp","html_url":"https://github.com/brnbp","followers_url":"https://api.github.com/users/brnbp/followers","following_url":"https://api.github.com/users/brnbp/following{/other_user}","gists_url":"https://api.github.com/users/brnbp/gists{/gist_id}","starred_url":"https://api.github.com/users/brnbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brnbp/subscriptions","organizations_url":"https://api.github.com/users/brnbp/orgs","repos_url":"https://api.github.com/users/brnbp/repos","events_url":"https://api.github.com/users/brnbp/events{/privacy}","received_events_url":"https://api.github.com/users/brnbp/received_events","type":"User","site_admin":false},{"login":"ernjs","id":9384081,"node_id":"MDQ6VXNlcjkzODQwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/9384081?v=4","gravatar_id":"","url":"https://api.github.com/users/ernjs","html_url":"https://github.com/ernjs","followers_url":"https://api.github.com/users/ernjs/followers","following_url":"https://api.github.com/users/ernjs/following{/other_user}","gists_url":"https://api.github.com/users/ernjs/gists{/gist_id}","starred_url":"https://api.github.com/users/ernjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernjs/subscriptions","organizations_url":"https://api.github.com/users/ernjs/orgs","repos_url":"https://api.github.com/users/ernjs/repos","events_url":"https://api.github.com/users/ernjs/events{/privacy}","received_events_url":"https://api.github.com/users/ernjs/received_events","type":"User","site_admin":false},{"login":"aleferreiranogueira","id":13805078,"node_id":"MDQ6VXNlcjEzODA1MDc4","avatar_url":"https://avatars3.githubusercontent.com/u/13805078?v=4","gravatar_id":"","url":"https://api.github.com/users/aleferreiranogueira","html_url":"https://github.com/aleferreiranogueira","followers_url":"https://api.github.com/users/aleferreiranogueira/followers","following_url":"https://api.github.com/users/aleferreiranogueira/following{/other_user}","gists_url":"https://api.github.com/users/aleferreiranogueira/gists{/gist_id}","starred_url":"https://api.github.com/users/aleferreiranogueira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleferreiranogueira/subscriptions","organizations_url":"https://api.github.com/users/aleferreiranogueira/orgs","repos_url":"https://api.github.com/users/aleferreiranogueira/repos","events_url":"https://api.github.com/users/aleferreiranogueira/events{/privacy}","received_events_url":"https://api.github.com/users/aleferreiranogueira/received_events","type":"User","site_admin":false},{"login":"carusogabriel","id":16328050,"node_id":"MDQ6VXNlcjE2MzI4MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134/commits","review_comments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134/comments","review_comment_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/134/comments","statuses_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/statuses/367c77dcc80ca7fba7b4f4af9d1aeb91f6ab5730","head":{"label":"leroy-merlin-br:update-method","ref":"update-method","sha":"367c77dcc80ca7fba7b4f4af9d1aeb91f6ab5730","user":{"login":"leroy-merlin-br","id":4422202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjIyMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4422202?v=4","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"repo":{"id":9799450,"node_id":"MDEwOlJlcG9zaXRvcnk5Nzk5NDUw","name":"mongolid","full_name":"leroy-merlin-br/mongolid","private":false,"owner":{"login":"leroy-merlin-br","id":4422202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjIyMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4422202?v=4","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/leroy-merlin-br/mongolid","description":"Easy, powerful and ultrafast ODM for PHP and MongoDB","fork":false,"url":"https://api.github.com/repos/leroy-merlin-br/mongolid","forks_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/forks","keys_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/teams","hooks_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/hooks","issue_events_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/events{/number}","events_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/events","assignees_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/assignees{/user}","branches_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/branches{/branch}","tags_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/tags","blobs_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/refs{/sha}","trees_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/statuses/{sha}","languages_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/languages","stargazers_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/stargazers","contributors_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/contributors","subscribers_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/subscribers","subscription_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/subscription","commits_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/commits{/sha}","git_commits_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/commits{/sha}","comments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/comments{/number}","issue_comment_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/comments{/number}","contents_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/contents/{+path}","compare_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/merges","archive_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/downloads","issues_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues{/number}","pulls_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls{/number}","milestones_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/milestones{/number}","notifications_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/labels{/name}","releases_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/releases{/id}","deployments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/deployments","created_at":"2013-05-01T20:27:54Z","updated_at":"2018-10-18T20:47:15Z","pushed_at":"2018-10-22T18:14:15Z","git_url":"git://github.com/leroy-merlin-br/mongolid.git","ssh_url":"git@github.com:leroy-merlin-br/mongolid.git","clone_url":"https://github.com/leroy-merlin-br/mongolid.git","svn_url":"https://github.com/leroy-merlin-br/mongolid","homepage":null,"size":1398,"stargazers_count":67,"watchers_count":67,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":20,"open_issues":9,"watchers":67,"default_branch":"master"}},"base":{"label":"leroy-merlin-br:v3","ref":"v3","sha":"cb97919e48f94bc732628c222f6226b299b1fceb","user":{"login":"leroy-merlin-br","id":4422202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjIyMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4422202?v=4","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"repo":{"id":9799450,"node_id":"MDEwOlJlcG9zaXRvcnk5Nzk5NDUw","name":"mongolid","full_name":"leroy-merlin-br/mongolid","private":false,"owner":{"login":"leroy-merlin-br","id":4422202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjIyMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4422202?v=4","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/leroy-merlin-br/mongolid","description":"Easy, powerful and ultrafast ODM for PHP and MongoDB","fork":false,"url":"https://api.github.com/repos/leroy-merlin-br/mongolid","forks_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/forks","keys_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/teams","hooks_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/hooks","issue_events_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/events{/number}","events_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/events","assignees_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/assignees{/user}","branches_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/branches{/branch}","tags_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/tags","blobs_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/refs{/sha}","trees_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/statuses/{sha}","languages_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/languages","stargazers_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/stargazers","contributors_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/contributors","subscribers_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/subscribers","subscription_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/subscription","commits_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/commits{/sha}","git_commits_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/git/commits{/sha}","comments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/comments{/number}","issue_comment_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/comments{/number}","contents_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/contents/{+path}","compare_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/merges","archive_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/downloads","issues_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues{/number}","pulls_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls{/number}","milestones_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/milestones{/number}","notifications_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/labels{/name}","releases_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/releases{/id}","deployments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/deployments","created_at":"2013-05-01T20:27:54Z","updated_at":"2018-10-18T20:47:15Z","pushed_at":"2018-10-22T18:14:15Z","git_url":"git://github.com/leroy-merlin-br/mongolid.git","ssh_url":"git@github.com:leroy-merlin-br/mongolid.git","clone_url":"https://github.com/leroy-merlin-br/mongolid.git","svn_url":"https://github.com/leroy-merlin-br/mongolid","homepage":null,"size":1398,"stargazers_count":67,"watchers_count":67,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":20,"open_issues":9,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134"},"html":{"href":"https://github.com/leroy-merlin-br/mongolid/pull/134"},"issue":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/134"},"comments":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/leroy-merlin-br/mongolid/statuses/367c77dcc80ca7fba7b4f4af9d1aeb91f6ab5730"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ravanscafi"}}