summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge branch 'zj-object-pool-path' into 'master'Nick Thomas2018-11-281-2/+2
| |\ | | | | | | | | | | | | Rename Repository table to PoolRepository See merge request gitlab-org/gitlab-ce!23236
| | * Rename the Repository table to PoolRepositoryZeger-Jan van de Weg2018-11-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To separate the different kinds of repositories we have at GitLab this table will be renamed to pool_repositories. A project can, for now at least, be member of none, or one of these. The table will get additional columns in a later merge request where more logic is implemented for the model. Further included is a small refactor of logic around hashing ids for the disk_path, mainly to ensure a previous implementation is reusable. The disk_path for the pool_repositories table no longer has a NOT NULL constraint, but given the hashing of the ID requires the DB to assign the record an ID, an after_create hook is used to update the value. A related MR is: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23143, adding tables for 'normal' repositories and wiki_repositories.
| * | Merge branch '50341-cleanup-useless-project-import-attributes' into 'master'Douwe Maan2018-11-281-2/+2
| |\ \ | | | | | | | | | | | | | | | | Removes all the irrelevant code and columns that were migrated from the Project… See merge request gitlab-org/gitlab-ce!21497
| | * | Removes all the irrelevant import related code and columnsTiago Botelho2018-11-271-2/+2
| | |/ | | | | | | | | | | | | Clears the import related columns and code from the Project model over to the ProjectImportState model
| * | Remove Site Statistic53778-remove-site-statisticsGabriel Mazetto2018-11-261-15/+0
| |/ | | | | | | | | This approach caused many different problems as we tightened the query execution timeout.
| * Migrate storage checks to GitalyZeger-Jan van de Weg2018-11-091-37/+0
| | | | | | | | | | | | | | | | Most of these checks are not valuable in the current setup, thus removed and replaced by Gitaly checking if its read and writeable. Depends on: 1. https://gitlab.com/gitlab-org/gitaly/merge_requests/675
| * Merge branch 'rake-gitaly-check' into 'master'Rémy Coutable2018-11-061-117/+22
| |\ | | | | | | | | | | | | | | | | | | Delegate storage health check to Gitaly's health check Closes gitaly#1336 See merge request gitlab-org/gitlab-ce!22063
| | * Add gitlab:gitaly:check task for Gitaly health checkrake-gitaly-checkAlejandro Rodríguez2018-10-231-117/+22
| | | | | | | | | | | | | | | | | | | | | Also, since Gitaly now takes care of checking for storage paths existence/accessibility, we can remove those check from the gitlab:gitlab_shell_check task and advance further into 0 direct disk approach on gitlab-rails
| * | Merge remote-tracking branch 'origin/master' into dev-masterDJ Mountney2018-10-291-1/+1
| |\ \
| | * | Use gitlab_environment for ldap rake task52993-ldap-rename_provider-rake-task-brokenCindy Pallares2018-10-251-1/+1
| | | |
| * | | [master] Persist only SHA digest of PersonalAccessToken#tokenImre Farkas2018-10-291-9/+5
| |/ /
| * | Convert parser warnings to stdout in haml_lintsh-bump-ruby-2.4.5Lin Jen-Shin2018-10-241-0/+11
| |/ | | | | | | | | | | This was used in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16648 and this could happen from time to time, so let's just keep it.
| * Make getting a user by the username case insensitiveWilliam George2018-10-181-1/+1
| |
| * Typo in log message of gitlab-rake gitlab:artifacts:migrateMichael Bisbjerg2018-09-271-1/+1
| |
| * Resolve "Un-vendor CI templates"Dylan Griffith2018-09-261-4/+0
| |
| * Merge branch 'follow-up-geo-sync-disabled-wikis' into 'master'Douglas Barbosa Alexandre2018-09-251-8/+0
| |\ | | | | | | | | | | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6906 See merge request gitlab-org/gitlab-ce!21903
| | * Geo: sync disabled wikis. Stage 2follow-up-geo-sync-disabled-wikisValery Sizov2018-09-251-8/+0
| | | | | | | | | | | | | | | | | | | | | We started syncing all the wiki regardless of the fact it's disabled or not. We couldn't do that in one stage because of needing of smoth update and deprecating things. This is the second stage that finally removes unused columns in the geo_node_status table.
| * | Enable write to auth_keys file during restoreCindy Pallares2018-09-251-2/+44
| |/ | | | | | | | | | | Fast lookup of authorized SSH keys in the database was ported to CE in v10.4. This change adds the option to enable the setting via the restore rake task and assumes yes if the force env variable is set.
| * Include post migrations when loading the schemaYorick Peterse2018-09-191-0/+2
| |\ | | | | | | See merge request gitlab-org/gitlab-ce!21689
| | * Ensure the schema is loaded with post_migrations includedDJ Mountney2018-09-111-0/+2
| | | | | | | | | | | | | | | | | | If doing a schema load, the post_migrations should also be marked as up, even if SKIP_POST_DEPLOYMENT_MIGRATIONS was set, otherwise future migration runs will be broken.
| * | Add wrapper rake task to migrate all uploads to OSBalasankar "Balu" C2018-09-181-1/+25
| | | | | | | | | | | | | | | Add a rake task that will trigger gitlab:uploads:migrate rake task with different possible arguments, one by one.
| * | Fix grammar (setup to set-up) in code comments, spec, views, etc.Marcel Amirault2018-09-171-1/+1
| | |
| * | Merge branch '48778-remove-old-storage-logic-from-import-export' into 'master'Douwe Maan2018-09-071-1/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Remove old storage logic from Import/Export" Closes #51144, #50109, #48778, and #51079 See merge request gitlab-org/gitlab-ce!21409
| | * | refactor code based on feedbackJames Lopez2018-09-071-1/+1
| | | |
| | * | refactor code based on feedbackJames Lopez2018-09-071-1/+1
| | | |
| | * | Refactor code to remove object storage flag from Import/ExportJames Lopez2018-09-061-1/+3
| | |/ | | | | | | | | | | | | | | | Updated docs, refactor import/export code Fix AvatarUploader path issue Fix project export upload webhook error
| * | Merge branch 'zj-cleanup-port-gitaly' into 'master'Douwe Maan2018-09-071-50/+39
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Port cleanup tasks to use Gitaly Closes #40529 and gitaly#954 See merge request gitlab-org/gitlab-ce!21588
| | * | Port cleanup tasks to use GitalyZeger-Jan van de Weg2018-09-071-50/+39
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rake tasks cleaning up the Git storage were still using direct disk access, which won't work if these aren't attached. To mitigate a migration issue was created. To port gitlab:cleanup:dirs, and gitlab:cleanup:repos, a new RPC was required, ListDirectories. This was implemented in Gitaly, through https://gitlab.com/gitlab-org/gitaly/merge_requests/868. To be able to use the new RPC the Gitaly server was bumped to v0.120. This is an RPC that will not use feature gates, as this doesn't scale on .com so there is no way to test it at scale. Futhermore, we _know_ it doesn't scale, but this might be a useful task for smaller instances. Lastly, the tests are slightly updated to also work when the disk isn't attached. Eventhough this is not planned, it was very little effort and thus I applied the boy scout rule. Closes https://gitlab.com/gitlab-org/gitaly/issues/954 Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40529
| * | Fix migrationsKamil Trzciński2018-09-041-0/+2
| |/
| * Stop using FlayRémy Coutable2018-09-032-10/+0
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Rails 5: replace removed silence_streamJasper Maes2018-08-281-1/+12
| |
| * Refactor SiteStatistics to extract refresh logic into a rake taskGabriel Mazetto2018-08-161-0/+23
| |
| * Add rake command to migrate archived traces from local storage to object storageShinya Maeda2018-08-161-0/+17
| |
| * Merge branch 'gitaly-install-path' into 'master'Douwe Maan2018-08-141-18/+6
| |\ | | | | | | | | | | | | Remove storage path dependency of gitaly install task See merge request gitlab-org/gitlab-ce!21101
| | * Remove storage path dependency of gitaly install taskAlejandro Rodríguez2018-08-121-18/+6
| | |
| * | Clean orphaned files in object storageJarka Kadlecová2018-08-071-0/+10
| | |
| * | Add local project uploads cleanup taskMichael Kozono2018-07-311-4/+35
| |/
| * Remove gitlab:user:check_repos taskZeger-Jan van de Weg2018-07-311-17/+0
| | | | | | | | | | | | | | | | | | | | While reviewing this branch it was noted that this task was broken. Given the limited value this task brings, and given the fact that much of the old behaviour has been moved to be automatically fixed, removing was a good option. Suggestion in: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20806#note_91261001
| * Remove git rake tasksZeger-Jan van de Weg2018-07-312-82/+11
| | | | | | | | | | | | | | | | | | | | These tasks are happening through housekeeping right now, by default ever 10th push. This removes the need for these tasks. Side note, this removes one of my first contributions to GitLab, as back than I introduced these tasks through: 54e6c0045bb13c05cc5478cbdf47d3246bd9fe2b Closes https://gitlab.com/gitlab-org/gitaly/issues/768
| * Merge branch '48932-disable-saml-if-omniauth-is-disabled' into 'master'Douwe Maan2018-07-231-2/+2
| |\ | | | | | | | | | | | | | | | | | | Resolve "Disable SAML and Bitbucket if OmniAuth is disabled" Closes #48932 See merge request gitlab-org/gitlab-ce!20608
| | * Disable SAML if OmniAuth is disabled48932-disable-saml-if-omniauth-is-disabledLin Jen-Shin2018-07-201-2/+2
| | | | | | | | | | | | | | | We also try to unify the way we setup OmniAuth, and how we check if it's enabled or not.
| * | Remove refs cleanup jobZeger-Jan van de Weg2018-07-191-23/+0
| |/ | | | | | | | | | | Introduced by f20eadcbbeb88e98c2608cbaf23f0d09ca002a98, meant to remove refs from Git using the wrong name. That never made it to a non-rc release and can be safely removed now.
| * Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-2/+2
| |
| * Remove timestamps from `locale/gitlab.pot`Bob Van Landuyt2018-07-101-1/+7
| | | | | | | | | | This will help us avoid conflicts when regenerating the pot file, the timestamps aren't used by Crowdin.
| * Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
| |
| * Update `gettext:updated_check` regenerate pot fileBob Van Landuyt2018-07-091-7/+23
| | | | | | | | | | | | | | Making the `gettext:updated_check` by completely regenerating the gitlab.pot. This avoids an issue where `gettext:find` would not pick up on changes if the file isn't removed first.
| * Add pipeline stages position clean-up migrationGrzegorz Bizon2018-06-291-7/+14
| |
| * Fixes an issue where migrations instead of schema loading were runDJ Mountney2018-06-271-1/+3
| | | | | | | | | | If you called rake gitlab:db:drop_tables before running gitlab-ctl reconfigure (or rake gitlab:db:configure)
| * Merge branch 'bvl-dont-generate-mo' into 'master'Rubén Dávila2018-06-201-1/+0
| |\ | | | | | | | | | | | | | | | | | | Don't generate `.mo` files Closes #47979 See merge request gitlab-org/gitlab-ce!20048
| | * Don't generate `.mo` filesBob Van Landuyt2018-06-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since we are only using `.po` files for translation we can shave off some setup time. Generating the `mo` files also regenerates the PO-files, including fuzzy translations. Those cause a lot of bugs, and we don't need them anymore since the `po` files are generated by an external translation service.