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
2018-11-01Use a method for the has_many :keys in ProjectYorick Peterse
This moves the `where` in the `has_many :keys` association in Project to the Key model. This allows EE to override this method, instead of modifying the source code directly.
2018-11-01Move LDAP sync time constant to a methodYorick Peterse
This moves the `1.hour` constant used as the LDAP sync time to a separate method. This allows EE to override this method using a module, instead of directly modifying the source code.
2018-11-01Merge branch 'engwan/gitlab-ce-44012-filter-reactions-none-any'Sean McGivern
2018-11-01Merge branch 'gt-update-typos-in-comments-and-specs' into 'master'Achilleas Pipinellis
Fix typos in comments and specs See merge request gitlab-org/gitlab-ce!22683
2018-11-01Merge branch 'sh-optimize-merge-request-project-lookup' into 'master'Sean McGivern
Reduce SQL queries needed to load open merge requests See merge request gitlab-org/gitlab-ce!22709
2018-11-01Fix typos in comments and specsGeorge Tsiolis
2018-11-01Fix testsHeinrich Lee Yu
2018-11-01Add None / Any options to reaction filter in issues / MRs APIHeinrich Lee Yu
2018-10-31Merge branch 'remove-ee-specific-code-from-plan-and-create-models' into 'master'Douglas Barbosa Alexandre
Remove EE-specific code from 'Discussion' models See merge request gitlab-org/gitlab-ce!22687
2018-10-31Reduce SQL queries needed to load open merge requestsStan Hu
The SQL queries and memory allocation in MergeRequests::RefreshService is dominated by queries for Project and Route loads. On staging, the absence of an inverse relationship caused Rails to make over 1100 extraneous SQL queries for the www-gitlab-com repository. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/49703
2018-10-30Merge branch 'add-language-param-to-highlight' into 'master'Douwe Maan
Add language param to highlight See merge request gitlab-org/gitlab-ce!21584
2018-10-30Merge branch 'tc-index-lfs-objects-file-store' into 'master'Douglas Barbosa Alexandre
Enhance performance of counting local LFS objects Closes gitlab-ee#6067 See merge request gitlab-org/gitlab-ce!22143
2018-10-30Renaming Secret Variables in the codebaseMarcel Amirault
2018-10-30Allow FoundBlob to access language from gitattributesMark Chao
Extract language_from_git_attributes as a concern so it can ben included in two blob classes.
2018-10-30Move :plain option to Highlight classMark Chao
This is to DRY the repeated file size check. Move spec and constants to Highlight
2018-10-30Add BlobPresenter for highlightingMark Chao
Force FoundBlob to use BlobPresenter
2018-10-30Add access to Blob's language from gitattributesMark Chao
Ported from Highlight class since it as a concept is more related to blob, and this allows more flexibility.
2018-10-30Enhance performance of counting local LFS objectsToon Claes
Add an index to the `file_store` column on `lfs_objects`. This makes counting local objects faster. Also, there is no longer need to check for objects with `file_store` being `NULL`. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18557 --- ### Query plans #### Before & with `NULL` ``` Aggregate (cost=113495.96..113495.97 rows=1 width=8) (actual time=1691.394..1691.394 rows=1 loops=1) -> Seq Scan on lfs_objects (cost=0.00..106415.50 rows=2832186 width=0) (actual time=0.012..1312.488 rows=2852607 loops=1) Filter: ((file_store = 1) OR (file_store IS NULL)) Rows Removed by Filter: 131 Planning time: 0.077 ms Execution time: 1691.433 ms ``` #### Before, without `NULL` ``` Aggregate (cost=113495.96..113495.97 rows=1 width=8) (actual time=856.423..856.424 rows=1 loops=1) -> Seq Scan on lfs_objects (cost=0.00..106415.50 rows=2832186 width=0) (actual time=0.012..672.181 rows=2852607 loops=1) Filter: (file_store = 1) Rows Removed by Filter: 131 Planning time: 0.128 ms Execution time: 856.470 ms ``` #### After & with `NULL` ``` Aggregate (cost=68819.95..68819.96 rows=1 width=8) (actual time=583.355..583.355 rows=1 loops=1) -> Index Only Scan using index_lfs_objects_on_file_store on lfs_objects (cost=0.43..61688.35 rows=2852643 width=0) (actual time=0.028..399.177 rows=2852607 loops=1) Filter: ((file_store = 1) OR (file_store IS NULL)) Rows Removed by Filter: 131 Heap Fetches: 867 Planning time: 0.096 ms Execution time: 583.404 ms ``` #### After, without `NULL` ``` Aggregate (cost=68817.29..68817.30 rows=1 width=8) (actual time=490.550..490.551 rows=1 loops=1) -> Index Only Scan using index_lfs_objects_on_file_store on lfs_objects (cost=0.43..61685.68 rows=2852643 width=0) (actual time=0.040..311.760 rows=2852607 loops=1) Index Cond: (file_store = 1) Heap Fetches: 831 Planning time: 0.294 ms Execution time: 490.590 ms ``` Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6067
2018-10-30Merge remote-tracking branch 'origin/master' into dev-masterDJ Mountney
2018-10-29Merge branch 'rails5-deprecated-uniq' into 'master'Robert Speicher
Replace deprecated uniq on a Relation with distinct See merge request gitlab-org/gitlab-ce!22625
2018-10-29Merge branch 'fix_pat_auth-11-4' into 'security-11-4'Robert Speicher
[11.4] Fix Token lookup for Git over HTTP and registry authentication See merge request gitlab/gitlabhq!2577
2018-10-29Merge branch 'security-redact-links' into 'master'Jan Provaznik
[master] Redact unsubscribe links in issuable texts See merge request gitlab/gitlabhq!2528
2018-10-29[master] Persist only SHA digest of PersonalAccessToken#tokenImre Farkas
2018-10-29post merge pipeline and environments statusAlessio Caiazza
2018-10-29Merge branch '34758-create-group-clusters' into 'master'Andreas Brandl
Models and migrations for group level clusters See merge request gitlab-org/gitlab-ce!22307
2018-10-29Merge branch 'rz_fix_milestone_count' into 'master'Sean McGivern
Fixing count on Milestones Closes #50848 See merge request gitlab-org/gitlab-ce!21446
2018-10-29Associate clusters model to groupsThong Kuah
Even though we currently only should have one group for a cluster, we allow the flexibility to associate to other groups in the future. This also matches the runner <=> groups association. - Adds Cluster#first_group, aliased to Cluster#group. For the conceivable future, a cluster will have at most one group. - Prevent mixing of group and project clusters. If project type clusters, it should only have projects assigned. Similarly with groups. - Default cluster_type to :project_type. As it's very small table we can set default and null: false in one release.
2018-10-28Add failure reason for execution timeoutShinya Maeda
2018-10-26Replace deprecated uniq on a Relation with distinctJasper Maes
2018-10-26Resolve "No longer require a deploy to start Prometheus monitoring"Peter Leitzen
2018-10-26Remove EE-specific code from DiscussionNoteSean McGivern
2018-10-26Automatically navigate to last board visitedBrett Walker
2018-10-26Support backward compatibility when introduce new failure reasonShinya Maeda
2018-10-25Merge branch '49565-ssh-push-mirroring' into 'master'Robert Speicher
Backport SSH host key detection code to CE See merge request gitlab-org/gitlab-ce!22577
2018-10-25Backport SSH host key detection code to CENick Thomas
This functionality is needed for SSH push mirroring support, which is a CE feature.
2018-10-25Merge branch 'refactor_gitlab_kube_client' into 'master'Kamil Trzciński
Refactor Gitlab::KubeClient Closes #52131 See merge request gitlab-org/gitlab-ce!22073
2018-10-23Redact unsubscribe links in issuable textsJan Provaznik
It's possible that user pastes accidentally also unsubscribe link which is included in footer of notification emails. This unsubscribe link contains personal token which attacker then use to act as the original user (e.g. for sending comments under his/her identity).
2018-10-23Update Runner Chart to 0.1.35Tomasz Maczukin
2018-10-23Merge branch 'support-license-management-and-performance' into 'master'Grzegorz Bizon
Support licenses and performance See merge request gitlab-org/gitlab-ce!22175
2018-10-23Merge branch 'lfs-project-attribute-alias' into 'master'Nick Thomas
Alias the lfs_enabled method Closes #49348 See merge request gitlab-org/gitlab-ce!22501
2018-10-23Store version within SUPPORTED_API_GROUPS hashThong Kuah
This removes the ability to pass in a different version. We can instead create a new entry in the SUPPORTED_API_GROUPS hash for a different version if need be.
2018-10-23Update all usages of KubeClientThong Kuah
Find and replace everywhere we pass in `api_groups` to KubeClient, as no longer needed
2018-10-23Resolve "Filter discussion (tab) by comments or activity in issues and merge ↵Oswaldo Ferreira
requests"
2018-10-23Merge branch '42611-removed-branch-link' into 'master'Grzegorz Bizon
Resolve "Removed branch link in pipelines page is broken" Closes #42611 See merge request gitlab-org/gitlab-ce!21451
2018-10-22Merge branch '51716-add-kubernetes-namespace-model' into 'master'Andreas Brandl
Add Clusters::KubernetesNamespace model See merge request gitlab-org/gitlab-ce!22404
2018-10-22Merge branch 'refactor-project-rename-repo' into 'master'Robert Speicher
Move Project#rename_repo to a service class See merge request gitlab-org/gitlab-ce!22419
2018-10-22Alias the lfs_enabled methodCindy Pallares
We currently check for `project.lfs_enabled` to display the state of lfs being enabled/disabled, but this is set to nil by default, even when lfs is enabled. Aliasing the method to #lfs_enabled? will return the correct state.
2018-10-22Add Clusters::KubernetesNamespace modelMayra Cabrera
This model will be used to persist into database Kubernetes properties, such as namespace, service account name and service account token.
2018-10-22Backport rescue in Project#import_url from EEYorick Peterse
EE added a `rescue` to the method Project#import_url, which could cause merge conflicts when changing this method. This commit backports those changes to CE, reducing the chances of running into a merge conflict.
2018-10-22Move Project#rename_repo to a service classYorick Peterse
This moves the logic of Project#rename_repo and all methods _only_ used by this method into a new service class: Projects::AfterRenameService. By moving this code into a separate service class we can more easily refactor it, and we also get rid of some RuboCop "disable" statements automatically. During the refactoring of this code, I removed most of the explicit logging using Gitlab::AppLogger. The data that was logged would not be useful when debugging renaming issues, as it does not add any value on top of data provided by users. I also removed a variety of comments that either mentioned something the code does in literal form, or contained various grammatical errors. Instead we now resort to more clearly named methods, removing the need for code comments. This method was chosen based on analysis in https://gitlab.com/gitlab-org/release/framework/issues/28. In this issue we determined this method has seen a total of 293 lines being changed in it. We also noticed that RuboCop determined the ABC size (https://www.softwarerenovation.com/ABCMetric.pdf) was too great.