summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Show description of 'gettext:regenerate' taskbw-gettext-rake-taskBrett Walker2019-06-071-0/+1
|
* Merge branch 'gitaly-version-v1.43.0' into 'master'Bob Van Landuyt2019-05-311-12/+0
|\ | | | | | | | | Upgrade Gitaly to v1.43.0 See merge request gitlab-org/gitlab-ce!28867
| * Remove hook directory requirement from Shellgitaly-version-v1.43.0Zeger-Jan van de Weg2019-05-301-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | It used to be the case that GitLab created symlinks for each repository to one copy of the Git hooks, so these ran when required. This changed to set the hooks dynamically on Gitaly when invoking Git. The side effect is that we didn't need all these symlinks anymore, which Gitaly doesn't create anymore either. Now that means that the tests in GitLab-Rails should test for it either. Related: https://gitlab.com/gitlab-org/gitaly/issues/1392#note_175619926
* | Build visual_review_toolbar with webpackSarah Groff Hennigh-Palermo2019-05-291-0/+6
|/ | | | It takes a lot of lines to move a script
* Revert "Merge branch 'revert-04c3c6dd' into 'master'"Rémy Coutable2019-05-221-14/+30
| | | | | This reverts commit 744f1f2e7037f5c70c3168d9e2e89b1c327465d2, reversing changes made to c4d930e5f54e7da07c80cc028dfc0f5c08719146.
* Revert "Merge branch 'reorganize-tests-jobs-by-level' into 'master'"revert-04c3c6ddKamil Trzciński2019-05-221-30/+14
| | | This reverts merge request !27514
* Merge branch 'reorganize-tests-jobs-by-level' into 'master'Kamil Trzciński2019-05-221-14/+30
|\ | | | | | | | | Reorganize test jobs by level See merge request gitlab-org/gitlab-ce!27514
| * Reorganize test jobs by levelreorganize-tests-jobs-by-levelRémy Coutable2019-05-201-14/+30
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Move files from lib/haml_lint to haml_lintsh-fix-linter-registry-hamlStan Hu2019-05-211-1/+1
|/ | | | | | | Files in lib will be eager loaded and hence will require haml_lint to be loaded. Since this is only a development dependency, we can't assume this gem will be available in production, so it should never be loaded in production.
* Avoid pipes so it doesn't overflow61432-lib-tasks-lint-rake-can-block-indefinitely-if-stderr-fills-upLin Jen-Shin2019-05-181-26/+9
|
* delete feature flag when disabling RuggedBen Bodenmiller2019-05-131-1/+1
|
* Add warning that gitlab-secrets isn't includedadd-warning-to-backup-rake-taskCindy Pallares2019-05-081-0/+8
| | | | | | Many customers forget to include the gitlab-secrets.json file. This adds a warning that both gitlab-secrets.json and gitlab.rb are not included in the backup.
* Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-1/+1
|
* Revert changes in lib/tasks/lint.rakeStan Hu2019-05-051-2/+15
|
* Remove stdout/stderr capture in static-analysisStan Hu2019-05-051-15/+1
|
* Add logging for time and lint startStan Hu2019-05-051-0/+1
|
* Provide a new gitlab:seed:issues taskce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-projectRémy Coutable2019-04-231-0/+34
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil Trzciński2019-04-151-1/+1
| | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* Removed also the in the meanwhile introduced rake taskTim Zallmann2019-04-101-9/+1
|
* Revert "Merge branch 'tz-reorganise-digests-json' into 'master'"tz-revert-new-emojis-loadingTim Zallmann2019-04-101-5/+10
| | | | Reverts the loading of emojis and its images to move forward with RC
* Merge branch 'remaining-lib-differences' into 'master'Robert Speicher2019-04-031-0/+27
|\ | | | | | | | | Resolve remaining CE to EE differences in lib/ See merge request gitlab-org/gitlab-ce!26608
| * Backport EE changes to gitlab:env:inforemaining-lib-differencesYorick Peterse2019-04-021-0/+27
| | | | | | | | | | | | | | This backports EE specific changes for the Rake task `gitlab:env:info`, wrapping them in a conditional. There is no way to inject code in the middle of a Rake task in EE, so unfortunately this is the best we can do.
* | Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵jarv/dev-to-gitlab-2019-04-02John Jarvis2019-04-021-0/+18
|\ \ | |/ |/| | | jarv/dev-to-gitlab-2019-04-02
| * Rake task for removing exif from uploadsJan Provaznik2019-04-021-0/+18
| | | | | | | | | | Adds a rake task which can be used for removing EXIF data from existing uploads.
* | Fix attempting to drop views in PostgreSQLweimeng-master-patch-83366Wei-Meng Lee2019-04-021-1/+4
| |
* | Document ApplicationRecord / pluck_primary_keyNick Thomas2019-03-291-1/+1
|/ | | | We also enable the rubocop that makes it mandatory
* Add helper method to return a human-friendly name for database adapterDouglas Barbosa Alexandre2019-03-211-4/+2
|
* Merge branch ↵Lin Jen-Shin2019-03-191-1/+12
|\ | | | | | | | | | | | | | | | | '58844-follow-up-from-don-t-create-ee-specific-files-when-creating-emojis-fixture-files' into 'master' Simplify JavaScriptFixturesHelpers Closes gitlab-ee#10386, #58898, and #58844 See merge request gitlab-org/gitlab-ce!26045