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-07-26Merge branch 'remove-nested-groups-checks' into 'master'Lin Jen-Shin
Remove code related to object hierarchy and MySQL Closes #65056 and #65055 See merge request gitlab-org/gitlab-ce!31095
2019-07-26Merge branch 'dm-submodule-links-nil' into 'master'Nick Thomas
Fix error rendering submodules in MR diffs when there is no .gitmodules See merge request gitlab-org/gitlab-ce!31162
2019-07-26Fix error rendering submodules in MR diffs when there is no .gitmodulesDouwe Maan
Without this change, we get a NoMethodError on nil
2019-07-26Merge branch 'print-sidekiq-class-name-in-memory-killer' into 'master'Stan Hu
Logging sidekiq worker class name in SidekiqMemoryKiller See merge request gitlab-org/gitlab-ce!30996
2019-07-25Merge branch 'frozen_string_spec_support' into 'master'Douwe Maan
Add frozen_string_literal to spec/support See merge request gitlab-org/gitlab-ce!31132
2019-07-25Merge branch '54478-table_exists-not-compatible-with-rails-5-1' into 'master'Douglas Barbosa Alexandre
Resolve "table_exists? not compatible with Rails 5.1" Closes #54478 See merge request gitlab-org/gitlab-ce!30832
2019-07-25Merge branch 'refactor-redis-usage-counter-specs' into 'master'Nick Thomas
Refactor usage data counters specs See merge request gitlab-org/gitlab-ce!31013
2019-07-25Frozen string cannot change encodingThong Kuah
This was shown in specs but surely this will be happening in application code as well if this method is passes a frozen string. We were also trying to force_encode a OmniAuth::AuthHash which had the very confusing behaviour of returning nil when it was sent a method that it did not define. Fix that by only force_encoding a String.
2019-07-25Logging sidekiq worker class name in SidekiqMemoryKillerShinya Maeda
Currently, SidekiqMemoryKiller does not feed worker class name in the json structured logging. This commit extends the json parameter.
2019-07-25Remove code related to object hierarchy in MySQLHeinrich Lee Yu
These are not required because MySQL is not supported anymore
2019-07-25Remove unneeded monkey-patchHeinrich Lee Yu
Changes all calls to data_source_exists? to table_exists? since that is the intent of these calls
2019-07-24Add RateLimiter to RawControllerMayra Cabrera
* Limits raw requests to 300 per minute and per raw path. * Add a new attribute to ApplicationSettings so user can change this value on their instance. * Uses Gitlab::ActionRateLimiter to limit the raw requests. * Add a new method into ActionRateLimiter to log the event into auth.log Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/48717
2019-07-24Merge branch 'optimise-import-performance' into 'master'Stan Hu
Optimise import performance Closes #64924 See merge request gitlab-org/gitlab-ce!31045
2019-07-24[ADD] outbound requests whitelistReuben Pereira
Signed-off-by: Istvan szalai <istvan.szalai@savoirfairelinux.com>
2019-07-24Enable tablesample count strategy by defaultAndreas Brandl
https://gitlab.com/gitlab-org/gitlab-ce/issues/58792
2019-07-24Optimise import performanceKamil Trzciński
- Fix `O(n)` complexity of `append_or_update_attribute`, we append objects to an array and re-save project - Remove the usage of `keys.include?` as it performs `O(n)` search, instead use `.has_key?` - Remove the usage of `.keys.first` as it performs a copy of all keys, instead use `.first.first`
2019-07-24Merge branch 'sh-add-rugged-to-peek' into 'master'Sean McGivern
Add Rugged calls to performance bar See merge request gitlab-org/gitlab-ce!30983
2019-07-24LFS export records repository_type dataLuke Duncalfe
A project can have the same `LfsObject` linked with up to three `LfsObjectsProject` records. Each of these records would be for a different repository, recorded in the `repository_type` property. The different repositories at time of writing are "project", "wiki", and "design". See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 This change exports the list of `repository_type`s as a JSON mapping of oid => repository_types, which are imported to recreate the correct `LfsObjectsProject` records. https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
2019-07-24Prefer `flat_map` over `map` + `flatten` in specsPeter Leitzen
Although `flat_map` is equivalent to `map` + `flatten(1)` (note the level 1) we can apply this same refactoring to all cases.
2019-07-24Add Rugged calls to performance barStan Hu
This will help diagnose the source of excessive I/O from Rugged calls. To implement this, we need to obtain the full list of arguments sent to each request method.
2019-07-24Merge branch '52442-initial-mysql-support-removal' into 'master'Robert Speicher
Remove dead mysql code Closes #63191 See merge request gitlab-org/gitlab-ce!29608
2019-07-24Merge branch 'adjust-group-level-analytics-to-accept-multiple-project-ids' ↵Stan Hu
into 'master' Adjust group level analytics to accept multiple projects ids See merge request gitlab-org/gitlab-ce!30744
2019-07-23Remove dead MySQL codeNick Thomas
None of this code can be reached any more, so it can all be removed
2019-07-23Merge branch 'safe-archiving-for-traces' into 'master'Kamil Trzciński
Extra logging for new live trace architecture See merge request gitlab-org/gitlab-ce!30892
2019-07-23Merge branch 'sh-use-shared-state-cluster-pubsub' into 'master'Kamil Trzciński
Use persistent Redis cluster for Workhorse pub/sub notifications See merge request gitlab-org/gitlab-ce!30990
2019-07-23Merge branch 'georgekoltsov/64377-add-better-log-msg-to-members-mapper' into ↵Ash McKenzie
'master' Add better error message to MembersMapper#ensure_default_member! See merge request gitlab-org/gitlab-ce!30838
2019-07-23Validate the existence of archived traces before removing live traceShinya Maeda
Often live traces are removed even though the archived trace doesn't exist. This commit checkes the existence strictly.
2019-07-23Add code review remarksMałgorzata Ksionek
Add cr remarks Improve specs according to the review Fix schema Add cr remarks Fix naming Add cr remarks
2019-07-23Add basic project extractionMałgorzata Ksionek
To allow project filtering Prepare summary for accepting multiple groups Modify deploys group summary class Add filtering by project name in issues summary Fix rubocop offences Add changelog entry Change name to id in project filtering Fix rebase problem Add project extraction
2019-07-23Bring backward compatibility for request profilesKamil Trzciński
It seems that we missed the backward compatibility support for profiles in the existing folder. This commit also fixes some specs to be idempotent and work in a temporary directory which not always seems to be the case. This commit also brings the profile_spec.rb which seems to be missing.
2019-07-23Refactor usage data counters specsAlex Kalderimis
This makes these tests available for other implementations
2019-07-22Merge branch 'resolve-remaining-import-export-differences' into 'master'Robert Speicher
Resolve remaining import export differences See merge request gitlab-org/gitlab-ce!31012
2019-07-22Use persistent Redis cluster for Workhorse pub/sub notificationsStan Hu
Previously, in Omnibus, Workhorse expected to listen via the Redis shared state cluster for the `workhorse:notifications` publish/subscribe channel, but the Rails code was using the Sidekiq queue cluster for this. To fix this inconsistency, we make the Rails code use the persistent cluster, since we don't want Workhorse to be looking at anything Sidekiq-related.
2019-07-22Backport import/export spec changes from EEYorick Peterse
This backports remaining import/export spec changes from EE to CE.
2019-07-22Backport project.json fixture from EEYorick Peterse
This backports all changes made to an import/export fixture file from EE to CE.
2019-07-22Remove duplicate entry from all_models.ymlYorick Peterse
This line is already present further down in the YAML file. In EE the line is already removed.
2019-07-22OAuth2 support for GitLab personal access tokensSteve Abrams
PATs are accepted using the OAuth2 compliant header "Authorization: Bearer {token}" in order to allow for OAuth requests while 2FA is enabled.
2019-07-21Count wiki page creationAlex Kalderimis
This adds a counter to count page creation, which is reflected in the usage-data we collect. The number created is stored in Redis, avoiding DB access.
2019-07-19Merge branch 'sh-fix-gitaly-server-info-cache' into 'master'Mayra Cabrera
Fix Gitaly auto-detection caching Closes #64802 See merge request gitlab-org/gitlab-ce!30954
2019-07-19Document database review processToon Claes
See https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6069
2019-07-19Avoid increasing redis counters when usage_ping is disabledFrancisco Javier López
2019-07-19Fix Gitaly auto-detection cachingStan Hu
If `GitalyClient#can_use_disk?` returned `false`, it was never cached properly and led to excessive number of Gitaly calls. Instead of using `cached_value.present?`, we need to check `cached_value.nil?`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64802
2019-07-19Adjust redis cache metricsBen Kochie
* Remove `controller` and `action` labels from duration histogram. * Create a new simple counter for `controller` and `action`. * Adjust histogram buckets to observe smaller response times.
2019-07-19Added Usage Data for some Web IDE actionsFrancisco Javier López
The actions tracked in the web IDE are: - creation of commits - creation of merge requests - projects loaded
2019-07-19Merge branch '64295-predictable-environment-slugs' into 'master'Lin Jen-Shin
Use predictable environment slugs See merge request gitlab-org/gitlab-ce!30551
2019-07-19Set Private visibility for restricted Internal imported projectsGeorge Koltsov
With https://gitlab.com/gitlab-org/gitlab-ee/issues/12388 change going live there is potential risk of breaking imports of 'Internal' projects. This change makes sure if 'Internal' visibility level is restricted all 'Internal' projects will be marked as 'Private' See: https://gitlab.com/gitlab-org/gitlab-ce/issues/64311
2019-07-19Introduce predictable environment slugsTiger
If an environment slug is predictable given only the environment name, we can use the environment slug earlier in the CI variable evaluation process as we don't have to wait for the environment record itself to be persisted.
2019-07-18Improves add_timestamps_with_timezone helperAlex Kalderimis
This improves the `add_timestamps_with_timezone` helper by allowing the column names to be configured. This has the advantage that unnecessary columns can be avoided, saving space. A helper for removing the columns is also provided, to be used in the `down` method of migrations.
2019-07-18Merge branch 'sh-add-rugged-logs' into 'master'Douglas Barbosa Alexandre
Add Rugged calls and duration to API and Rails logs Closes #64676 See merge request gitlab-org/gitlab-ce!30871
2019-07-18Add Rugged calls and duration to API and Rails logsStan Hu
This adds `rugged_duration_ms` and `rugged_calls` fields to `api_json.log` and `production_json.log`. This will make it easier to identify performance issues caused by excessive I/O. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64676