{"action":"created","comment":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/173447625","pull_request_review_id":102642741,"id":173447625,"diff_hunk":"@@ -0,0 +1,116 @@\n+require 'rails_helper'\n+\n+describe RepositoryDatatableService do\n+  let!(:team) { create :team }\n+  let!(:user) { create :user, email: 'user_one@asdf.com' }\n+  let!(:repository) do\n+    create :repository, name: 'my repo', created_by: user, team: team\n+  end\n+  let!(:repository_column) do\n+    create :repository_column, name: 'My column', data_type: :RepositoryListValue\n+  end\n+  let!(:repository_state) do\n+    RepositoryTableState.create(\n+      repository: repository,\n+      user: user,\n+      state: Constants::REPOSITORY_TABLE_DEFAULT_STATE\n+    )\n+  end\n+  let!(:repository_row) do\n+    create :repository_row, name: 'A row',\n+                            repository: repository,\n+                            created_by: user,\n+                            last_modified_by: user\n+  end\n+  let!(:repository_row_two) do\n+    create :repository_row, name: 'B row',\n+                            repository: repository,\n+                            created_by: user,\n+                            last_modified_by: user\n+  end\n+  let!(:list_item) do\n+    create :repository_list_item, data: 'bug',\n+                                  repository: repository,\n+                                  repository_column: repository_column,\n+                                  created_by: user,\n+                                  last_modified_by: user\n+  end\n+  let!(:repository_list_value) do\n+    create :repository_list_value, repository_list_item: list_item,\n+                                   created_by: user,\n+                                   last_modified_by: user,\n+                                   repository_cell_attributes: {\n+                                     repository_column: repository_column,\n+                                     repository_row: repository_row\n+                                   }\n+  end\n+\n+  context 'object' do\n+    let(:params) do\n+      { order: { 0 => { column: '2', dir: 'asc' } }, search: { value: 'row' } }\n+    end\n+    let(:subject) { RepositoryDatatableService.new(repository, params, user) }\n+\n+    describe '#build_conditions/1' do\n+      it 'parsers the contitions' do\n+        contitions = subject.send(:build_conditions, params)","path":"spec/services/repository_datatable_service_spec.rb","position":56,"original_position":56,"commit_id":"4f951f6679fbd25a5de2103b6e16939bd8bb1401","original_commit_id":"4f951f6679fbd25a5de2103b6e16939bd8bb1401","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer Object#__send__ or Object#public_send to send.","created_at":"2018-03-09T13:22:28Z","updated_at":"2018-03-09T13:22:29Z","html_url":"https://github.com/biosistemika/scinote-web/pull/1017#discussion_r173447625","pull_request_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments/173447625"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1017#discussion_r173447625"},"pull_request":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017"}}},"pull_request":{"url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017","id":173193657,"html_url":"https://github.com/biosistemika/scinote-web/pull/1017","diff_url":"https://github.com/biosistemika/scinote-web/pull/1017.diff","patch_url":"https://github.com/biosistemika/scinote-web/pull/1017.patch","issue_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/1017","number":1017,"state":"open","locked":false,"title":"Write server-side endpoints for custom repositories [SCI-2068]","user":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"body":"https://biosistemika.atlassian.net/browse/SCI-2068","created_at":"2018-03-06T15:34:49Z","updated_at":"2018-03-09T13:22:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fe6ecd28522c80a1f30cd916d78e120acc957bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":521301086,"url":"https://api.github.com/repos/biosistemika/scinote-web/labels/WIP","name":"WIP","color":"fbca04","default":false},{"id":830069469,"url":"https://api.github.com/repos/biosistemika/scinote-web/labels/samples%20migration","name":"samples migration","color":"fef2c0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017/commits","review_comments_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017/comments","review_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/1017/comments","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/4f951f6679fbd25a5de2103b6e16939bd8bb1401","head":{"label":"ZmagoD:zd_SCI_2068","ref":"zd_SCI_2068","sha":"4f951f6679fbd25a5de2103b6e16939bd8bb1401","user":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"repo":{"id":55899998,"name":"scinote-web","full_name":"ZmagoD/scinote-web","owner":{"login":"ZmagoD","id":7046787,"avatar_url":"https://avatars0.githubusercontent.com/u/7046787?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmagoD","html_url":"https://github.com/ZmagoD","followers_url":"https://api.github.com/users/ZmagoD/followers","following_url":"https://api.github.com/users/ZmagoD/following{/other_user}","gists_url":"https://api.github.com/users/ZmagoD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmagoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmagoD/subscriptions","organizations_url":"https://api.github.com/users/ZmagoD/orgs","repos_url":"https://api.github.com/users/ZmagoD/repos","events_url":"https://api.github.com/users/ZmagoD/events{/privacy}","received_events_url":"https://api.github.com/users/ZmagoD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZmagoD/scinote-web","description":"Open source electronic scientific notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":true,"url":"https://api.github.com/repos/ZmagoD/scinote-web","forks_url":"https://api.github.com/repos/ZmagoD/scinote-web/forks","keys_url":"https://api.github.com/repos/ZmagoD/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZmagoD/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZmagoD/scinote-web/teams","hooks_url":"https://api.github.com/repos/ZmagoD/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/ZmagoD/scinote-web/events","assignees_url":"https://api.github.com/repos/ZmagoD/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/ZmagoD/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/ZmagoD/scinote-web/tags","blobs_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZmagoD/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ZmagoD/scinote-web/languages","stargazers_url":"https://api.github.com/repos/ZmagoD/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/ZmagoD/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/ZmagoD/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/ZmagoD/scinote-web/subscription","commits_url":"https://api.github.com/repos/ZmagoD/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZmagoD/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZmagoD/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZmagoD/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/ZmagoD/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZmagoD/scinote-web/merges","archive_url":"https://api.github.com/repos/ZmagoD/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZmagoD/scinote-web/downloads","issues_url":"https://api.github.com/repos/ZmagoD/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/ZmagoD/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ZmagoD/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ZmagoD/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZmagoD/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/ZmagoD/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/ZmagoD/scinote-web/deployments","created_at":"2016-04-10T13:19:11Z","updated_at":"2016-04-10T13:19:12Z","pushed_at":"2018-03-09T13:22:17Z","git_url":"git://github.com/ZmagoD/scinote-web.git","ssh_url":"git@github.com:ZmagoD/scinote-web.git","clone_url":"https://github.com/ZmagoD/scinote-web.git","svn_url":"https://github.com/ZmagoD/scinote-web","homepage":"http://www.scinote.net","size":21489,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"biosistemika:samples_to_repositories_table_migration","ref":"samples_to_repositories_table_migration","sha":"50ccec5007c43f79e9c2a0a1688af0bb1be9b7b3","user":{"login":"biosistemika","id":15630206,"avatar_url":"https://avatars2.githubusercontent.com/u/15630206?v=4","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"repo":{"id":51598133,"name":"scinote-web","full_name":"biosistemika/scinote-web","owner":{"login":"biosistemika","id":15630206,"avatar_url":"https://avatars2.githubusercontent.com/u/15630206?v=4","gravatar_id":"","url":"https://api.github.com/users/biosistemika","html_url":"https://github.com/biosistemika","followers_url":"https://api.github.com/users/biosistemika/followers","following_url":"https://api.github.com/users/biosistemika/following{/other_user}","gists_url":"https://api.github.com/users/biosistemika/gists{/gist_id}","starred_url":"https://api.github.com/users/biosistemika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biosistemika/subscriptions","organizations_url":"https://api.github.com/users/biosistemika/orgs","repos_url":"https://api.github.com/users/biosistemika/repos","events_url":"https://api.github.com/users/biosistemika/events{/privacy}","received_events_url":"https://api.github.com/users/biosistemika/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biosistemika/scinote-web","description":"Open source electronic lab notebook (ELN) that helps you manage your laboratory work and stores all your experimental data in one place.","fork":false,"url":"https://api.github.com/repos/biosistemika/scinote-web","forks_url":"https://api.github.com/repos/biosistemika/scinote-web/forks","keys_url":"https://api.github.com/repos/biosistemika/scinote-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biosistemika/scinote-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biosistemika/scinote-web/teams","hooks_url":"https://api.github.com/repos/biosistemika/scinote-web/hooks","issue_events_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/events{/number}","events_url":"https://api.github.com/repos/biosistemika/scinote-web/events","assignees_url":"https://api.github.com/repos/biosistemika/scinote-web/assignees{/user}","branches_url":"https://api.github.com/repos/biosistemika/scinote-web/branches{/branch}","tags_url":"https://api.github.com/repos/biosistemika/scinote-web/tags","blobs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biosistemika/scinote-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biosistemika/scinote-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/biosistemika/scinote-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biosistemika/scinote-web/statuses/{sha}","languages_url":"https://api.github.com/repos/biosistemika/scinote-web/languages","stargazers_url":"https://api.github.com/repos/biosistemika/scinote-web/stargazers","contributors_url":"https://api.github.com/repos/biosistemika/scinote-web/contributors","subscribers_url":"https://api.github.com/repos/biosistemika/scinote-web/subscribers","subscription_url":"https://api.github.com/repos/biosistemika/scinote-web/subscription","commits_url":"https://api.github.com/repos/biosistemika/scinote-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/biosistemika/scinote-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/biosistemika/scinote-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/biosistemika/scinote-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/biosistemika/scinote-web/contents/{+path}","compare_url":"https://api.github.com/repos/biosistemika/scinote-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biosistemika/scinote-web/merges","archive_url":"https://api.github.com/repos/biosistemika/scinote-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biosistemika/scinote-web/downloads","issues_url":"https://api.github.com/repos/biosistemika/scinote-web/issues{/number}","pulls_url":"https://api.github.com/repos/biosistemika/scinote-web/pulls{/number}","milestones_url":"https://api.github.com/repos/biosistemika/scinote-web/milestones{/number}","notifications_url":"https://api.github.com/repos/biosistemika/scinote-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biosistemika/scinote-web/labels{/name}","releases_url":"https://api.github.com/repos/biosistemika/scinote-web/releases{/id}","deployments_url":"https://api.github.com/repos/biosistemika/scinote-web/deployments","created_at":"2016-02-12T15:47:19Z","updated_at":"2018-03-09T08:18:26Z","pushed_at":"2018-03-09T13:22:18Z","git_url":"git://github.com/biosistemika/scinote-web.git","ssh_url":"git@github.com:biosistemika/scinote-web.git","clone_url":"https://github.com/biosistemika/scinote-web.git","svn_url":"https://github.com/biosistemika/scinote-web","homepage":"https://www.scinote.net","size":24802,"stargazers_count":131,"watchers_count":131,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":38,"open_issues":13,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017"},"html":{"href":"https://github.com/biosistemika/scinote-web/pull/1017"},"issue":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1017"},"comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/issues/1017/comments"},"review_comments":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017/comments"},"review_comment":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biosistemika/scinote-web/pulls/1017/commits"},"statuses":{"href":"https://api.github.com/repos/biosistemika/scinote-web/statuses/4f951f6679fbd25a5de2103b6e16939bd8bb1401"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}