Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-12Merge branch 'create-amazon-eks-cluster-form-skeleton' into 'master'Kushal Pandya
Create EKS cluster Vue app skeleton See merge request gitlab-org/gitlab-ce!32479
2019-09-12Merge branch 'static-objects-external-storage' into 'master'Thong Kuah
Enable serving static objects from an external storage See merge request gitlab-org/gitlab-ce!31025
2019-09-11Include AWS SDK as packge dependencyEnrique Alcantara
- Load EKS create cluster form as dynamic import dependency. - Include aws-sdk dependency in package.json
2019-09-11Merge branch 'sh-fix-oauth-application-page' into 'master'Rémy Coutable
Optimize /admin/applications so that it does not timeout Closes #67228 See merge request gitlab-org/gitlab-ce!32852
2019-09-11Merge branch '65988-optimize-snippet-listings' into 'master'Thong Kuah
Optimize queries for snippet listings See merge request gitlab-org/gitlab-ce!32576
2019-09-11Fix N+1s queriesDouglas Barbosa Alexandre
2019-09-10Add controller concern for paginated collectionsMarkus Koller
We had similar code in a few places to redirect to the last page if the given page number is out of range. This unifies the handling in a new controller concern and adds usage of it in all snippet listings.
2019-09-10Optimize queries for snippet listingsMarkus Koller
- Avoid N+1 queries for authors and comment counts - Avoid an additional snippet existence query
2019-09-10Enable serving static objects from an external storageAhmad Sherif
It consists of two parts: 1. Redirecting users to the configured external storage 1. Allowing the external storage to request the static object(s) on behalf of the user by means of specific tokens Part of https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829
2019-09-10Optimize /admin/applications so that it does not timeoutStan Hu
On our dev instance, /admin/applications as not loading because: 1. There was an unindexed query by `application_id`. 2. There was an expensive query that attempted to load 1 million unique entries via ActiveRecord just to find the unique count. We fix the first issue by adding an index for that column. We fix the second issue with a simple SELECT COUNT(DISTINCT resource_owner_id) SQL query. In addition, we add pagination to avoid loading more than 20 applications at once. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67228
2019-09-10Make Rubocop happyDouglas Barbosa Alexandre
2019-09-10Remove N+1 queriesDouglas Barbosa Alexandre
2019-09-10Merge remote-tracking branch 'origin/master' into ↵Douglas Barbosa Alexandre
camilstaps/gitlab-ce-new-66023-public-private-fork-counts
2019-09-09Merge branch 'api_settings' into 'master'Douglas Barbosa Alexandre
Improve application settings API Closes #58180 See merge request gitlab-org/gitlab-ce!31149
2019-09-09Create new feature flagged UI for cloud providersEnrique Alcántara
- Create HAML UI select a cloud provider to create a cluster. - Add query param to :new cluster view to display a specific cluster provider form depending on the value of the provider query param. - Update unit tests and e2e tests to reflect these changes
2019-09-09Expose update project service JSON endpointPeter Leitzen
Utilize `json_fields` to expose fields via `Service#as_json(only: json_fields)`.
2019-09-09Settings API: domain_{black,white}list should be arraysMathieu Parent
As in documentation. Fixes: #58180. Also remove the requirement between domain_blacklist_enabled and domain_blacklist.
2019-09-09Show domain_blacklist and domain_whitelist in the settings APIMathieu Parent
2019-09-09Application Statistics APIManoj MJ
This change implements Application Statistics API
2019-09-07Add method to authorize reading from prometheus proxyRyan Cobb
2019-09-06Back porting changes to trigger user create event on Trial sign upAishwarya Subramanian
2019-09-06Fix public/private/internal fork countsCamil Staps
2019-09-06If user can't activate error tracking display a learn more button pointingManeschi Romain
to doc
2019-09-03Preload routes informationAndreas Brandl
This fixes a high frequency N+1 issue: `RoutableActions#find_routable!` is used across many controllers to retrieve e.g. the Project or Namespace by path. The `#find_routable!` method calls `#ensure_canonical_path` which in turn retrieves `#full_path` from the given Routable. This in turn triggers a lookup on `routes`, leading to a high frequency of these queries: ```sql SELECT "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND "routes"."source_type" = $2 LIMIT $3 ``` This is unnecessary as we already join `routes` in `Routable#find_by_full_path` anyways.
2019-09-02Merge branch 'fix-peek-on-puma' into 'master'Rémy Coutable
Fix Peek on Puma Closes #66528 See merge request gitlab-org/gitlab-ce!32213
2019-08-31Avoid calling freeze on already frozen strings in app/controllersdineshpanda
2019-08-31Creates Feature Flag for job logFilipa Lacerda
Updates frontend code and specs to allow for the new feature flag
2019-08-30Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRobert Speicher
2019-08-30Merge branch 'security-epic-notes-api-reveals-historical-info-ce-master' ↵GitLab Release Tools Bot
into 'master' Filter out old system notes for epics in notes api endpoint response See merge request gitlab/gitlabhq!3224
2019-08-30Merge branch 'security-personal-snippets' into 'master'GitLab Release Tools Bot
Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3226
2019-08-30Merge branch 'security-59549-add-capcha-for-failed-logins' into 'master'GitLab Release Tools Bot
Require a captcha after unique failed logins from the same IP See merge request gitlab/gitlabhq!3270
2019-08-30Merge branch 'security-mr-head-pipeline-leak' into 'master'GitLab Release Tools Bot
Permission fix for MergeRequestsController#pipeline_status See merge request gitlab/gitlabhq!3274
2019-08-30Merge branch 'security-group-runners-permissions' into 'master'GitLab Release Tools Bot
admin_group authorization for Groups::RunnersController See merge request gitlab/gitlabhq!3325
2019-08-30Merge branch 'security-ci-metrics-permissions' into 'master'GitLab Release Tools Bot
Restrict MergeRequests#test_reports to authenticated users with read-access on Builds See merge request gitlab/gitlabhq!3329
2019-08-29Make it harder to delete issuables accidentallyStan Hu
Previously submitting a DELETE request to an issuable URL would be enough to destroy it, but this should require human confirmation. We now require that the `destroy_confirm` parameter is set to a truthy value before this can complete. In addition, we log a Sentry error if a deletion arrived without confirmation. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62387
2019-08-29Reduce the number of SQL requests on MR-showIgor
- Extract MR fields for notes into a separate serializer - Check if pipelines are empty via count
2019-08-28Save board lists collapsed settingFelipe Artur
Persists if a board list is collapsed for each user.
2019-08-28Make performance bar enabled checks consistentSean McGivern
Previously, we called the `peek_enabled?` method like so: prepend_before_action :set_peek_request_id, if: :peek_enabled? Now we don't have a `set_peek_request_id` method, so we don't need that line. However, the `peek_enabled?` part had a side-effect: it would also populate the request store cache for whether the performance bar was enabled for the current request or not. This commit makes that side-effect explicit, and replaces all uses of `peek_enabled?` with the more explicit `Gitlab::PerformanceBar.enabled_for_request?`. There is one spec that still sets `SafeRequestStore[:peek_enabled]` directly, because it is contrasting behaviour with and without a request store enabled. The upshot is: 1. We still set the value in one place. We make it more explicit that that's what we're doing. 2. Reading that value uses a consistent method so it's easier to find in future.
2019-08-28Filter out old system notes for epicsPatrick Derichs
2019-08-27Fix Peek on PumaSean McGivern
Peek's `Peek.request_id` method doesn't work well with a multi-threaded server and concurrent requests, because requests can 'steal' another request's ID, or unset it before it was due. The upstream change resolves this; the commit here is just to ensure that GitLab works with that upstream change, mostly by not using `Peek.request_id` any more (as the method doesn't exist).
2019-08-27Merge branch 'sh-project-feature-nplus-one' into 'master'Jan Provaznik
Remove N+1 SQL query loading project feature in dashboard Closes #66482 See merge request gitlab-org/gitlab-ce!32169
2019-08-26Add edit_note and spec for editing quick actionsPatrick Derichs
Call QuickActionsService on Note update Add support for notes which just contain commands after editing Return http status gone (410) if note was deleted Temporary frontend addition so it is not failing when a note is deleted Move specs to shared examples Fix rubocop style issue Deleting note on frontend when status is 410 Use guard clause for note which got deleted Simplified condition for nil note This method should no longer be called with nil note Refactoring of execute method to reduce complexity Move errors update to delete_note method Note is now deleted visually when it only contains commands after update Add expectation Fix style issues Changing action to fix tests Add tests for removeNote and update deleteNote expectations
2019-08-24Merge branch 'mc/bug/nplusone-pipelines-show' into 'master'Stan Hu
Preload tags when loading Ci::Pipeline Closes #60925 See merge request gitlab-org/gitlab-ce!32149
2019-08-24Remove N+1 SQL query loading project feature in dashboardStan Hu
Projects that have a pipeline may need to check whether the user has permission to read the build (`can?(current_user, :read_build, project)`), which requires checking the `project_features` table. This would cause an N+1 SQL query for each project. This change also has a beneficial side effect that may avoid a race condition. When a user deletes a project, the project is queued for deletion and the user is redirected back to the dashboard page. However, the following may happen: 1. The dashboard page may load this deleted project in the list of 20 projects. 2. The view will load the project pipeline status from the cache and attempt to show each project. 3. When the view encounters the deleted project, it calls `can?(current_user, :read_build, project)` to determine whether to display the pipeline status. 4. Sidekiq deletes the project from the database. 5. However, since the deleted project is still loaded in memory, it will attempt to call `project.project_feature.access_level`. 6. Since `project_feature` was not eager loaded, a lazy `SELECT` call is made to the database. 7. This `SELECT` call returns nothing, and the user sees a 500 error. By eager loading `project_feature`, we can ensure that we have a consistent view and avoid records from being deleted later. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66482
2019-08-23Merge branch 'ce-jej/fix-sso-enforced-docker-registry-auth' into 'master'Kamil Trzciński
[CE backport] Enforced SSO shouldn't break container registry authentication See merge request gitlab-org/gitlab-ce!32110
2019-08-23Preload tags when loading Ci::PipelineMatija Čupić
2019-08-23Add direct upload support for personal snippetsJan Provaznik
2019-08-22Merge branch 'ce-8631-archiving-a-project-should-create-an-audit-event' into ↵Lin Jen-Shin
'master' CE: Archiving a project should create an audit event See merge request gitlab-org/gitlab-ce!32039
2019-08-22admin_group authorization for Groups::RunnersControllerdrew cimino
- Use authorize_admin_group! instead of authorize_admin_pipeline! - Added role-based permission specs for Groups::RunnersController
2019-08-22JwtController avoids activating session checksJames Edwards-Jones
This used without a session and issues a sessionless token, so we should avoid causing access checks based on the session.