Skip to content

Commit

Permalink
troubleshooting the API request failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Oct 10, 2024
1 parent fa58de8 commit 3e6c77b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/orangetheses/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ def api_community
# Get all of the collections for a given community
def api_collections
@api_collections ||= begin
response = api_client.get("#{@server}/communities/#{api_community_id}/collections")
collections_url = "#{@server}/communities/#{api_community_id}/collections"
logger.info("Querying #{collections_url} for the collections...")
response = api_client.get(collections_url)
response.body
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/orangetheses/harvester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
end

describe '#harvest_all' do
xit 'harvests all of the DSpace Items using the OAI-PMH' do
it 'harvests all of the DSpace Items using the OAI-PMH' do
# @todo Implemented
end
end

describe '#index_all' do
xit 'harvests all of the DSpace Items using the OAI-PMH and indexes these into Solr' do
it 'harvests all of the DSpace Items using the OAI-PMH and indexes these into Solr' do
# @todo Implemented
end
end
Expand Down

0 comments on commit 3e6c77b

Please sign in to comment.