- Jul 30, 2018
-
-
Stan Hu authored
The `ORDER BY created_at DESC` clause causes a sequential scan because there is no index on the `created_at` column. We can sort by `id` or by `updated_at` to make things fast. Closes #49767
-
- Jul 27, 2018
-
-
Luke Bennett authored
-
Sean McGivern authored
This reverts merge request !20679
-
- Jul 26, 2018
-
-
gfyoung authored
Partially addresses #47424.
-
Luke Bennett authored
-
- Jul 09, 2018
-
-
Lin Jen-Shin authored
-
- Jul 03, 2018
-
-
Yorick Peterse authored
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.
-
- Jun 25, 2018
-
-
Andrei Vukolov authored
-
Lin Jen-Shin authored
-
- Jun 21, 2018
-
-
Andrei Vukolov authored
-
- Jun 20, 2018
-
-
Jasper Maes authored
-
- Jun 05, 2018
-
-
Alexis Reigel authored
-
- May 31, 2018
-
-
Kamil Trzcińśki authored
-
- May 26, 2018
-
-
Stan Hu authored
This commit does a number of things: 1. Reduces the number of queries needed by perform a single query to get all the tuples for the relevant rows. 2. Uses a transaction to query the tuple counts to ensure that the data is retrieved from the primary. Closes #46742
-
- May 23, 2018
-
-
Rémy Coutable authored
Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- May 16, 2018
-
-
Stan Hu authored
Uses PostgreSQL tuple estimates to provide a much faster yet approximate count. See https://wiki.postgresql.org/wiki/Slow_Counting for more details. We only use this fast method if the table has been analyzed or vacuumed within the last hour. Closes #46255
-
- Apr 13, 2018
-
-
Dmitriy Zaporozhets authored
Signed-off-by:
Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
Dmitriy Zaporozhets authored
If form does not have import sources checkboxes we should not reset import sources to empty. This fixes issue when import sources got reset after user modifies unrelated settings section like GitLab pages Signed-off-by:
Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
- Apr 11, 2018
-
-
blackst0ne authored
The `RAILS5=1 rspec spec/controllers/admin/application_settings_controller_spec.rb` command throws the error: Failures: 1) Admin::ApplicationSettingsController PUT #update falls back to defaults when settings are omitted Failure/Error: import_sources = params[:application_setting][:import_sources] NoMethodError: undefined method `[]' for nil:NilClass # ./app/controllers/admin/application_settings_controller.rb:62:in `application_setting_params' This commit fixes it.
-
- Apr 04, 2018
-
-
blackst0ne authored
-
- Apr 02, 2018
-
-
- Mar 22, 2018
-
-
Toon Claes authored
When the database is in a read-only state, display a banner on each page informing the user they cannot write to that GitLab instance. Closes gitlab-org/gitlab-ce#43937.
-
- Mar 02, 2018
-
-
julien MILLAU authored
-
- Feb 27, 2018
-
-
Rémy Coutable authored
Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- Feb 05, 2018
-
-
Clement Ho authored
-
- Feb 02, 2018
-
-
Mario de la Ossa authored
-
- Feb 01, 2018
-
-
Yorick Peterse authored
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.
-
- Jan 31, 2018
-
-
Zeger-Jan van de Weg authored
Implements the client side for gitlab-org/gitaly#819. Which is a server info command. This checks the server version and git binairy version on the server. A small UI was added for administrators, so they can check the status of the Gitaly server. This is done for each storage the monolith knows. Because of this commit, gitlab-org/gitlab-ce!15580 is now closed. That MR removed the Git version too, but didn't replace it with anything.
-
- Jan 18, 2018
-
-
Winnie Hellmann authored
-
- Jan 17, 2018
-
-
Alexis Reigel authored
-
Alexis Reigel authored
-
Douwe Maan authored
[10.3] Migrate `can_push` column from `keys` to `deploy_keys_project` See merge request gitlab/gitlabhq!2276 (cherry picked from commit f6ca52d31bac350a23938e0aebf717c767b4710c) 1f2bd3c0 Backport to 10.3
-
- Jan 11, 2018
-
-
- Jan 08, 2018
-
-
Rémy Coutable authored
See merge request gitlab-org/gitlab-ee!3323 Backported as part of authorized_keys in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16014
-
Michael Kozono authored
Originally branch 'mk-toggle-writing-to-auth-keys-1631' See merge request !2004 Squashed commits: Add authorized_keys_enabled to Application Settings Ensure default settings are exposed in UI Without this change, `authorized_keys_enabled` is unchecked when it is nil, even if it should be checked by default. Add “Speed up SSH operations” documentation Clarify the reasons for disabling writes Add "How to go back" section Tweak copy Update Application Setting screenshot
-
- Dec 12, 2017
-
-
Rémy Coutable authored
Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- Dec 08, 2017
-
-
Bob Van Landuyt authored
Moving the check out of the general requests, makes sure we don't have any slowdown in the regular requests. To keep the process performing this checks small, the check is still performed inside a unicorn. But that is called from a process running on the same server. Because the checks are now done outside normal request, we can have a simpler failure strategy: The check is now performed in the background every `circuitbreaker_check_interval`. Failures are logged in redis. The failures are reset when the check succeeds. Per check we will try `circuitbreaker_access_retries` times within `circuitbreaker_storage_timeout` seconds. When the number of failures exceeds `circuitbreaker_failure_count_threshold`, we will block access to the storage. After `failure_reset_time` of no checks, we will clear the stored failures. This could happen when the process that performs the checks is not running.
-
- Dec 04, 2017
-
-
Markus Koller authored
-
- Nov 02, 2017
-
-
James Lopez authored
-
James Lopez authored
-