gitlab-org--gitlab-foss/lib/gitlab
Nick Thomas 6647542cd4 Fix Gitlab::Metrics metaprogramming magic
On initial startup with no rows in the application_settings table, the
metaprogramming call to `if enabled?` attempts to create a row. This triggers
the HTML caching path, which attempts to store metrics.

At this point, not all the methods in `Gitlab::Metrics` have been defined! Move
`current_transaction` to be defined before running the metaprogramming, to
avoid a confusing NoMethodError
2017-04-21 11:52:28 +01:00
..
auth Remove unecessary defaults for uniq ip block, cleanup refactoring leftovers 2017-03-06 15:45:43 +01:00
badge
bitbucket_import [BB Importer] Save the error trace and the whole raw document 2017-04-11 19:27:15 +03:00
cache/ci Take the ref of a pipeline into account when caching status 2017-04-07 17:24:11 +02:00
chat_commands
checks Don't pass env anymore to GitAccess, ChangeAccess, and ForcePush 2017-04-10 16:10:18 +02:00
ci Improves support for long build traces: 2017-04-18 12:27:10 +00:00
conflict Allow resolving conflicts with non-ASCII chars 2017-03-15 11:18:29 +00:00
cycle_analytics
data_builder Reinstitute a core manual status for manual actions 2017-03-06 10:04:04 +01:00
database Merge branch 'zero-downtime-migrations' into 'master' 2017-04-12 20:43:12 +00:00
diff Cache MR diffs by diff refs 2017-04-08 14:37:46 -05:00
downtime_check
email Store projects in metrics for email replies 2017-04-20 13:19:16 +01:00
etag_caching Test all enabled routes in ETag caching middleware and fix pipeline routes 2017-04-10 10:45:37 +02:00
fogbugz_import
gfm
git Return empty string on UTF8 conversion with U_STRING_NOT_TERMINATED_WARNING error 2017-04-20 16:10:33 +02:00
gitaly_client Use Gitlab::Git::Repository#gitaly_... more 2017-04-07 12:53:30 +02:00
github_import Rename skip_metrics to imported on the importable concern 2017-04-03 15:50:22 -03:00
gitlab_import
google_code_import
graphs
health_checks Add /-/readiness /-/liveness and /-/health_metrics endpoints to track application readiness 2017-04-07 10:27:15 +00:00
import_export Remove the User#is_admin? method 2017-04-09 13:20:57 +11:00
ldap Enable Style/Proc cop for rubocop 2017-04-02 12:48:43 +03:00
markdown
metrics
middleware Fix go-get support for projects in nested groups 2017-03-07 19:40:19 -06:00
o_auth Implement Users::BuildService 2017-04-13 13:02:59 +03:00
request_profiler
saml
sanitizers
serializer Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
sherlock
sidekiq_middleware
sidekiq_status Periodically mark projects that are stuck in importing as failed 2017-04-05 16:11:51 +02:00
slash_commands
sql
template Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
testing Introduce a new middleware for the test environment that can block requests 2017-03-22 19:45:21 +01:00
view/presenter
access.rb Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
allowable.rb use a magic default :global symbol instead of nil 2017-03-09 11:49:52 -08:00
app_logger.rb
asciidoc.rb
auth.rb Merge branch 'siemens/gitlab-ce-feature/openid-connect' 2017-03-07 16:16:08 +00:00
blame.rb
changes_list.rb
chat_name_token.rb
closing_issue_extractor.rb
color_schemes.rb
config_helper.rb
contributions_calendar.rb
contributor.rb
current_settings.rb
database.rb removes redundant code from database.rb 2017-04-11 20:20:19 +01:00
devise_failure.rb
downtime_check.rb
ee_compat_check.rb Fix Gitlab::EeCompatCheck: use ee_branch_found instead of ee_branch 2017-03-28 09:26:47 +02:00
emoji.rb This quick-fixes an issue with existing award emoji not being valid anymore 2017-03-16 14:36:04 +01:00
environment_logger.rb
exclusive_lease.rb
file_detector.rb
git.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
git_access.rb Don't pass env anymore to GitAccess, ChangeAccess, and ForcePush 2017-04-10 16:10:18 +02:00
git_access_status.rb
git_access_wiki.rb
git_logger.rb
git_post_receive.rb
git_ref_validator.rb
gitaly_client.rb Improve gitaly_address error message 2017-04-08 21:33:45 +02:00
gl_id.rb
gon_helper.rb Update API on frontend to use v4 2017-03-14 06:58:20 -04:00
highlight.rb Copy code as GFM from diffs, blobs and GFM code blocks 2017-03-14 15:29:00 -06:00
identifier.rb
import_export.rb
import_formatter.rb
import_sources.rb
incoming_email.rb
issues_labels.rb
job_waiter.rb
key_fingerprint.rb
kubernetes.rb
lazy.rb
lfs_token.rb
logger.rb
mail_room.rb
markup_helper.rb Use constants in Gitlab::MarkupHelper 2017-04-20 00:39:29 +00:00
metrics.rb Fix Gitlab::Metrics metaprogramming magic 2017-04-21 11:52:28 +01:00
optimistic_locking.rb
other_markup.rb
pages_transfer.rb
polling_interval.rb Convert value to string before setting Poll-Interval header 2017-04-05 15:35:05 +02:00
popen.rb
project_search_results.rb Fix blob highlighting in search 2017-04-03 18:51:44 +01:00
project_transfer.rb
prometheus.rb Added Prometheus Service and Prometheus graphs 2017-03-07 16:57:42 +00:00
protocol_access.rb
recaptcha.rb
redis.rb Fix config/mail_room.yml to be interpretable Ruby 2017-03-15 16:21:55 -06:00
reference_extractor.rb
regex.rb Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
repo_path.rb Helper method for storage path stripping 2017-03-29 14:48:04 +02:00
repository_check_logger.rb
request_context.rb Remove unecessary defaults for uniq ip block, cleanup refactoring leftovers 2017-03-06 15:45:43 +01:00
request_profiler.rb
route_map.rb Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
routing.rb
search_results.rb Fix blob highlighting in search 2017-04-03 18:51:44 +01:00
seeder.rb Fix the Gitlab::Seeder monkey patch to disable mail delivery 2017-03-02 20:29:30 -05:00
sentry.rb
shell.rb Handle SSH keys that have multiple spaces between each marker 2017-04-04 23:12:08 -07:00
shell_adapter.rb
sherlock.rb
sidekiq_logger.rb
sidekiq_status.rb Periodically mark projects that are stuck in importing as failed 2017-04-05 16:11:51 +02:00
sidekiq_throttler.rb
snippet_search_results.rb
time_tracking_formatter.rb
timeless.rb
update_path_error.rb Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
upgrader.rb
uploads_transfer.rb Merge branch '29843-project-subgroup-transfer' into 'security' 2017-03-29 19:16:50 -07:00
url_blocker.rb Merge branch 'ssrf' into 'security' 2017-03-20 18:53:45 -07:00
url_builder.rb
url_sanitizer.rb Fix ProjectWiki#http_url_to_repo signature 2017-03-20 16:24:01 +01:00
usage_data.rb Add prometheus services to usage ping 2017-04-14 15:20:55 +02:00
user_access.rb Fixed UserAccess#can_create_tag? after create_access_levels rename 2017-04-04 03:50:15 +01:00
user_activities.rb Add a new Gitlab::UserActivities class to track user activities 2017-04-14 15:20:55 +02:00
utils.rb
version_info.rb
visibility_level.rb Remove the User#is_admin? method 2017-04-09 13:20:57 +11:00
workhorse.rb Send more Gitaly::Repository fields 2017-04-07 12:53:30 +02:00