{"action":"created","comment":{"url":"https://api.github.com/repos/websudos/phantom/pulls/comments/37150358","id":37150358,"diff_hunk":"@@ -163,16 +173,32 @@ sealed class AssignmentsQuery[\n     new ConditionalQuery(table, init, usingPart, wherePart, setPart, casPart append query)\n   }\n \n-  def consistencyLevel_=(level: ConsistencyLevel)(implicit ev: Status =:= Unspecified): AssignmentsQuery[Table, Record, Limit, Order, Specified, Chain] = {\n-    new AssignmentsQuery(\n-      table,\n-      init,\n-      usingPart append QueryBuilder.consistencyLevel(level.toString),\n-      wherePart,\n-      setPart,\n-      casPart\n-    )\n+  def consistencyLevel_=(level: ConsistencyLevel)(implicit ev: Status =:= Unspecified, session: Session): AssignmentsQuery[Table, Record, Limit, Order, Specified, Chain] = {\n+    val protocol = session.getCluster.getConfiguration.getProtocolOptions.getProtocolVersionEnum\n+\n+    if (protocol.compareTo(ProtocolVersion.V2) == 1) {","path":"phantom-dsl/src/main/scala/com/websudos/phantom/builder/query/prepared/PreparedUpdateQuery.scala","position":64,"original_position":64,"commit_id":"2683f11925925449d65b33ed0d9311af8bd50269","original_commit_id":"2683f11925925449d65b33ed0d9311af8bd50269","user":{"login":"bjankie1","id":1985820,"avatar_url":"https://avatars.githubusercontent.com/u/1985820?v=3","gravatar_id":"","url":"https://api.github.com/users/bjankie1","html_url":"https://github.com/bjankie1","followers_url":"https://api.github.com/users/bjankie1/followers","following_url":"https://api.github.com/users/bjankie1/following{/other_user}","gists_url":"https://api.github.com/users/bjankie1/gists{/gist_id}","starred_url":"https://api.github.com/users/bjankie1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjankie1/subscriptions","organizations_url":"https://api.github.com/users/bjankie1/orgs","repos_url":"https://api.github.com/users/bjankie1/repos","events_url":"https://api.github.com/users/bjankie1/events{/privacy}","received_events_url":"https://api.github.com/users/bjankie1/received_events","type":"User","site_admin":false},"body":"Enums can be compared using equality `==` operator","created_at":"2015-08-16T21:02:19Z","updated_at":"2015-08-16T21:02:19Z","html_url":"https://github.com/websudos/phantom/pull/304#discussion_r37150358","pull_request_url":"https://api.github.com/repos/websudos/phantom/pulls/304","_links":{"self":{"href":"https://api.github.com/repos/websudos/phantom/pulls/comments/37150358"},"html":{"href":"https://github.com/websudos/phantom/pull/304#discussion_r37150358"},"pull_request":{"href":"https://api.github.com/repos/websudos/phantom/pulls/304"}}},"pull_request":{"url":"https://api.github.com/repos/websudos/phantom/pulls/304","id":42538441,"html_url":"https://github.com/websudos/phantom/pull/304","diff_url":"https://github.com/websudos/phantom/pull/304.diff","patch_url":"https://github.com/websudos/phantom/pull/304.patch","issue_url":"https://api.github.com/repos/websudos/phantom/issues/304","number":304,"state":"closed","locked":false,"title":"Re-adding ability to specify consistency levels at query level for CQ…","user":{"login":"alexflav23","id":1645142,"avatar_url":"https://avatars.githubusercontent.com/u/1645142?v=3","gravatar_id":"","url":"https://api.github.com/users/alexflav23","html_url":"https://github.com/alexflav23","followers_url":"https://api.github.com/users/alexflav23/followers","following_url":"https://api.github.com/users/alexflav23/following{/other_user}","gists_url":"https://api.github.com/users/alexflav23/gists{/gist_id}","starred_url":"https://api.github.com/users/alexflav23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexflav23/subscriptions","organizations_url":"https://api.github.com/users/alexflav23/orgs","repos_url":"https://api.github.com/users/alexflav23/repos","events_url":"https://api.github.com/users/alexflav23/events{/privacy}","received_events_url":"https://api.github.com/users/alexflav23/received_events","type":"User","site_admin":false},"body":"…L protocol V3.\r\n\r\n- Adding per-protocol version logic to specify consistency levels.\r\n- Version 2 and below consistency is specified in an `USING` clause by phantom.\r\n- Consistency levels for V3 of the protocol are simply being forwarded to the Datastax Java Driver via `SimpleStatement` to allow the driver to set the level internally outside of phantom.\r\n- `consistencyLevel` argument is now propagated everywhere.\r\n- Added tests to make sure the consistency level is propagated in settings when the latest protocol is used.\r\n","created_at":"2015-08-16T15:48:05Z","updated_at":"2015-08-16T21:02:19Z","closed_at":"2015-08-16T17:41:19Z","merged_at":null,"merge_commit_sha":"87772c29596b7dc56b4ddbd4b15bee275657fe3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/websudos/phantom/pulls/304/commits","review_comments_url":"https://api.github.com/repos/websudos/phantom/pulls/304/comments","review_comment_url":"https://api.github.com/repos/websudos/phantom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/websudos/phantom/issues/304/comments","statuses_url":"https://api.github.com/repos/websudos/phantom/statuses/2683f11925925449d65b33ed0d9311af8bd50269","head":{"label":"websudos:release/consistency","ref":"release/consistency","sha":"2683f11925925449d65b33ed0d9311af8bd50269","user":{"login":"websudos","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/websudos","html_url":"https://github.com/websudos","followers_url":"https://api.github.com/users/websudos/followers","following_url":"https://api.github.com/users/websudos/following{/other_user}","gists_url":"https://api.github.com/users/websudos/gists{/gist_id}","starred_url":"https://api.github.com/users/websudos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websudos/subscriptions","organizations_url":"https://api.github.com/users/websudos/orgs","repos_url":"https://api.github.com/users/websudos/repos","events_url":"https://api.github.com/users/websudos/events{/privacy}","received_events_url":"https://api.github.com/users/websudos/received_events","type":"Organization","site_admin":false},"repo":{"id":14509195,"name":"phantom","full_name":"websudos/phantom","owner":{"login":"websudos","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/websudos","html_url":"https://github.com/websudos","followers_url":"https://api.github.com/users/websudos/followers","following_url":"https://api.github.com/users/websudos/following{/other_user}","gists_url":"https://api.github.com/users/websudos/gists{/gist_id}","starred_url":"https://api.github.com/users/websudos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websudos/subscriptions","organizations_url":"https://api.github.com/users/websudos/orgs","repos_url":"https://api.github.com/users/websudos/repos","events_url":"https://api.github.com/users/websudos/events{/privacy}","received_events_url":"https://api.github.com/users/websudos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/websudos/phantom","description":"Reactive type-safe Scala driver for Cassandra/Datastax Enterprise","fork":false,"url":"https://api.github.com/repos/websudos/phantom","forks_url":"https://api.github.com/repos/websudos/phantom/forks","keys_url":"https://api.github.com/repos/websudos/phantom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websudos/phantom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websudos/phantom/teams","hooks_url":"https://api.github.com/repos/websudos/phantom/hooks","issue_events_url":"https://api.github.com/repos/websudos/phantom/issues/events{/number}","events_url":"https://api.github.com/repos/websudos/phantom/events","assignees_url":"https://api.github.com/repos/websudos/phantom/assignees{/user}","branches_url":"https://api.github.com/repos/websudos/phantom/branches{/branch}","tags_url":"https://api.github.com/repos/websudos/phantom/tags","blobs_url":"https://api.github.com/repos/websudos/phantom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websudos/phantom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websudos/phantom/git/refs{/sha}","trees_url":"https://api.github.com/repos/websudos/phantom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websudos/phantom/statuses/{sha}","languages_url":"https://api.github.com/repos/websudos/phantom/languages","stargazers_url":"https://api.github.com/repos/websudos/phantom/stargazers","contributors_url":"https://api.github.com/repos/websudos/phantom/contributors","subscribers_url":"https://api.github.com/repos/websudos/phantom/subscribers","subscription_url":"https://api.github.com/repos/websudos/phantom/subscription","commits_url":"https://api.github.com/repos/websudos/phantom/commits{/sha}","git_commits_url":"https://api.github.com/repos/websudos/phantom/git/commits{/sha}","comments_url":"https://api.github.com/repos/websudos/phantom/comments{/number}","issue_comment_url":"https://api.github.com/repos/websudos/phantom/issues/comments{/number}","contents_url":"https://api.github.com/repos/websudos/phantom/contents/{+path}","compare_url":"https://api.github.com/repos/websudos/phantom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websudos/phantom/merges","archive_url":"https://api.github.com/repos/websudos/phantom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websudos/phantom/downloads","issues_url":"https://api.github.com/repos/websudos/phantom/issues{/number}","pulls_url":"https://api.github.com/repos/websudos/phantom/pulls{/number}","milestones_url":"https://api.github.com/repos/websudos/phantom/milestones{/number}","notifications_url":"https://api.github.com/repos/websudos/phantom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websudos/phantom/labels{/name}","releases_url":"https://api.github.com/repos/websudos/phantom/releases{/id}","created_at":"2013-11-19T00:08:32Z","updated_at":"2015-08-16T12:52:15Z","pushed_at":"2015-08-16T20:54:59Z","git_url":"git://github.com/websudos/phantom.git","ssh_url":"git@github.com:websudos/phantom.git","clone_url":"https://github.com/websudos/phantom.git","svn_url":"https://github.com/websudos/phantom","homepage":"http://websudos.github.io/phantom/","size":8003,"stargazers_count":285,"watchers_count":285,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":7,"forks":67,"open_issues":7,"watchers":285,"default_branch":"develop"}},"base":{"label":"websudos:develop","ref":"develop","sha":"2db0f98f323c938dce20539cfcda77cb2dc5dc62","user":{"login":"websudos","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/websudos","html_url":"https://github.com/websudos","followers_url":"https://api.github.com/users/websudos/followers","following_url":"https://api.github.com/users/websudos/following{/other_user}","gists_url":"https://api.github.com/users/websudos/gists{/gist_id}","starred_url":"https://api.github.com/users/websudos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websudos/subscriptions","organizations_url":"https://api.github.com/users/websudos/orgs","repos_url":"https://api.github.com/users/websudos/repos","events_url":"https://api.github.com/users/websudos/events{/privacy}","received_events_url":"https://api.github.com/users/websudos/received_events","type":"Organization","site_admin":false},"repo":{"id":14509195,"name":"phantom","full_name":"websudos/phantom","owner":{"login":"websudos","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/websudos","html_url":"https://github.com/websudos","followers_url":"https://api.github.com/users/websudos/followers","following_url":"https://api.github.com/users/websudos/following{/other_user}","gists_url":"https://api.github.com/users/websudos/gists{/gist_id}","starred_url":"https://api.github.com/users/websudos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websudos/subscriptions","organizations_url":"https://api.github.com/users/websudos/orgs","repos_url":"https://api.github.com/users/websudos/repos","events_url":"https://api.github.com/users/websudos/events{/privacy}","received_events_url":"https://api.github.com/users/websudos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/websudos/phantom","description":"Reactive type-safe Scala driver for Cassandra/Datastax Enterprise","fork":false,"url":"https://api.github.com/repos/websudos/phantom","forks_url":"https://api.github.com/repos/websudos/phantom/forks","keys_url":"https://api.github.com/repos/websudos/phantom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websudos/phantom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websudos/phantom/teams","hooks_url":"https://api.github.com/repos/websudos/phantom/hooks","issue_events_url":"https://api.github.com/repos/websudos/phantom/issues/events{/number}","events_url":"https://api.github.com/repos/websudos/phantom/events","assignees_url":"https://api.github.com/repos/websudos/phantom/assignees{/user}","branches_url":"https://api.github.com/repos/websudos/phantom/branches{/branch}","tags_url":"https://api.github.com/repos/websudos/phantom/tags","blobs_url":"https://api.github.com/repos/websudos/phantom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websudos/phantom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websudos/phantom/git/refs{/sha}","trees_url":"https://api.github.com/repos/websudos/phantom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websudos/phantom/statuses/{sha}","languages_url":"https://api.github.com/repos/websudos/phantom/languages","stargazers_url":"https://api.github.com/repos/websudos/phantom/stargazers","contributors_url":"https://api.github.com/repos/websudos/phantom/contributors","subscribers_url":"https://api.github.com/repos/websudos/phantom/subscribers","subscription_url":"https://api.github.com/repos/websudos/phantom/subscription","commits_url":"https://api.github.com/repos/websudos/phantom/commits{/sha}","git_commits_url":"https://api.github.com/repos/websudos/phantom/git/commits{/sha}","comments_url":"https://api.github.com/repos/websudos/phantom/comments{/number}","issue_comment_url":"https://api.github.com/repos/websudos/phantom/issues/comments{/number}","contents_url":"https://api.github.com/repos/websudos/phantom/contents/{+path}","compare_url":"https://api.github.com/repos/websudos/phantom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websudos/phantom/merges","archive_url":"https://api.github.com/repos/websudos/phantom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websudos/phantom/downloads","issues_url":"https://api.github.com/repos/websudos/phantom/issues{/number}","pulls_url":"https://api.github.com/repos/websudos/phantom/pulls{/number}","milestones_url":"https://api.github.com/repos/websudos/phantom/milestones{/number}","notifications_url":"https://api.github.com/repos/websudos/phantom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websudos/phantom/labels{/name}","releases_url":"https://api.github.com/repos/websudos/phantom/releases{/id}","created_at":"2013-11-19T00:08:32Z","updated_at":"2015-08-16T12:52:15Z","pushed_at":"2015-08-16T20:54:59Z","git_url":"git://github.com/websudos/phantom.git","ssh_url":"git@github.com:websudos/phantom.git","clone_url":"https://github.com/websudos/phantom.git","svn_url":"https://github.com/websudos/phantom","homepage":"http://websudos.github.io/phantom/","size":8003,"stargazers_count":285,"watchers_count":285,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":7,"forks":67,"open_issues":7,"watchers":285,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/websudos/phantom/pulls/304"},"html":{"href":"https://github.com/websudos/phantom/pull/304"},"issue":{"href":"https://api.github.com/repos/websudos/phantom/issues/304"},"comments":{"href":"https://api.github.com/repos/websudos/phantom/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/websudos/phantom/pulls/304/comments"},"review_comment":{"href":"https://api.github.com/repos/websudos/phantom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/websudos/phantom/pulls/304/commits"},"statuses":{"href":"https://api.github.com/repos/websudos/phantom/statuses/2683f11925925449d65b33ed0d9311af8bd50269"}}}}