gitlab-org--gitlab-foss/lib/gitlab
Douwe Maan a9a9f19b0b Merge branch 'gh-rate-limit' into 'master'
Wrap all rate limiting logic inside GitHub API client

## What does this MR do?

Move the actual rate limiting logic to GitHub API to clean the code inside the GitHub importer, and avoid code duplication.

## Are there points in the code the reviewer needs to double check?

No there aren't.

## Why was this MR needed?

Avoid code duplication to handle API rate limit in every call to the GitHub API.

## What are the relevant issue numbers?

There are none.

## Screenshots (if relevant)

Not relevant.

See merge request !4552
2016-06-10 10:34:19 +00:00
..
auth
backend
badge
bitbucket_import
ci
database
diff
email
fogbugz_import
gfm
git
github_import
gitlab_import
gitorious_import
google_code_import
graphs
ldap
lfs
markdown
metrics
middleware
o_auth
saml
sanitizers
sherlock
sidekiq_middleware
sql
access.rb
akismet_helper.rb
app_logger.rb
asciidoc.rb
auth.rb
award_emoji.rb
bitbucket_import.rb
blame.rb
build_data_builder.rb
closing_issue_extractor.rb
color_schemes.rb
config_helper.rb
contributions_calendar.rb
contributor.rb
current_settings.rb
database.rb
devise_failure.rb
exclusive_lease.rb
force_push_check.rb
git.rb
git_access.rb
git_access_status.rb
git_access_wiki.rb
git_logger.rb
git_post_receive.rb
git_ref_validator.rb
gitignore.rb
gitorious_import.rb
gon_helper.rb
highlight.rb
identifier.rb
import_formatter.rb
import_sources.rb
incoming_email.rb
issues_labels.rb
key_fingerprint.rb
lazy.rb
logger.rb
markup_helper.rb
metrics.rb
note_data_builder.rb
other_markup.rb
popen.rb
production_logger.rb
project_search_results.rb
push_data_builder.rb
recaptcha.rb
redis.rb
reference_extractor.rb
regex.rb
repository_check_logger.rb
routing.rb
search_results.rb
seeder.rb
sherlock.rb
sidekiq_logger.rb
snippet_search_results.rb
themes.rb
upgrader.rb
uploads_transfer.rb
url_builder.rb
url_sanitizer.rb
user_access.rb
utils.rb
version_info.rb
visibility_level.rb
workhorse.rb