Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
AgeCommit message (Collapse)Author
2018-12-06Fix gitlab:web_hook tasksNick Thomas
2018-12-04Extract system check rake task logicMichael Kozono
These changes make the code more reusable, testable, and most importantly, overrideable.
2018-11-30Fix typo in method name "silence_stderr"Brett Walker
2018-11-28Merge branch 'zj-object-pool-path' into 'master'Nick Thomas
Rename Repository table to PoolRepository See merge request gitlab-org/gitlab-ce!23236
2018-11-28Merge branch '50341-cleanup-useless-project-import-attributes' into 'master'Douwe Maan
Removes all the irrelevant code and columns that were migrated from the Project… See merge request gitlab-org/gitlab-ce!21497
2018-11-27Removes all the irrelevant import related code and columnsTiago Botelho
Clears the import related columns and code from the Project model over to the ProjectImportState model
2018-11-27Rename the Repository table to PoolRepositoryZeger-Jan van de Weg
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.
2018-11-27Remove Site StatisticGabriel Mazetto
This approach caused many different problems as we tightened the query execution timeout.
2018-11-09Migrate storage checks to GitalyZeger-Jan van de Weg
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
2018-11-06Merge branch 'rake-gitaly-check' into 'master'Rémy Coutable
Delegate storage health check to Gitaly's health check Closes gitaly#1336 See merge request gitlab-org/gitlab-ce!22063
2018-10-30Merge remote-tracking branch 'origin/master' into dev-masterDJ Mountney
2018-10-29[master] Persist only SHA digest of PersonalAccessToken#tokenImre Farkas
2018-10-25Use gitlab_environment for ldap rake taskCindy Pallares
2018-10-24Convert parser warnings to stdout in haml_lintLin Jen-Shin
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.
2018-10-24Add gitlab:gitaly:check task for Gitaly health checkAlejandro Rodríguez
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
2018-10-18Make getting a user by the username case insensitiveWilliam George
2018-09-27Typo in log message of gitlab-rake gitlab:artifacts:migrateMichael Bisbjerg
2018-09-26Resolve "Un-vendor CI templates"Dylan Griffith
2018-09-25Merge branch 'follow-up-geo-sync-disabled-wikis' into 'master'Douglas Barbosa Alexandre
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6906 See merge request gitlab-org/gitlab-ce!21903
2018-09-25Geo: sync disabled wikis. Stage 2Valery Sizov
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.
2018-09-25Enable write to auth_keys file during restoreCindy Pallares
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.
2018-09-19Include post migrations when loading the schemaYorick Peterse
See merge request gitlab-org/gitlab-ce!21689
2018-09-18Add wrapper rake task to migrate all uploads to OSBalasankar "Balu" C
Add a rake task that will trigger gitlab:uploads:migrate rake task with different possible arguments, one by one.
2018-09-17Fix grammar (setup to set-up) in code comments, spec, views, etc.Marcel Amirault
2018-09-12Ensure the schema is loaded with post_migrations includedDJ Mountney
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.
2018-09-07Merge branch '48778-remove-old-storage-logic-from-import-export' into 'master'Douwe Maan
Resolve "Remove old storage logic from Import/Export" Closes #51144, #50109, #48778, and #51079 See merge request gitlab-org/gitlab-ce!21409
2018-09-07Merge branch 'zj-cleanup-port-gitaly' into 'master'Douwe Maan
Port cleanup tasks to use Gitaly Closes #40529 and gitaly#954 See merge request gitlab-org/gitlab-ce!21588
2018-09-07refactor code based on feedbackJames Lopez
2018-09-07Port cleanup tasks to use GitalyZeger-Jan van de Weg
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
2018-09-07refactor code based on feedbackJames Lopez
2018-09-06Refactor code to remove object storage flag from Import/ExportJames Lopez
Updated docs, refactor import/export code Fix AvatarUploader path issue Fix project export upload webhook error
2018-09-04Fix migrationsKamil Trzciński
2018-09-03Stop using FlayRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-28Rails 5: replace removed silence_streamJasper Maes
2018-08-16Refactor SiteStatistics to extract refresh logic into a rake taskGabriel Mazetto
2018-08-16Add rake command to migrate archived traces from local storage to object storageShinya Maeda
2018-08-14Merge branch 'gitaly-install-path' into 'master'Douwe Maan
Remove storage path dependency of gitaly install task See merge request gitlab-org/gitlab-ce!21101
2018-08-13Remove storage path dependency of gitaly install taskAlejandro Rodríguez
2018-08-07Clean orphaned files in object storageJarka Kadlecová
2018-07-31Add local project uploads cleanup taskMichael Kozono
2018-07-31Remove gitlab:user:check_repos taskZeger-Jan van de Weg
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
2018-07-31Remove git rake tasksZeger-Jan van de Weg
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
2018-07-23Merge branch '48932-disable-saml-if-omniauth-is-disabled' into 'master'Douwe Maan
Resolve "Disable SAML and Bitbucket if OmniAuth is disabled" Closes #48932 See merge request gitlab-org/gitlab-ce!20608
2018-07-20Disable SAML if OmniAuth is disabledLin Jen-Shin
We also try to unify the way we setup OmniAuth, and how we check if it's enabled or not.
2018-07-19Remove refs cleanup jobZeger-Jan van de Weg
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.
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-07-10Remove timestamps from `locale/gitlab.pot`Bob Van Landuyt
This will help us avoid conflicts when regenerating the pot file, the timestamps aren't used by Crowdin.
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-09Update `gettext:updated_check` regenerate pot fileBob Van Landuyt
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.
2018-06-29Add pipeline stages position clean-up migrationGrzegorz Bizon