Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: a per_page param to OGM API URI #150

Merged
merged 1 commit into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
mkmf.log
.tool-versions
.byebug_history
.ruby-version
2 changes: 1 addition & 1 deletion lib/geo_combine/harvester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.denylist

# GitHub API endpoint for OpenGeoMetadata repositories
def self.ogm_api_uri
URI('https://api.github.com/orgs/opengeometadata/repos')
URI('https://api.github.com/orgs/opengeometadata/repos?per_page=1000')
end

def initialize(
Expand Down
6 changes: 6 additions & 0 deletions spec/lib/geo_combine/harvester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,10 @@
expect(harvester.clone_all).to eq(2)
end
end

describe '#ogm_api_uri' do
it 'includes a per_page param' do
expect(described_class.send('ogm_api_uri').to_s).to include('per_page')
end
end
end