{"action":"created","comment":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/34476557","id":34476557,"diff_hunk":"@@ -2664,7 +2664,40 @@ describe(Support.getTestDialectTeaser('Model'), function() {\n     return this.sequelize.sync({force: true});\n   });\n \n-  describe('bulkCreate errors', function() {\n+  describe('bulkCreate', function() {","path":"test/integration/model.test.js","position":5,"original_position":5,"commit_id":"6e41aa7a4b3e7ba99b89cb5686c777f8f8cb3f10","original_commit_id":"6e41aa7a4b3e7ba99b89cb5686c777f8f8cb3f10","user":{"login":"phanect","id":315601,"avatar_url":"https://avatars.githubusercontent.com/u/315601?v=3","gravatar_id":"","url":"https://api.github.com/users/phanect","html_url":"https://github.com/phanect","followers_url":"https://api.github.com/users/phanect/followers","following_url":"https://api.github.com/users/phanect/following{/other_user}","gists_url":"https://api.github.com/users/phanect/gists{/gist_id}","starred_url":"https://api.github.com/users/phanect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanect/subscriptions","organizations_url":"https://api.github.com/users/phanect/orgs","repos_url":"https://api.github.com/users/phanect/repos","events_url":"https://api.github.com/users/phanect/events{/privacy}","received_events_url":"https://api.github.com/users/phanect/received_events","type":"User","site_admin":false},"body":"OK.\r\nWhere is the best place?\r\nIs it OK to create another `describe` at the same level as `bulkCreate errors` in test/integration/model.test.js?","created_at":"2015-07-13T15:42:35Z","updated_at":"2015-07-13T15:42:35Z","html_url":"https://github.com/sequelize/sequelize/pull/4102#discussion_r34476557","pull_request_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4102","_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/34476557"},"html":{"href":"https://github.com/sequelize/sequelize/pull/4102#discussion_r34476557"},"pull_request":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4102"}}},"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/4102","id":39819732,"html_url":"https://github.com/sequelize/sequelize/pull/4102","diff_url":"https://github.com/sequelize/sequelize/pull/4102.diff","patch_url":"https://github.com/sequelize/sequelize/pull/4102.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4102","number":4102,"state":"open","locked":false,"title":"Allow built instance as bulkCreate argument","user":{"login":"phanect","id":315601,"avatar_url":"https://avatars.githubusercontent.com/u/315601?v=3","gravatar_id":"","url":"https://api.github.com/users/phanect","html_url":"https://github.com/phanect","followers_url":"https://api.github.com/users/phanect/followers","following_url":"https://api.github.com/users/phanect/following{/other_user}","gists_url":"https://api.github.com/users/phanect/gists{/gist_id}","starred_url":"https://api.github.com/users/phanect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanect/subscriptions","organizations_url":"https://api.github.com/users/phanect/orgs","repos_url":"https://api.github.com/users/phanect/repos","events_url":"https://api.github.com/users/phanect/events{/privacy}","received_events_url":"https://api.github.com/users/phanect/received_events","type":"User","site_admin":false},"body":"This PR allows users to give built instances as `bulkCreate` argument. It works as if it is \"`bulkSave`\"\r\n\r\nExample:\r\n\r\n```javascript\r\nvar users = [];\r\nusers.push(sequelize.models.User.build({\r\n  username: \"Alice\",\r\n  password: \"foobar\"\r\n}));\r\n\r\nusers.push(sequelize.models.User.build({\r\n  username: \"Bob\",\r\n  password: \"tetete\"\r\n}));\r\n\r\nsequelize.models.User.bulkCreate(users);\r\n\r\n```\r\n\r\nThis PR is not completed yet. (requires docs)","created_at":"2015-07-13T14:50:11Z","updated_at":"2015-07-13T15:42:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d851396f06c66c0f92adc4b09aaab60e8e8507d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4102/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4102/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4102/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/6e41aa7a4b3e7ba99b89cb5686c777f8f8cb3f10","head":{"label":"phanect:bulksave","ref":"bulksave","sha":"6e41aa7a4b3e7ba99b89cb5686c777f8f8cb3f10","user":{"login":"phanect","id":315601,"avatar_url":"https://avatars.githubusercontent.com/u/315601?v=3","gravatar_id":"","url":"https://api.github.com/users/phanect","html_url":"https://github.com/phanect","followers_url":"https://api.github.com/users/phanect/followers","following_url":"https://api.github.com/users/phanect/following{/other_user}","gists_url":"https://api.github.com/users/phanect/gists{/gist_id}","starred_url":"https://api.github.com/users/phanect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanect/subscriptions","organizations_url":"https://api.github.com/users/phanect/orgs","repos_url":"https://api.github.com/users/phanect/repos","events_url":"https://api.github.com/users/phanect/events{/privacy}","received_events_url":"https://api.github.com/users/phanect/received_events","type":"User","site_admin":false},"repo":{"id":28223146,"name":"sequelize","full_name":"phanect/sequelize","owner":{"login":"phanect","id":315601,"avatar_url":"https://avatars.githubusercontent.com/u/315601?v=3","gravatar_id":"","url":"https://api.github.com/users/phanect","html_url":"https://github.com/phanect","followers_url":"https://api.github.com/users/phanect/followers","following_url":"https://api.github.com/users/phanect/following{/other_user}","gists_url":"https://api.github.com/users/phanect/gists{/gist_id}","starred_url":"https://api.github.com/users/phanect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanect/subscriptions","organizations_url":"https://api.github.com/users/phanect/orgs","repos_url":"https://api.github.com/users/phanect/repos","events_url":"https://api.github.com/users/phanect/events{/privacy}","received_events_url":"https://api.github.com/users/phanect/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phanect/sequelize","description":"Sequelize is an easy-to-use multi sql dialect object-relationship-mapper for node.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/phanect/sequelize","forks_url":"https://api.github.com/repos/phanect/sequelize/forks","keys_url":"https://api.github.com/repos/phanect/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phanect/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phanect/sequelize/teams","hooks_url":"https://api.github.com/repos/phanect/sequelize/hooks","issue_events_url":"https://api.github.com/repos/phanect/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/phanect/sequelize/events","assignees_url":"https://api.github.com/repos/phanect/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/phanect/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/phanect/sequelize/tags","blobs_url":"https://api.github.com/repos/phanect/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phanect/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phanect/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/phanect/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phanect/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/phanect/sequelize/languages","stargazers_url":"https://api.github.com/repos/phanect/sequelize/stargazers","contributors_url":"https://api.github.com/repos/phanect/sequelize/contributors","subscribers_url":"https://api.github.com/repos/phanect/sequelize/subscribers","subscription_url":"https://api.github.com/repos/phanect/sequelize/subscription","commits_url":"https://api.github.com/repos/phanect/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/phanect/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/phanect/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/phanect/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/phanect/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/phanect/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phanect/sequelize/merges","archive_url":"https://api.github.com/repos/phanect/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phanect/sequelize/downloads","issues_url":"https://api.github.com/repos/phanect/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/phanect/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/phanect/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/phanect/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phanect/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/phanect/sequelize/releases{/id}","created_at":"2014-12-19T09:29:59Z","updated_at":"2015-02-26T13:38:03Z","pushed_at":"2015-07-13T14:51:26Z","git_url":"git://github.com/phanect/sequelize.git","ssh_url":"git@github.com:phanect/sequelize.git","clone_url":"https://github.com/phanect/sequelize.git","svn_url":"https://github.com/phanect/sequelize","homepage":"http://sequelizejs.com","size":41349,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"cc52cb8223cc9592f2b83b4a316363a14bbb13a6","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","created_at":"2010-07-22T07:11:11Z","updated_at":"2015-07-13T14:10:02Z","pushed_at":"2015-07-13T14:51:28Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":58200,"stargazers_count":4103,"watchers_count":4103,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":922,"mirror_url":null,"open_issues_count":439,"forks":922,"open_issues":439,"watchers":4103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4102"},"html":{"href":"https://github.com/sequelize/sequelize/pull/4102"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4102"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4102/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4102/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4102/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/6e41aa7a4b3e7ba99b89cb5686c777f8f8cb3f10"}}}}