{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61","id":189564327,"html_url":"https://github.com/dirigeants/klasa-pieces/pull/61","diff_url":"https://github.com/dirigeants/klasa-pieces/pull/61.diff","patch_url":"https://github.com/dirigeants/klasa-pieces/pull/61.patch","issue_url":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/61","number":61,"state":"open","locked":false,"title":"Fix createTable and update methods, add consistency to MongoDB provider.","user":{"login":"MrJacz","id":23615291,"avatar_url":"https://avatars3.githubusercontent.com/u/23615291?v=4","gravatar_id":"","url":"https://api.github.com/users/MrJacz","html_url":"https://github.com/MrJacz","followers_url":"https://api.github.com/users/MrJacz/followers","following_url":"https://api.github.com/users/MrJacz/following{/other_user}","gists_url":"https://api.github.com/users/MrJacz/gists{/gist_id}","starred_url":"https://api.github.com/users/MrJacz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrJacz/subscriptions","organizations_url":"https://api.github.com/users/MrJacz/orgs","repos_url":"https://api.github.com/users/MrJacz/repos","events_url":"https://api.github.com/users/MrJacz/events{/privacy}","received_events_url":"https://api.github.com/users/MrJacz/received_events","type":"User","site_admin":false},"body":"The purpose of this PR is to fix the MongoDB provider of SG v2.1 where it will pass a second param that is the SQL schema to createTable which was causing some errors this is now fixed in the pending SG v2.2.\r\nThe provider now uses Object-spread instead of Object.assign for consistency throughout Klasa and uses the isObject method from util in the resolveQuery method for speed 💨.\r\nLastly, it fixes the update method where it wouldn't update all keys due to how the MongoDB module works (smh).\r\n\r\nThe reason this PR should be merged is that it fixes errors and bugs in the MongoDB provider that some users have encounter this PR resolves that and adds a little more speed to things 💨 \r\n","created_at":"2018-05-22T06:59:30Z","updated_at":"2018-05-22T06:59:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61/commits","review_comments_url":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61/comments","review_comment_url":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/61/comments","statuses_url":"https://api.github.com/repos/dirigeants/klasa-pieces/statuses/ea006024ae3d2fe868ad4c1a7664868ca755e5cf","head":{"label":"MrJacz:update-mongodb-provider","ref":"update-mongodb-provider","sha":"ea006024ae3d2fe868ad4c1a7664868ca755e5cf","user":{"login":"MrJacz","id":23615291,"avatar_url":"https://avatars3.githubusercontent.com/u/23615291?v=4","gravatar_id":"","url":"https://api.github.com/users/MrJacz","html_url":"https://github.com/MrJacz","followers_url":"https://api.github.com/users/MrJacz/followers","following_url":"https://api.github.com/users/MrJacz/following{/other_user}","gists_url":"https://api.github.com/users/MrJacz/gists{/gist_id}","starred_url":"https://api.github.com/users/MrJacz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrJacz/subscriptions","organizations_url":"https://api.github.com/users/MrJacz/orgs","repos_url":"https://api.github.com/users/MrJacz/repos","events_url":"https://api.github.com/users/MrJacz/events{/privacy}","received_events_url":"https://api.github.com/users/MrJacz/received_events","type":"User","site_admin":false},"repo":{"id":132453489,"name":"klasa-pieces","full_name":"MrJacz/klasa-pieces","owner":{"login":"MrJacz","id":23615291,"avatar_url":"https://avatars3.githubusercontent.com/u/23615291?v=4","gravatar_id":"","url":"https://api.github.com/users/MrJacz","html_url":"https://github.com/MrJacz","followers_url":"https://api.github.com/users/MrJacz/followers","following_url":"https://api.github.com/users/MrJacz/following{/other_user}","gists_url":"https://api.github.com/users/MrJacz/gists{/gist_id}","starred_url":"https://api.github.com/users/MrJacz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrJacz/subscriptions","organizations_url":"https://api.github.com/users/MrJacz/orgs","repos_url":"https://api.github.com/users/MrJacz/repos","events_url":"https://api.github.com/users/MrJacz/events{/privacy}","received_events_url":"https://api.github.com/users/MrJacz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MrJacz/klasa-pieces","description":null,"fork":true,"url":"https://api.github.com/repos/MrJacz/klasa-pieces","forks_url":"https://api.github.com/repos/MrJacz/klasa-pieces/forks","keys_url":"https://api.github.com/repos/MrJacz/klasa-pieces/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrJacz/klasa-pieces/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrJacz/klasa-pieces/teams","hooks_url":"https://api.github.com/repos/MrJacz/klasa-pieces/hooks","issue_events_url":"https://api.github.com/repos/MrJacz/klasa-pieces/issues/events{/number}","events_url":"https://api.github.com/repos/MrJacz/klasa-pieces/events","assignees_url":"https://api.github.com/repos/MrJacz/klasa-pieces/assignees{/user}","branches_url":"https://api.github.com/repos/MrJacz/klasa-pieces/branches{/branch}","tags_url":"https://api.github.com/repos/MrJacz/klasa-pieces/tags","blobs_url":"https://api.github.com/repos/MrJacz/klasa-pieces/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrJacz/klasa-pieces/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrJacz/klasa-pieces/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrJacz/klasa-pieces/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrJacz/klasa-pieces/statuses/{sha}","languages_url":"https://api.github.com/repos/MrJacz/klasa-pieces/languages","stargazers_url":"https://api.github.com/repos/MrJacz/klasa-pieces/stargazers","contributors_url":"https://api.github.com/repos/MrJacz/klasa-pieces/contributors","subscribers_url":"https://api.github.com/repos/MrJacz/klasa-pieces/subscribers","subscription_url":"https://api.github.com/repos/MrJacz/klasa-pieces/subscription","commits_url":"https://api.github.com/repos/MrJacz/klasa-pieces/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrJacz/klasa-pieces/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrJacz/klasa-pieces/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrJacz/klasa-pieces/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrJacz/klasa-pieces/contents/{+path}","compare_url":"https://api.github.com/repos/MrJacz/klasa-pieces/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrJacz/klasa-pieces/merges","archive_url":"https://api.github.com/repos/MrJacz/klasa-pieces/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrJacz/klasa-pieces/downloads","issues_url":"https://api.github.com/repos/MrJacz/klasa-pieces/issues{/number}","pulls_url":"https://api.github.com/repos/MrJacz/klasa-pieces/pulls{/number}","milestones_url":"https://api.github.com/repos/MrJacz/klasa-pieces/milestones{/number}","notifications_url":"https://api.github.com/repos/MrJacz/klasa-pieces/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrJacz/klasa-pieces/labels{/name}","releases_url":"https://api.github.com/repos/MrJacz/klasa-pieces/releases{/id}","deployments_url":"https://api.github.com/repos/MrJacz/klasa-pieces/deployments","created_at":"2018-05-07T11:52:52Z","updated_at":"2018-05-16T22:42:14Z","pushed_at":"2018-05-22T06:51:14Z","git_url":"git://github.com/MrJacz/klasa-pieces.git","ssh_url":"git@github.com:MrJacz/klasa-pieces.git","clone_url":"https://github.com/MrJacz/klasa-pieces.git","svn_url":"https://github.com/MrJacz/klasa-pieces","homepage":null,"size":299,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dirigeants:master","ref":"master","sha":"1aa39205172470a1628713f6f0ce7ff28b76074f","user":{"login":"dirigeants","id":25160727,"avatar_url":"https://avatars0.githubusercontent.com/u/25160727?v=4","gravatar_id":"","url":"https://api.github.com/users/dirigeants","html_url":"https://github.com/dirigeants","followers_url":"https://api.github.com/users/dirigeants/followers","following_url":"https://api.github.com/users/dirigeants/following{/other_user}","gists_url":"https://api.github.com/users/dirigeants/gists{/gist_id}","starred_url":"https://api.github.com/users/dirigeants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirigeants/subscriptions","organizations_url":"https://api.github.com/users/dirigeants/orgs","repos_url":"https://api.github.com/users/dirigeants/repos","events_url":"https://api.github.com/users/dirigeants/events{/privacy}","received_events_url":"https://api.github.com/users/dirigeants/received_events","type":"Organization","site_admin":false},"repo":{"id":100132945,"name":"klasa-pieces","full_name":"dirigeants/klasa-pieces","owner":{"login":"dirigeants","id":25160727,"avatar_url":"https://avatars0.githubusercontent.com/u/25160727?v=4","gravatar_id":"","url":"https://api.github.com/users/dirigeants","html_url":"https://github.com/dirigeants","followers_url":"https://api.github.com/users/dirigeants/followers","following_url":"https://api.github.com/users/dirigeants/following{/other_user}","gists_url":"https://api.github.com/users/dirigeants/gists{/gist_id}","starred_url":"https://api.github.com/users/dirigeants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirigeants/subscriptions","organizations_url":"https://api.github.com/users/dirigeants/orgs","repos_url":"https://api.github.com/users/dirigeants/repos","events_url":"https://api.github.com/users/dirigeants/events{/privacy}","received_events_url":"https://api.github.com/users/dirigeants/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dirigeants/klasa-pieces","description":null,"fork":false,"url":"https://api.github.com/repos/dirigeants/klasa-pieces","forks_url":"https://api.github.com/repos/dirigeants/klasa-pieces/forks","keys_url":"https://api.github.com/repos/dirigeants/klasa-pieces/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dirigeants/klasa-pieces/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dirigeants/klasa-pieces/teams","hooks_url":"https://api.github.com/repos/dirigeants/klasa-pieces/hooks","issue_events_url":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/events{/number}","events_url":"https://api.github.com/repos/dirigeants/klasa-pieces/events","assignees_url":"https://api.github.com/repos/dirigeants/klasa-pieces/assignees{/user}","branches_url":"https://api.github.com/repos/dirigeants/klasa-pieces/branches{/branch}","tags_url":"https://api.github.com/repos/dirigeants/klasa-pieces/tags","blobs_url":"https://api.github.com/repos/dirigeants/klasa-pieces/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dirigeants/klasa-pieces/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dirigeants/klasa-pieces/git/refs{/sha}","trees_url":"https://api.github.com/repos/dirigeants/klasa-pieces/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dirigeants/klasa-pieces/statuses/{sha}","languages_url":"https://api.github.com/repos/dirigeants/klasa-pieces/languages","stargazers_url":"https://api.github.com/repos/dirigeants/klasa-pieces/stargazers","contributors_url":"https://api.github.com/repos/dirigeants/klasa-pieces/contributors","subscribers_url":"https://api.github.com/repos/dirigeants/klasa-pieces/subscribers","subscription_url":"https://api.github.com/repos/dirigeants/klasa-pieces/subscription","commits_url":"https://api.github.com/repos/dirigeants/klasa-pieces/commits{/sha}","git_commits_url":"https://api.github.com/repos/dirigeants/klasa-pieces/git/commits{/sha}","comments_url":"https://api.github.com/repos/dirigeants/klasa-pieces/comments{/number}","issue_comment_url":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/comments{/number}","contents_url":"https://api.github.com/repos/dirigeants/klasa-pieces/contents/{+path}","compare_url":"https://api.github.com/repos/dirigeants/klasa-pieces/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dirigeants/klasa-pieces/merges","archive_url":"https://api.github.com/repos/dirigeants/klasa-pieces/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dirigeants/klasa-pieces/downloads","issues_url":"https://api.github.com/repos/dirigeants/klasa-pieces/issues{/number}","pulls_url":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls{/number}","milestones_url":"https://api.github.com/repos/dirigeants/klasa-pieces/milestones{/number}","notifications_url":"https://api.github.com/repos/dirigeants/klasa-pieces/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dirigeants/klasa-pieces/labels{/name}","releases_url":"https://api.github.com/repos/dirigeants/klasa-pieces/releases{/id}","deployments_url":"https://api.github.com/repos/dirigeants/klasa-pieces/deployments","created_at":"2017-08-12T19:13:51Z","updated_at":"2018-05-18T16:05:28Z","pushed_at":"2018-05-15T16:37:42Z","git_url":"git://github.com/dirigeants/klasa-pieces.git","ssh_url":"git@github.com:dirigeants/klasa-pieces.git","clone_url":"https://github.com/dirigeants/klasa-pieces.git","svn_url":"https://github.com/dirigeants/klasa-pieces","homepage":null,"size":347,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":24,"open_issues":4,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61"},"html":{"href":"https://github.com/dirigeants/klasa-pieces/pull/61"},"issue":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/61"},"comments":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/dirigeants/klasa-pieces/statuses/ea006024ae3d2fe868ad4c1a7664868ca755e5cf"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":13,"deletions":13,"changed_files":1}}
{"actor":{"display_login":"MrJacz"}}