summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-081-9/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-071-63/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-041-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-262-12/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-241-98/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-204-83/+50
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-193-38/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-184-5/+5
|
* Add rake task `db:obsolete_ignored_columns`Peter Leitzen2019-09-111-0/+21
| | | | Show a list of obsolete `ignored_columns`
* Avoid calling freeze on already frozen strings in libDinesh Panda2019-09-102-3/+3
|
* Add new GitlabDanger classAsh McKenzie2019-09-061-0/+17
| | | | This class encapsulates our use of the Danger gem.
* Revert "Merge branch '66596-allow-danger-to-be-run-locally' into 'master'"revert-351d72cbAsh McKenzie2019-09-061-17/+0
| | | This reverts merge request !32196
* Add new danger_local Rake taskAsh McKenzie2019-09-061-0/+17
| | | | | | | The benefit of running the danger_local Rake task is that it displays some informational messages for clarity and also exits with 1 if there's any output.
* Merge branch 'security-personal-snippets' into 'master'GitLab Release Tools Bot2019-08-291-2/+4
|\ | | | | | | | | Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3226
| * Add direct upload support for personal snippetsJan Provaznik2019-08-231-2/+4
| |
* | Move visual review toolbar to NPMshampton2019-08-231-6/+0
| | | | | | | | | | Remove the visual review toolbar code in favor of using the NPM package.
* | Merge branch 'legacy-attachments-migrate-fix' into 'master'Michael Kozono2019-08-161-0/+27
|\ \ | | | | | | | | | | | | Migrate legacy uploads rake tasks See merge request gitlab-org/gitlab-ce!29409
| * | Add rake tasks for migrating leacy uploadslegacy-attachments-migrate-fixJarka Košanová2019-08-161-0/+27
| | | | | | | | | | | | | | | - move uploads created by AttachmentUploader - handle also files created for legacy_diff_notes
* | | Squash project templates on updateHordur Freyr Yngvason2019-08-151-14/+37
| |/ |/| | | | | | | | | | | As per https://gitlab.com/gitlab-org/gitlab-ce/issues/46043, project templates should be squashed before updating, so that repositories created from these templates don't include the full history of the backing repository.
* | Make ruby 2.6 the officially supported versionHordur Freyr Yngvason2019-08-141-1/+1
|/
* Fix broken update_project_templates rake taskHordur Freyr Yngvason2019-07-301-17/+45
| | | | | | This rake task had been broken for a while. This fixes the breakages, adds a test to help avoid future breakages, and adds a few ergonomic improvements to the task itself.
* Merge branch 'resolve-scripts-differences' into 'master'Lin Jen-Shin2019-07-291-0/+8
|\ | | | | | | | | Backport EE changes made to the scripts/ directory See merge request gitlab-org/gitlab-ce!31015
| * Backport EE changes made to the scripts/ directoryresolve-scripts-differencesYorick Peterse2019-07-291-0/+8
| | | | | | | | | | | | This backport changes made by EE to the files in the scripts/ directory. This comes with a few changes to some scripts to make them work in the single codebase setup.
* | Further remove code branches by database typeAndreas Brandl2019-07-291-2/+0
|/ | | | | | | | We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches.
* Remove unneeded monkey-patch54478-table_exists-not-compatible-with-rails-5-1Heinrich Lee Yu2019-07-251-1/+1
| | | | | Changes all calls to data_source_exists? to table_exists? since that is the intent of these calls
* Merge branch 'cleanup/spec-tasks' into 'master'Douwe Maan2019-07-241-60/+3
|\ | | | | | | | | Resolves confusion within spec rake tasks. See merge request gitlab-org/gitlab-ce!31073
| * Resolves confusion within spec rake taskscleanup/spec-tasksJeremy Jackson2019-07-231-60/+3
| |
* | Remove dead MySQL codeNick Thomas2019-07-233-28/+3
|/ | | | None of this code can be reached any more, so it can all be removed
* Rake task to cleanup expired ActiveSession lookup keysif-64257-active_session_lookup_key_cleanupImre Farkas2019-07-221-0/+52
| | | | | | | In some cases ActiveSession.cleanup was not called after authentication, so for some user ActiveSession lookup keys grew without ever cleaning up. This Rake task manually iterates over the lookup keys and removes ones without existing ActiveSession.
* Move frontend fixtures into spec/frontendMike Greiling2019-07-191-1/+1
| | | | | Moves every fixture source file from spec/javascripts to spec/frontend
* Rename the karma:fixtures taskMike Greiling2019-07-192-9/+23
| | | | | | Introduces frontend:fixtures rake task to replace karma:fixtures and update documentation and CI scripts to match
* Merge branch 'jc-fix-rugged-feature-flag-rake' into 'master'Stan Hu2019-07-161-3/+11
|\ | | | | | | | | | | | | Add unset_rugged rake task Closes #64441 See merge request gitlab-org/gitlab-ce!30636
| * Add unset_rugged rake taskjc-fix-rugged-feature-flag-rakeJohn Cai2019-07-111-3/+11
| | | | | | | | | | | | Adds an unset_rugged rake task that unsets all rugged feature flags. Also fixes the existing disable_rugged task to have it explicitly disable feature flags instead of just unsetting them.
* | Allow parameters for rake gitlab:seed:issuesbw-enhance-rake-seedBrett Walker2019-07-151-2/+5
| | | | | | | | to specify backfill_weeks and average_issues_per_week
* | Merge branch '63667-hashed-storage-migration-count-correctly' into 'master'Douglas Barbosa Alexandre2019-07-111-48/+36
|\ \ | |/ |/| | | | | | | | | Display the amount for Hashed Storage migration/rollback correctly Closes #63667 See merge request gitlab-org/gitlab-ce!29996
| * Display the amount for Hashed Storage migration/rollback correctly63667-hashed-storage-migration-count-correctlyGabriel Mazetto2019-07-101-48/+36
| | | | | | | | | | Rake script considers the specified range, if present, to calculate the affected amount of projects correctly.
* | Improve Graphql DocsFelipe Artur2019-07-111-0/+26
|/ | | | Adds more friendly docs for GraphQl implementation
* Add a rubocop for Rails.loggerMayra Cabrera2019-07-101-0/+2
| | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* Prefer offline install for yarnLukas Eipert2019-07-021-1/+1
|
* Remove migrations from setup_postgresqlNick Thomas2019-07-021-14/+0
|
* Merge branch 'tc-rake-orphan-artifacts' into 'master'Dmitriy Zaporozhets2019-07-011-0/+25
|\ | | | | | | | | Add rake task to clean orphan artifact files See merge request gitlab-org/gitlab-ce!29681
| * Add rake task to clean orphan artifact filestc-rake-orphan-artifactsToon Claes2019-06-281-0/+25
| | | | | | | | | | | | | | | | | | | | | | This adds the rake task rake gitlab:cleanup:orphan_job_artifact_files. This rake task cleans all orphan job artifact files it can find on disk. It performs a search on the complete folder of all artifacts on disk. Then it filters out all the job artifact ID for which it could not find a record with matching ID in the database. For these, the file is deleted from disk.
* | Update comments and docs around min schema versionDJ Mountney2019-06-251-1/+1
| | | | | | | | | | | | Fixed some spelling Dropped rake task description for a prefix only task Added note on skipping the check to the postgres debugging dev doc
* | Drop the source upgrade changeDJ Mountney2019-06-251-0/+2
| | | | | | | | We no longer need to point people away from using db:migrate
* | Add an flag for skipping the schema version checkDJ Mountney2019-06-251-0/+2
| | | | | | | | | | | | If you chose to use the rollback migration feature on your current version for example, you should still have a way to migrate, being that you are still on a supported migration path.
* | Fix db:migrate for fresh installsDJ Mountney2019-06-251-1/+6
| |
* | Move min schema version check to db:migrateDJ Mountney2019-06-252-4/+11
| | | | | | | | | | Rather than have it checked only as part of gitlab:db:configure, we will instead have it as a pre-req for every db:migrate command
* | Check supported version when migratingDJ Mountney2019-06-251-0/+4
|/ | | | | | Set the mininum supported migration version to be the schema version as of 11.11.0, and errors you if that is not detected during gitlab:db:configure
* Silence backup warnings when CRON=1 in useStan Hu2019-06-251-2/+2
| | | | | | | If CRON=1 is in use, we shouldn't generate any output or admins may be notified via e-mail about unnecessary warnings. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63703
* Backport the EE schema and migrations to CEYorick Peterse2019-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This backports all EE schema changes to CE, including EE migrations, ensuring both use the same schema. == Updated tests A spec related to ghost and support bot users had to be modified to make it pass. The spec in question assumes that the "support_bot" column exists when defining the spec. In the single codebase setup this is not the case, as the column is backported in a later migration. Any attempt to use a different schema version or use of "around" blocks to conditionally disable specs won't help, as reverting the backport migration would also drop the "support_bot" column. Removing the "support_bot" tests entirely appears to be the only solution. We also need to update some foreign key tests now that we have backported the EE columns. Fortunately, these changes are very minor. == Backporting migrations This commit moves EE specific migrations (except those for the Geo tracking database) and related files to CE, and also removes any traces of the ee/db directory. Some migrations had to be modified or removed, as they no longer work with the schema being backported. These migrations were all quite old, so we opted for removing them where modifying them would take too much time and effort. Some old migrations were modified in EE, while also existing in CE. In these cases we took the EE code, and in one case removed them entirely. It's not worth spending time trying to merge these changes somehow as we plan to remove old migrations around the release of 12.0, see https://gitlab.com/gitlab-org/gitlab-ce/issues/59177 for more details.