{"action":"created","comment":{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/comments/65633626","id":65633626,"diff_hunk":"@@ -38,20 +38,58 @@\n       @community.delete\n     end\n     it \"finds uuid\" do\n-      search(\"uuid:394266f0-0e4a-42e6-a199-158165226426\")\n+      search('all_fields', \"uuid:394266f0-0e4a-42e6-a199-158165226426\")\n       expect(page).to have_content('Bison sculpture at the entrance to the USGS Ice Core Lab')\n     end\n   end\n \n+  describe \"Check thesis date search\" do\n+    before do\n+      Collection.delete_all\n+      @community = Collection.new(title:'FGSR').tap do |c|\n+        c.apply_depositor_metadata('dittest@ualberta.ca')\n+        c.is_community = true\n+        c.is_official = true\n+        c.fedora3uuid = 'uuid:39331f1f-769d-4c2a-a103-416c285d01fc'\n+        c.save\n+      end\n+      @collection = Collection.new(title:'Theses').tap do |c|\n+        c.apply_depositor_metadata('dittest@ualberta.ca')\n+        c.is_official = true\n+        c.fedora3uuid = 'uuid:7af76c0f-61d6-4ebc-a2aa-79c125480269'\n+        c.save\n+      end\n+      GenericFile.delete_all\n+      Rake::Task.define_task(:environment)\n+      Rake::Task[\"migration:eraitem\"].invoke('spec/fixtures/migration/test-metadata/thesis-metadata')\n+      result = ActiveFedora::SolrService.instance.conn.get \"select\", params: {q:[\"fedora3uuid_tesim:uuid:0b19d1f5-399a-42b4-be0c-360010ef6784\"]}\n+      doc = result[\"response\"][\"docs\"].first\n+      id = doc[\"id\"]\n+      @file = GenericFile.find(id)\n+\n+    end\n+    after do\n+      Rake::Task[\"migration:eraitem\"].reenable\n+      @file.delete\n+      @community.delete\n+      @collection.delete\n+    end\n+\n+    it \"finds uuid\" do\n+      search('date_created', \"2015\")\n+      expect(page).to have_content('This is a test thesis abstract.')\n+    end\n+  end\n+\n   describe \"Check resource types\" do\n     it 'has admin resource list' do\n       page.has_select?('Item Type', selected: 'Structural Engineering Report')\n       page.has_select?('Item Type', selected: 'Computing Science Technical Report')\n     end\n   end\n \n-  def search(query=\"\") \n-      fill_in('all_fields', with: query) \n+  def search(field=\"\", query=\"\") \n+      fill_in(field, with: query) ","path":"spec/features/advanced_search_spec.rb","position":58,"original_position":58,"commit_id":"94c8164f2fbb6e032f75146dddc02be4516a2227","original_commit_id":"94c8164f2fbb6e032f75146dddc02be4516a2227","user":{"login":"weiweishi","id":2047614,"avatar_url":"https://avatars.githubusercontent.com/u/2047614?v=3","gravatar_id":"","url":"https://api.github.com/users/weiweishi","html_url":"https://github.com/weiweishi","followers_url":"https://api.github.com/users/weiweishi/followers","following_url":"https://api.github.com/users/weiweishi/following{/other_user}","gists_url":"https://api.github.com/users/weiweishi/gists{/gist_id}","starred_url":"https://api.github.com/users/weiweishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiweishi/subscriptions","organizations_url":"https://api.github.com/users/weiweishi/orgs","repos_url":"https://api.github.com/users/weiweishi/repos","events_url":"https://api.github.com/users/weiweishi/events{/privacy}","received_events_url":"https://api.github.com/users/weiweishi/received_events","type":"User","site_admin":false},"body":"What is this change about? @criedlberger ","created_at":"2016-06-02T23:00:32Z","updated_at":"2016-06-02T23:00:32Z","html_url":"https://github.com/ualbertalib/HydraNorth/pull/1166#discussion_r65633626","pull_request_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166","_links":{"self":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/comments/65633626"},"html":{"href":"https://github.com/ualbertalib/HydraNorth/pull/1166#discussion_r65633626"},"pull_request":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166"}}},"pull_request":{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166","id":72374492,"html_url":"https://github.com/ualbertalib/HydraNorth/pull/1166","diff_url":"https://github.com/ualbertalib/HydraNorth/pull/1166.diff","patch_url":"https://github.com/ualbertalib/HydraNorth/pull/1166.patch","issue_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/1166","number":1166,"state":"open","locked":false,"title":"１155 search date accepted","user":{"login":"criedlberger","id":3977431,"avatar_url":"https://avatars.githubusercontent.com/u/3977431?v=3","gravatar_id":"","url":"https://api.github.com/users/criedlberger","html_url":"https://github.com/criedlberger","followers_url":"https://api.github.com/users/criedlberger/followers","following_url":"https://api.github.com/users/criedlberger/following{/other_user}","gists_url":"https://api.github.com/users/criedlberger/gists{/gist_id}","starred_url":"https://api.github.com/users/criedlberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criedlberger/subscriptions","organizations_url":"https://api.github.com/users/criedlberger/orgs","repos_url":"https://api.github.com/users/criedlberger/repos","events_url":"https://api.github.com/users/criedlberger/events{/privacy}","received_events_url":"https://api.github.com/users/criedlberger/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-02T16:11:53Z","updated_at":"2016-06-02T23:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85bb2ec84d87a1c0b1b6990f43e1b1ec7f0bb45c","assignee":{"login":"weiweishi","id":2047614,"avatar_url":"https://avatars.githubusercontent.com/u/2047614?v=3","gravatar_id":"","url":"https://api.github.com/users/weiweishi","html_url":"https://github.com/weiweishi","followers_url":"https://api.github.com/users/weiweishi/followers","following_url":"https://api.github.com/users/weiweishi/following{/other_user}","gists_url":"https://api.github.com/users/weiweishi/gists{/gist_id}","starred_url":"https://api.github.com/users/weiweishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiweishi/subscriptions","organizations_url":"https://api.github.com/users/weiweishi/orgs","repos_url":"https://api.github.com/users/weiweishi/repos","events_url":"https://api.github.com/users/weiweishi/events{/privacy}","received_events_url":"https://api.github.com/users/weiweishi/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166/commits","review_comments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166/comments","review_comment_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/1166/comments","statuses_url":"https://api.github.com/repos/ualbertalib/HydraNorth/statuses/94c8164f2fbb6e032f75146dddc02be4516a2227","head":{"label":"ualbertalib:1155_search_date_accepted","ref":"1155_search_date_accepted","sha":"94c8164f2fbb6e032f75146dddc02be4516a2227","user":{"login":"ualbertalib","id":2856757,"avatar_url":"https://avatars.githubusercontent.com/u/2856757?v=3","gravatar_id":"","url":"https://api.github.com/users/ualbertalib","html_url":"https://github.com/ualbertalib","followers_url":"https://api.github.com/users/ualbertalib/followers","following_url":"https://api.github.com/users/ualbertalib/following{/other_user}","gists_url":"https://api.github.com/users/ualbertalib/gists{/gist_id}","starred_url":"https://api.github.com/users/ualbertalib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ualbertalib/subscriptions","organizations_url":"https://api.github.com/users/ualbertalib/orgs","repos_url":"https://api.github.com/users/ualbertalib/repos","events_url":"https://api.github.com/users/ualbertalib/events{/privacy}","received_events_url":"https://api.github.com/users/ualbertalib/received_events","type":"Organization","site_admin":false},"repo":{"id":24386993,"name":"HydraNorth","full_name":"ualbertalib/HydraNorth","owner":{"login":"ualbertalib","id":2856757,"avatar_url":"https://avatars.githubusercontent.com/u/2856757?v=3","gravatar_id":"","url":"https://api.github.com/users/ualbertalib","html_url":"https://github.com/ualbertalib","followers_url":"https://api.github.com/users/ualbertalib/followers","following_url":"https://api.github.com/users/ualbertalib/following{/other_user}","gists_url":"https://api.github.com/users/ualbertalib/gists{/gist_id}","starred_url":"https://api.github.com/users/ualbertalib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ualbertalib/subscriptions","organizations_url":"https://api.github.com/users/ualbertalib/orgs","repos_url":"https://api.github.com/users/ualbertalib/repos","events_url":"https://api.github.com/users/ualbertalib/events{/privacy}","received_events_url":"https://api.github.com/users/ualbertalib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ualbertalib/HydraNorth","description":"A DAMS built on Hydra","fork":false,"url":"https://api.github.com/repos/ualbertalib/HydraNorth","forks_url":"https://api.github.com/repos/ualbertalib/HydraNorth/forks","keys_url":"https://api.github.com/repos/ualbertalib/HydraNorth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ualbertalib/HydraNorth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ualbertalib/HydraNorth/teams","hooks_url":"https://api.github.com/repos/ualbertalib/HydraNorth/hooks","issue_events_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/events{/number}","events_url":"https://api.github.com/repos/ualbertalib/HydraNorth/events","assignees_url":"https://api.github.com/repos/ualbertalib/HydraNorth/assignees{/user}","branches_url":"https://api.github.com/repos/ualbertalib/HydraNorth/branches{/branch}","tags_url":"https://api.github.com/repos/ualbertalib/HydraNorth/tags","blobs_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/refs{/sha}","trees_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ualbertalib/HydraNorth/statuses/{sha}","languages_url":"https://api.github.com/repos/ualbertalib/HydraNorth/languages","stargazers_url":"https://api.github.com/repos/ualbertalib/HydraNorth/stargazers","contributors_url":"https://api.github.com/repos/ualbertalib/HydraNorth/contributors","subscribers_url":"https://api.github.com/repos/ualbertalib/HydraNorth/subscribers","subscription_url":"https://api.github.com/repos/ualbertalib/HydraNorth/subscription","commits_url":"https://api.github.com/repos/ualbertalib/HydraNorth/commits{/sha}","git_commits_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/commits{/sha}","comments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/comments{/number}","issue_comment_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/comments{/number}","contents_url":"https://api.github.com/repos/ualbertalib/HydraNorth/contents/{+path}","compare_url":"https://api.github.com/repos/ualbertalib/HydraNorth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ualbertalib/HydraNorth/merges","archive_url":"https://api.github.com/repos/ualbertalib/HydraNorth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ualbertalib/HydraNorth/downloads","issues_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues{/number}","pulls_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls{/number}","milestones_url":"https://api.github.com/repos/ualbertalib/HydraNorth/milestones{/number}","notifications_url":"https://api.github.com/repos/ualbertalib/HydraNorth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ualbertalib/HydraNorth/labels{/name}","releases_url":"https://api.github.com/repos/ualbertalib/HydraNorth/releases{/id}","deployments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/deployments","created_at":"2014-09-23T19:54:45Z","updated_at":"2016-03-03T19:43:34Z","pushed_at":"2016-06-02T22:44:33Z","git_url":"git://github.com/ualbertalib/HydraNorth.git","ssh_url":"git@github.com:ualbertalib/HydraNorth.git","clone_url":"https://github.com/ualbertalib/HydraNorth.git","svn_url":"https://github.com/ualbertalib/HydraNorth","homepage":"","size":46444,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":262,"forks":3,"open_issues":262,"watchers":10,"default_branch":"master"}},"base":{"label":"ualbertalib:Sprint43","ref":"Sprint43","sha":"1cd5b769ad788ad68b0b1f9a06b0775da2a29f42","user":{"login":"ualbertalib","id":2856757,"avatar_url":"https://avatars.githubusercontent.com/u/2856757?v=3","gravatar_id":"","url":"https://api.github.com/users/ualbertalib","html_url":"https://github.com/ualbertalib","followers_url":"https://api.github.com/users/ualbertalib/followers","following_url":"https://api.github.com/users/ualbertalib/following{/other_user}","gists_url":"https://api.github.com/users/ualbertalib/gists{/gist_id}","starred_url":"https://api.github.com/users/ualbertalib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ualbertalib/subscriptions","organizations_url":"https://api.github.com/users/ualbertalib/orgs","repos_url":"https://api.github.com/users/ualbertalib/repos","events_url":"https://api.github.com/users/ualbertalib/events{/privacy}","received_events_url":"https://api.github.com/users/ualbertalib/received_events","type":"Organization","site_admin":false},"repo":{"id":24386993,"name":"HydraNorth","full_name":"ualbertalib/HydraNorth","owner":{"login":"ualbertalib","id":2856757,"avatar_url":"https://avatars.githubusercontent.com/u/2856757?v=3","gravatar_id":"","url":"https://api.github.com/users/ualbertalib","html_url":"https://github.com/ualbertalib","followers_url":"https://api.github.com/users/ualbertalib/followers","following_url":"https://api.github.com/users/ualbertalib/following{/other_user}","gists_url":"https://api.github.com/users/ualbertalib/gists{/gist_id}","starred_url":"https://api.github.com/users/ualbertalib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ualbertalib/subscriptions","organizations_url":"https://api.github.com/users/ualbertalib/orgs","repos_url":"https://api.github.com/users/ualbertalib/repos","events_url":"https://api.github.com/users/ualbertalib/events{/privacy}","received_events_url":"https://api.github.com/users/ualbertalib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ualbertalib/HydraNorth","description":"A DAMS built on Hydra","fork":false,"url":"https://api.github.com/repos/ualbertalib/HydraNorth","forks_url":"https://api.github.com/repos/ualbertalib/HydraNorth/forks","keys_url":"https://api.github.com/repos/ualbertalib/HydraNorth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ualbertalib/HydraNorth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ualbertalib/HydraNorth/teams","hooks_url":"https://api.github.com/repos/ualbertalib/HydraNorth/hooks","issue_events_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/events{/number}","events_url":"https://api.github.com/repos/ualbertalib/HydraNorth/events","assignees_url":"https://api.github.com/repos/ualbertalib/HydraNorth/assignees{/user}","branches_url":"https://api.github.com/repos/ualbertalib/HydraNorth/branches{/branch}","tags_url":"https://api.github.com/repos/ualbertalib/HydraNorth/tags","blobs_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/refs{/sha}","trees_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ualbertalib/HydraNorth/statuses/{sha}","languages_url":"https://api.github.com/repos/ualbertalib/HydraNorth/languages","stargazers_url":"https://api.github.com/repos/ualbertalib/HydraNorth/stargazers","contributors_url":"https://api.github.com/repos/ualbertalib/HydraNorth/contributors","subscribers_url":"https://api.github.com/repos/ualbertalib/HydraNorth/subscribers","subscription_url":"https://api.github.com/repos/ualbertalib/HydraNorth/subscription","commits_url":"https://api.github.com/repos/ualbertalib/HydraNorth/commits{/sha}","git_commits_url":"https://api.github.com/repos/ualbertalib/HydraNorth/git/commits{/sha}","comments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/comments{/number}","issue_comment_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/comments{/number}","contents_url":"https://api.github.com/repos/ualbertalib/HydraNorth/contents/{+path}","compare_url":"https://api.github.com/repos/ualbertalib/HydraNorth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ualbertalib/HydraNorth/merges","archive_url":"https://api.github.com/repos/ualbertalib/HydraNorth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ualbertalib/HydraNorth/downloads","issues_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues{/number}","pulls_url":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls{/number}","milestones_url":"https://api.github.com/repos/ualbertalib/HydraNorth/milestones{/number}","notifications_url":"https://api.github.com/repos/ualbertalib/HydraNorth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ualbertalib/HydraNorth/labels{/name}","releases_url":"https://api.github.com/repos/ualbertalib/HydraNorth/releases{/id}","deployments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/deployments","created_at":"2014-09-23T19:54:45Z","updated_at":"2016-03-03T19:43:34Z","pushed_at":"2016-06-02T22:44:33Z","git_url":"git://github.com/ualbertalib/HydraNorth.git","ssh_url":"git@github.com:ualbertalib/HydraNorth.git","clone_url":"https://github.com/ualbertalib/HydraNorth.git","svn_url":"https://github.com/ualbertalib/HydraNorth","homepage":"","size":46444,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":262,"forks":3,"open_issues":262,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166"},"html":{"href":"https://github.com/ualbertalib/HydraNorth/pull/1166"},"issue":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/1166"},"comments":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/1166/comments"},"review_comments":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166/comments"},"review_comment":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/pulls/1166/commits"},"statuses":{"href":"https://api.github.com/repos/ualbertalib/HydraNorth/statuses/94c8164f2fbb6e032f75146dddc02be4516a2227"}}}}
{"actor":{"display_login":"weiweishi"}}