summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Add default for outbound_local_requests_whitelistThong Kuah2019-07-252-2/+32
| | | | It needs to default to an empty array logically.
* Enable Rubocop Performance/ReverseEachsh-rubocop-reverse-eachStan Hu2019-07-241-1/+1
| | | | | | | `Array.reverse_each` is faster than `Array.reverse.each` because: * reverse.each creates a new array then loops each element * reverse_each loops in reverse order (no intermediate array created)
* Merge branch 'ce-docker_image_replication-event-generation' into 'master'Douglas Barbosa Alexandre2019-07-244-0/+68
|\ | | | | | | | | Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14597 See merge request gitlab-org/gitlab-ce!30520
| * Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14597ce-docker_image_replication-event-generationValery Sizov2019-07-244-0/+68
| | | | | | | | | | This is the first part of Docker Registry replication for secondary Geo node.
* | Add RateLimiter to RawControllerMayra Cabrera2019-07-242-1/+11
| | | | | | | | | | | | | | | | | | | | * 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
* | [ADD] outbound requests whitelistReuben Pereira2019-07-242-0/+10
|/ | | | Signed-off-by: Istvan szalai <istvan.szalai@savoirfairelinux.com>
* Merge branch '52442-initial-mysql-support-removal' into 'master'Robert Speicher2019-07-2316-179/+14
|\ | | | | | | | | | | | | Remove dead mysql code Closes #63191 See merge request gitlab-org/gitlab-ce!29608
| * Remove dead MySQL codeNick Thomas2019-07-2316-179/+14
| | | | | | | | None of this code can be reached any more, so it can all be removed
* | Remove PostgreSQL opclasses monkey patchsh-remove-opclasses-patchStan Hu2019-07-233-682/+682
|/ | | | | | | | | | | This is no longer needed with Rails 5.2. opclass is the attribute used per https://github.com/rails/rails/pull/19090/files. Now that we've removed the monkey patch and restored the Rails schema dumper, it appears Rails has dropped the inclusion of `using: :btree` as well (https://github.com/rails/rails/pull/27981). Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64529
* Merge branch 'bw-add-index-for-relative-position' into 'master'Nick Thomas2019-07-232-0/+21
|\ | | | | | | | | Add index for issues on relative position, project, and state for manual sorting See merge request gitlab-org/gitlab-ce!30542
| * Add index for issues on relative position, projectbw-add-index-for-relative-positionBrett Walker2019-07-222-0/+21
| | | | | | | | and state
* | CE pipelines don't respond to sourced_pipelinesrs-fixtures-parityRobert Speicher2019-07-221-3/+3
| | | | | | | | | | We also scope the `rescue`s to only those raised by ActiveRecord, which would have allowed us to spot this logic error sooner.
* | CE-EE parity for pipelines development fixtureRobert Speicher2019-07-221-1/+13
|/
* Apply recomended changes from merge coachFabio Papa2019-07-191-1/+0
|
* Apply changes recomended by merge request coachFabio Papa2019-07-192-11/+6
|
* Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-0/+1
| | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* Style rules; Revert some examplesFabio Papa2019-07-191-2/+5
|
* Update schemaFabio Papa2019-07-191-0/+1
|
* Add a subgroup_creation_level column to the namespaces tableFabio Papa2019-07-191-0/+20
|
* Add rule_type to approval_project_rulesLucas Charles2019-07-173-0/+36
| | | | | Adds migration to introduce non-regular rule_types to approval_project_rules
* Fix wrong pages access level defaultVladimir Shushlin2019-07-173-2/+42
| | | | | - Set access level in before_validation hook - Add post migration for updating existing project_features
* Migrate null values for users.private_profileAdam Hegyi2019-07-152-1/+34
| | | | | - Background migration for changing null values to false - Set false as default value for private_profile DB column
* Reorder fields in boards schema to match EEsh-reorder-boards-schema-dbStan Hu2019-07-151-2/+2
| | | | This eliminates conflicts between CE and EE db/schema.rb files.
* Reorder application settings in db/schema.rb to match EEsh-reorder-application-settingsStan Hu2019-07-141-44/+44
| | | | | This makes the CE and EE tables consistent and ensures changes in the schema for the CE version don't cause conflicts with EE.
* Merge branch 'id-clean-up-mr-assignees-migration' into 'master'Andreas Brandl2019-07-121-0/+20
|\ | | | | | | | | Add cleanup migration for MR's multiple assignees See merge request gitlab-org/gitlab-ce!30269
| * Add cleanup migration for MR's mutliple assigneesid-clean-up-mr-assignees-migrationIgor Drozdov2019-07-091-0/+20
| | | | | | | | | | | | | | The migration steals the remaining background jobs of populating MRs with assignees, executes them synchronously and then makes sure that all the assignees are migrated
* | Merge branch 'bvl-rename-routes-after-user-rename' into 'master'Jan Provaznik2019-07-121-0/+48
|\ \ | | | | | | | | | | | | Set the name of a user-namespace to the user name See merge request gitlab-org/gitlab-ce!23272
| * | Fix incorrect namespaces & route for user-routesBob Van Landuyt2019-07-091-0/+48
| |/ | | | | | | | | | | | | | | This fixes the `Namespace#name` and `Route#name` for all user namespaces and their personal projects in case they don't match the user name anymore. More info info in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23272
* | Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-2/+2
| | | | | | | | Updates changed method names and fixes spec failures
* | Add a rubocop for Rails.loggerMayra Cabrera2019-07-101-2/+2
| | | | | | | | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* | Rename Gitlab::Importers moduleRyan Cobb2019-07-096-6/+6
| | | | | | | | | | In order to avoid confusion between Gitlab::Importers module and other like named modules, this renamed it to Gitlab::DatabaseImporters.
* | Remove CommonMetricsImporter patchRyan Cobb2019-07-097-27/+6
| | | | | | | | | | | | Remove CommonMetricsImporter patch and change all references to CommonMetrics::Importer. Move specs into their appropriate folders. Also cleans up some common_metric importer namespacing.
* | Move importers to lib folderRyan Cobb2019-07-095-139/+8
| | | | | | | | | | This moves our metric importers into the lib folder. This will allow them to be autoloaded instead of having to explicitly require them.
* | Refactor common metrics importerRyan Cobb2019-07-095-105/+140
|/ | | | | | | This refactors common metrics importer for two reasons. 1. To create a new pattern that can be followed by future importers that will minimize dependency collision and 2. To allow EE to more easily extend dependencies.
* Merge branch 'ce-10283-notifications-for-ci-minutes-quota-limit-approaching' ↵James Lopez2019-07-052-0/+10
|\ | | | | | | | | | | | | into 'master' Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14328 See merge request gitlab-org/gitlab-ce!30003
| * Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14328ce-10283-notifications-for-ci-minutes-quota-limit-approachingRubén Dávila2019-07-052-0/+10
| |
* | Merge branch 'zj-remove-stale-feature-flag-keys' into 'master'Andreas Brandl2019-07-052-1/+49
|\ \ | | | | | | | | | | | | Remove unused Gitaly feature flags See merge request gitlab-org/gitlab-ce!30302
| * | Remove unused Gitaly feature flagsZeger-Jan van de Weg2019-07-042-1/+49
| | | | | | | | | | | | | | | | | | | | | When GitLab was migrating to Gitaly, feature flags were used. These are now out of use, and essentially a no-op. But they do make the output of chatops ugly and the feature table is selected in full by the application.
* | | Fix call to removed GitPushServicece-12464-remove-gitpushserviceMarkus Koller2019-07-041-5/+7
| |/ |/|
* | Allow asynchronous rebase operations to be monitoredNick Thomas2019-07-042-0/+10
| | | | | | | | | | | | | | | | | | This MR introduces tracking of the `rebase_jid` for merge requests. As with `merge_ongoing?`, `rebase_in_progress?` will now return true if a rebase is proceeding in sidekiq. After one release, we should remove the Gitaly-based lookup of rebases. It is much better to track this kind of thing via the database.
* | Add Grafana to Admin > Monitoring menu when enabledManeschi Romain2019-07-033-0/+38
|/
* Merge branch '44990-remove-old-i' into 'master'Nick Thomas2019-07-031-19/+0
|\ | | | | | | | | Remove old migration specs that violate FactoriesInMigrationSpecs See merge request gitlab-org/gitlab-ce!30280
| * Remove old migrations and specs44990-remove-old-iHeinrich Lee Yu2019-07-031-19/+0
| | | | | | | | | | This removes old migrations that violate the FactoriesinMigrationSpecs cop
* | Show upcoming status for releasesJason Goodman2019-07-033-1/+31
|/ | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
* Add username to deploy tokensKrasimir Angelov2019-07-022-0/+10
| | | | | | | | | This new attribute is optional and used when set instead of the default format `gitlab+deploy-token-#{id}`. Empty usernames will be saved as null in the database. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/50228.
* Merge branch '63690-issue-trackers-title' into 'master'Dmitriy Zaporozhets2019-07-022-0/+15
|\ | | | | | | | | | | | | Use title and description fields for issue trackers Closes #63690 See merge request gitlab-org/gitlab-ce!30096
| * Use title and description fields for issue trackers63690-issue-trackers-titleJarka Košanová2019-07-022-0/+15
| | | | | | | | | | - instead of using properties - backward compatibility has to be kept for now
* | Bring the InitSchema migration up to standardNick Thomas2019-07-021-1/+11
| |
* | Squash old migrationsNick Thomas2019-07-02815-17821/+1844
| | | | | | | | Use the `squasher` gem to squash migrations older than the start of 2018
* | Add Migration for Strategies Column on operations_feature_flag_scopesJason Goodman2019-07-012-1/+19
| |