summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Create models for issue trackers data58886-issue-tracker-fieldsJarka Košanová2019-06-133-0/+80
| | | | | - create tables for storing issue trackers properties - add model and basic logic & spec
* Revert "Merge branch '50070-legacy-attachments' into 'master'"sh-revert-mr-24679Stan Hu2019-06-091-32/+0
| | | | | This reverts commit fd19f887dfeeeedb483c4a4fb32f9f768e89389c, reversing changes made to abb2d4c601d796339c8d7cb0c00946696730f198.
* Merge branch '62418-project-default-git-depth' into 'master'Kamil Trzciński2019-06-072-0/+12
|\ | | | | | | | | | | | | Add project level git depth setting Closes #59688 See merge request gitlab-org/gitlab-ce!28919
| * Add project level git depth settingKrasimir Angelov2019-06-062-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce default_git_depth in project's CI/CD settings and set it to 50. Use it if there is no GIT_DEPTH variable specified. Apply this default only to newly created projects and keep it nil for old ones in order to not break pipelines that rely on non-shallow clones. default_git_depth can be updated from CI/CD Settings in the UI, must be either nil or integer between 0 and 1000 (incl). Inherit default_git_depth from the origin project when forking projects. MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it contains unique commit (i.e. merge commit) which doesn't exist in the other branch/tags refs. We need to add it cause otherwise it may break pipelines for old projects that have already enabled Pipelines for merge results and have git depth 0. Document new default_git_depth project CI/CD setting
* | Merge branch '50070-legacy-attachments' into 'master'Kamil Trzciński2019-06-071-0/+32
|\ \ | | | | | | | | | | | | | | | | | | Migrate legacy uploads Closes #57217 See merge request gitlab-org/gitlab-ce!24679
| * | Migrate legacy uploads to the project location50070-legacy-attachmentsJarka Košanová2019-06-061-0/+32
| | | | | | | | | | | | | | | | | | Uploads coming from AttachmentUploader need to be moved to the currently supported location (FileUploader)
* | | Add certificate valid time to pages domain tableVladimir Shushlin2019-06-063-0/+52
| | | | | | | | | | | | | | | Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
* | | Add pages domains acme ordersVladimir Shushlin2019-06-062-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract acme double to helper Create ACME challanges for pages domains * Create order & challange through API * save them to database * request challenge validation We're saving order and challenge as one entity, that wouldn't be correct if we would order certificates for several domains simultaneously, but we always order certificate per domain Add controller for processing acme challenges redirected from pages Don't save acme challenge url - we don't use it Validate acme challenge attributes Encrypt private_key in acme orders
* | | Revert "Merge branch 'pages-domain_ssl-valid-period' into 'master'"revert-a05f86ceNick Thomas2019-06-063-52/+0
|/ / | | | | This reverts merge request !28743
* | Add certificate valid time to pages domain tableVladimir Shushlin2019-06-063-0/+52
|/ | | | | Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
* Merge dev.gitlab.org master into GitLab.com masterYorick Peterse2019-06-032-0/+24
|\
| * Add DNS rebinding protection settingsOswaldo Ferreira2019-05-302-1/+25
| |
* | Fix migration failure when groups are missing routesh-fix-issue-58714Stan Hu2019-06-011-0/+1
| | | | | | | | | | | | | | | | | | | | When a Group is missing a route, the migration failed previously with a `Invalid single-table inheritance type` error. To fix this, we can disable STI for the migration class because we don't need to know about the type to do this migration. Besides, currently Group is the only type used in the type column. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58714
* | Merge branch 'osw-reset-merge-status-from-mergeable-mrs' into 'master'Douglas Barbosa Alexandre2019-05-313-1/+53
|\ \ | | | | | | | | | | | | Reset merge status from mergeable MRs See merge request gitlab-org/gitlab-ce!28843
| * | Reset merge status from mergeable MRsOswaldo Ferreira2019-05-313-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | Adds migrations to reset the merge_status of opened, mergeable MRs. That's required by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28513 so we're able to sync the status update along merge-ref, without leaving MRs with a stale merge-ref.
* | | Merge branch '56959-drop-project_auto_devops_domain' into 'master'Robert Speicher2019-05-312-1/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Removes project_auto_devops#domain column Closes #56959 See merge request gitlab-org/gitlab-ce!28574
| * | | Postmigrate to drop domain column56959-drop-project_auto_devops_domainThong Kuah2019-05-312-1/+11
| |/ / | | | | | | | | | Now that the column is ignored, we can safely drop the column
* | | Add notification_email to NotificationSettingWei-Meng Lee2019-05-312-0/+12
| | |
* | | Change query to work on mysql as well. Also set entire date because setting ↵Luke Picciau2019-05-311-0/+38
| | | | | | | | | | | | only the year can trip 'start_date_should_be_less_than_due_date'
* | | Remove nils from project_statistics.packages_sizeAlessio Caiazza2019-05-312-1/+25
| | | | | | | | | | | | Now it defaults to 0
* | | Generate lets_encrypt_private_key on the flyVladimir Shushlin2019-05-311-16/+1
|/ / | | | | | | | | | | | | | | | | Remove migration generating lets encrypt key Don't generate private_key if database is readonly For reference: This reverts commit 988a7f70489b99383b95e9f271a2caf6bb5b3a44. This reverts commit 21acbe531592d55caf0e5b8716a3b551dafd6233.
* | Add wiki size to project statisticsPeter Marko2019-05-293-1/+43
|/
* Store Let's Encrypt private key in settingsVladimir Shushlin2019-05-283-1/+52
| | | | | | | | | | | | | | | | Storing this key in secrets.yml was a bad idea, it would require users using HA setups to manually replicate secrets across nodes during update, it also needed support from omnibus package * Revert "Generate Let's Encrypt private key" This reverts commit 444959bfa0b79e827a2a1a7a314acac19390f976. * Add Let's Encrypt private key to settings as encrypted attribute * Generate Let's Encrypt private key in database migration
* Added filtering jobs by age to jobs/request API endpointDmitry Chepurovskiy2019-05-202-1/+21
|
* Fix typos in the whole gitlab-ce projectYoginth2019-05-201-1/+1
|
* Merge branch 'pl-fix-warning' into 'master'Andreas Brandl2019-05-171-2/+0
|\ | | | | | | | | Remove duplicate definition of DOWNTIME See merge request gitlab-org/gitlab-ce!28294
| * Remove duplicate definition of DOWNTIMEpl-fix-warningPeter Leitzen2019-05-131-2/+0
| | | | | | | | | | | | | | | | This silences the warning: 20190301081611_migrate_project_migrate_sidekiq_queue.rb:8: warning: already initialized constant MigrateProjectMigrateSidekiqQueue::DOWNTIME
* | Add extra checks for ci_id migrationDmitriy Zaporozhets2019-05-171-2/+7
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'ce-2087-make-num-shards-configurable' into 'master'Sean McGivern2019-05-162-1/+13
|\ \ | | | | | | | | | | | | CE backport of "Configure the number of ES shards and replicas" See merge request gitlab-org/gitlab-ce!28329
| * | CE backport of "Configure the number of ES shards and replicas"Nick Thomas2019-05-162-1/+13
| |/
* | Fix. db:migrate is failed on MySQL 8sue4452019-05-161-1/+2
|/ | | | | | | | ``` StandardError: An error has occurred, all later migrations canceled: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system = true AND note LIKE '\_%\_'' at line 1: UPDATE notes SET note = trim(both '_' from note) WHERE system = true AND note LIKE '\_%\_' ```
* Merge branch 'ce-9688-mr-merge-order' into 'master'Ash McKenzie2019-05-082-0/+36
|\ | | | | | | | | CE backport of merge request blocks - backend MVC See merge request gitlab-org/gitlab-ce!27323
| * Backport of initial merge request blocks supportce-9688-mr-merge-orderNick Thomas2019-05-032-0/+36
| |
* | Added user time settings fields to profileEzekiel Kigbo2019-05-072-0/+27
| | | | | | | | | | | | Udpated user_edit_profile_spec with time preferences Minor update form fields
* | Fix issuables state_id nil when importing projects from GitHubFelipe Artur2019-05-063-1/+98
| | | | | | | | | | | | Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
* | Implement support for CI variables of type fileKrasimir Angelov2019-05-065-0/+72
| | | | | | | | | | | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* | Create ActiveRecordModel and table for Merge Train featureShinya Maeda2019-05-062-0/+32
| | | | | | | | | | This database table and AR model is going to be used for the merge train feature.
* | Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-1/+0
|/
* Merge branch '27777-drop-projects-ci_id-column' into 'master'Douglas Barbosa Alexandre2019-05-022-2/+28
|\ | | | | | | | | | | | | Resolve "Drop "projects"."ci_id" column" Closes #27777 See merge request gitlab-org/gitlab-ce!27623
| * Remove unused projects.ci_id column27777-drop-projects-ci_id-columnDmitriy Zaporozhets2019-05-022-2/+28
| | | | | | | | | | | | And remove Gitlab::Ci::Trace#deprecated_path as it relies on ci_id Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add packages_size to ProjectStatisticsAlessio Caiazza2019-05-022-0/+12
| | | | | | | | | | This new field will allow to keep track of the storage used by the packages features, it provides also aggregation at namespace level.
* | Merge branch '9932-fix-deprecated-attribute_changed-ce' into 'master'Andreas Brandl2019-05-021-7/+0
|\ \ | |/ |/| | | | | [CE] Remove deprecated usage of `attribute_changed?` See merge request gitlab-org/gitlab-ce!27577
| * Remove deprecated uses of attribute_changed?9932-fix-deprecated-attribute_changed-ceHeinrich Lee Yu2019-04-301-7/+0
| | | | | | | | Prepares us for upgrade to Rails 5.2
* | Add project level config for merge trainadd-project-level-config-for-merge-train-ceShinya Maeda2019-04-302-0/+18
|/ | | | We add the option and expose the parameter for frontend work
* Add Let's Encrypt application settingsVladimir Shushlin2019-04-273-0/+38
| | | | | Store Let's Encrypt account email in application settings Also add explicit terms of service consent
* Add deployment events to chat notification servicesJason Goodman2019-04-262-1/+19
| | | | | This enables sending a chat message to Slack or Mattermost upon a successful, failed, or canceled deployment
* Add ProjectMetricsDashboardSetting model and tableReuben Pereira2019-04-262-1/+20
| | | | | | This new table will be used to store the external_dashboard_url which allows users to add a link to their external dashboards (ex Grafana) to the Metrics dashboard.
* Merge branch ↵Michael Kozono2019-04-231-19/+1
|\ | | | | | | | | | | | | 'ce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-project' into 'master' Provide a new gitlab:seed:issues task See merge request gitlab-org/gitlab-ce!27454
| * Provide a new gitlab:seed:issues taskce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-projectRémy Coutable2019-04-231-19/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'upgrade-to-rails-5-1' into 'master'Rémy Coutable2019-04-232-146/+146
|\ \ | | | | | | | | | | | | Upgrade Rails to 5.1 See merge request gitlab-org/gitlab-ce!27480