Commit graph

7 commits

Author SHA1 Message Date
GitLab Bot
6d82b3a0c5 Add latest changes from gitlab-org/gitlab@master 2022-04-27 15:10:01 +00:00
GitLab Bot
c575d3cfde Add latest changes from gitlab-org/gitlab@master 2021-08-13 18:09:11 +00:00
GitLab Bot
0b48416b38 Add latest changes from gitlab-org/gitlab@master 2021-03-08 00:09:10 +00:00
gfyoung
f93f8f569d Enable even more frozen string for lib/gitlab
Enables frozen string for the following:

* lib/gitlab/patch/**/*.rb
* lib/gitlab/popen/**/*.rb
* lib/gitlab/profiler/**/*.rb
* lib/gitlab/project_authorizations/**/*.rb
* lib/gitlab/prometheus/**/*.rb
* lib/gitlab/query_limiting/**/*.rb
* lib/gitlab/quick_actions/**/*.rb
* lib/gitlab/redis/**/*.rb
* lib/gitlab/request_profiler/**/*.rb
* lib/gitlab/search/**/*.rb
* lib/gitlab/sherlock/**/*.rb
* lib/gitlab/sidekiq_middleware/**/*.rb
* lib/gitlab/slash_commands/**/*.rb
* lib/gitlab/sql/**/*.rb
* lib/gitlab/template/**/*.rb
* lib/gitlab/testing/**/*.rb
* lib/gitlab/utils/**/*.rb
* lib/gitlab/webpack/**/*.rb

Partially addresses gitlab-org/gitlab-ce#47424.
2018-11-19 18:24:22 -08:00
Jarka Kadlecová
c37a9ef3c5 Make ActiveRecordSubscriber rails 5 compatible 2018-05-31 15:02:45 +02:00
Dylan Griffith
2e216dd43b Do not count rails sql cache as queries in query limiting 2018-02-21 16:27:05 +11:00
Yorick Peterse
cca61980d5
Track and act upon the number of executed queries
This ensures that we have more visibility in the number of SQL queries
that are executed in web requests. The current threshold is hardcoded to
100 as we will rarely (maybe once or twice) change it.

In production and development we use Sentry if enabled, in the test
environment we raise an error. This feature is also only enabled in
production/staging when running on GitLab.com as it's not very useful to
other users.
2018-02-01 17:00:46 +01:00