gitlab-org--gitlab-foss/app/controllers/admin
Yorick Peterse f30089075f
Fixed pagination of web hook logs
For reasons unknown, the logs of a web hook were paginated in memory.
This would result in the "Edit" page of a web hook timing out once it
has more than a few thousand log entries.

This commit makes the following changes:

1. We use LIMIT/OFFSET to paginate the data, instead of doing this in
   memory.

2. We limit the logs to the last two days, just like the documentation
   says (instead of retrieving everything).

3. We change the indexes on "web_hook_logs" so the query to get the data
   can perform a backwards index scan, without the need for a Filter.

These changes combined ensure that Projects::HooksController#edit no
longer times out.
2018-07-03 14:24:17 +02:00
..
abuse_reports_controller.rb Fix a few N+1 queries identified by Bullet 2017-04-02 05:42:11 -07:00
appearances_controller.rb allow uploading favicon in appearance settings 2018-06-05 16:20:18 +02:00
application_controller.rb Add read-only banner to all pages 2018-03-22 20:34:45 +01:00
application_settings_controller.rb Fix initial settings loading at the first run of GitLab installed from source 2018-06-25 17:44:03 +00:00
applications_controller.rb fix typo 2017-11-02 14:33:56 +01:00
background_jobs_controller.rb Handle parsing OpenBSD ps output properly to display sidekiq 2017-03-31 09:45:46 +02:00
broadcast_messages_controller.rb Replace $.ajax in admin broadcast messages with axios 2018-02-05 14:59:48 +00:00
cohorts_controller.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
conversational_development_index_controller.rb Add Conversational Development Index page to admin panel 2017-06-01 17:37:21 +02:00
dashboard_controller.rb Fix fast admin counters not working when PostgreSQL has secondaries 2018-05-25 22:58:43 -07:00
deploy_keys_controller.rb Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into 'security-10-3' 2018-01-16 17:04:51 -08:00
gitaly_servers_controller.rb Gitaly Server info for admin panel 2018-01-31 08:54:45 +01:00
groups_controller.rb Bring changes from EE 2018-06-25 21:11:00 +08:00
health_check_controller.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
hook_logs_controller.rb Wrong data type when testing webhooks 2017-07-20 15:12:06 +00:00
hooks_controller.rb Fixed pagination of web hook logs 2018-07-03 14:24:17 +02:00
identities_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
impersonation_tokens_controller.rb Remove impersonate token from flash scope 2018-03-02 10:10:39 +00:00
impersonations_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
jobs_controller.rb Add modal for stopping jobs in admin area 2018-01-18 10:05:40 +01:00
keys_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
labels_controller.rb Fix notification message when admin label was modified 2017-09-18 11:09:00 +02:00
logs_controller.rb Put loggers in before_action for easier overriding in EE 2017-09-06 15:25:51 +02:00
projects_controller.rb Present member collection at the controller level 2017-12-12 18:14:58 +01:00
requests_profiles_controller.rb
runner_projects_controller.rb Improve `Ci::Runner#assign_to` to return a flag whether it succeeded or not 2018-05-31 10:56:41 +02:00
runners_controller.rb Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
services_controller.rb Track and act upon the number of executed queries 2018-02-01 17:00:46 +01:00
spam_logs_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
system_info_controller.rb Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
users_controller.rb Bring changes from EE 2018-06-25 21:11:00 +08:00