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
AgeCommit message (Collapse)Author
2019-09-10Avoid calling freeze on already frozen strings in libDinesh Panda
2019-08-30Merge branch 'security-personal-snippets' into 'master'GitLab Release Tools Bot
Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3226
2019-08-23Move visual review toolbar to NPMshampton
Remove the visual review toolbar code in favor of using the NPM package.
2019-08-23Add direct upload support for personal snippetsJan Provaznik
2019-08-17Merge branch 'legacy-attachments-migrate-fix' into 'master'Michael Kozono
Migrate legacy uploads rake tasks See merge request gitlab-org/gitlab-ce!29409
2019-08-16Add rake tasks for migrating leacy uploadsJarka Košanová
- move uploads created by AttachmentUploader - handle also files created for legacy_diff_notes
2019-08-15Squash project templates on updateHordur Freyr Yngvason
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.
2019-07-30Fix broken update_project_templates rake taskHordur Freyr Yngvason
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.
2019-07-29Merge branch 'resolve-scripts-differences' into 'master'Lin Jen-Shin
Backport EE changes made to the scripts/ directory See merge request gitlab-org/gitlab-ce!31015
2019-07-29Backport EE changes made to the scripts/ directoryYorick Peterse
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.
2019-07-29Further remove code branches by database typeAndreas Brandl
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.
2019-07-25Remove unneeded monkey-patchHeinrich Lee Yu
Changes all calls to data_source_exists? to table_exists? since that is the intent of these calls
2019-07-23Remove dead MySQL codeNick Thomas
None of this code can be reached any more, so it can all be removed
2019-07-22Rake task to cleanup expired ActiveSession lookup keysImre Farkas
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.
2019-07-16Merge branch 'jc-fix-rugged-feature-flag-rake' into 'master'Stan Hu
Add unset_rugged rake task Closes #64441 See merge request gitlab-org/gitlab-ce!30636
2019-07-15Allow parameters for rake gitlab:seed:issuesBrett Walker
to specify backfill_weeks and average_issues_per_week
2019-07-11Merge branch '63667-hashed-storage-migration-count-correctly' into 'master'Douglas Barbosa Alexandre
Display the amount for Hashed Storage migration/rollback correctly Closes #63667 See merge request gitlab-org/gitlab-ce!29996
2019-07-11Add unset_rugged rake taskJohn Cai
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.
2019-07-11Improve Graphql DocsFelipe Artur
Adds more friendly docs for GraphQl implementation
2019-07-11Display the amount for Hashed Storage migration/rollback correctlyGabriel Mazetto
Rake script considers the specified range, if present, to calculate the affected amount of projects correctly.
2019-07-10Add a rubocop for Rails.loggerMayra Cabrera
Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-06-28Add rake task to clean orphan artifact filesToon Claes
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.
2019-06-25Silence backup warnings when CRON=1 in useStan Hu
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
2019-06-17Backport the EE schema and migrations to CEYorick Peterse
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.
2019-05-31Merge branch 'gitaly-version-v1.43.0' into 'master'Bob Van Landuyt
Upgrade Gitaly to v1.43.0 See merge request gitlab-org/gitlab-ce!28867
2019-05-30Remove hook directory requirement from ShellZeger-Jan van de Weg
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
2019-05-29Build visual_review_toolbar with webpackSarah Groff Hennigh-Palermo
It takes a lot of lines to move a script
2019-05-13delete feature flag when disabling RuggedBen Bodenmiller
2019-05-08Add warning that gitlab-secrets isn't includedCindy Pallares
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.
2019-04-23Provide a new gitlab:seed:issues taskRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-15Forbid the use of `#reload` and prefer `#reset`Kamil Trzciński
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.
2019-04-03Merge branch 'remaining-lib-differences' into 'master'Robert Speicher
Resolve remaining CE to EE differences in lib/ See merge request gitlab-org/gitlab-ce!26608
2019-04-02Backport EE changes to gitlab:env:infoYorick Peterse
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.
2019-04-02Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵John Jarvis
jarv/dev-to-gitlab-2019-04-02
2019-04-02Rake task for removing exif from uploadsJan Provaznik
Adds a rake task which can be used for removing EXIF data from existing uploads.
2019-04-02Fix attempting to drop views in PostgreSQLWei-Meng Lee
2019-03-22Add helper method to return a human-friendly name for database adapterDouglas Barbosa Alexandre
2019-03-19Integrate Gitlab::Keys with Gitlab::ShellPatrick Bajao
In this commit, some methods that aren't being used are removed from `Gitlab::Shell`. They are the ff: - `#remove_keys_not_found_in_db` - `#batch_read_key_ids` - `#list_key_ids` The corresponding methods in `Gitlab::Keys` have been removed as well.
2019-03-13Run rubocop -aNick Thomas
2019-03-12Prevent storage migration and rollback running at the same timeGabriel Mazetto
This is a small polishing on the storage migration and storage rollback rake tasks. By aborting a migration while a rollback is already scheduled we want to prevent unexpected consequences.
2019-03-08Update cleanup.rake to fix a typo in the error messageRay Paik
2019-03-04Merge branch 'resolve-some-rake-differences' into 'master'Rémy Coutable
Resolve some Rake task differences See merge request gitlab-org/gitlab-ce!25644
2019-03-04Merge branch 'sh-rugged-find-commit' into 'master'Sean McGivern
Bring back Rugged implementation of find_commit See merge request gitlab-org/gitlab-ce!25477
2019-03-01Bring back Rugged implementation of find_commitStan Hu
This brings back some of the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20339. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged is more performant than Gitaly. This merge request introduces the feature flag `rugged_find_commit` to activate Rugged paths. There are also Rake tasks `gitlab:features:enable_rugged` and `gitlab:features:disable_rugged` to enable/disable these feature flags altogether. Part of four Rugged changes identified in https://gitlab.com/gitlab-org/gitlab-ce/issues/57317.
2019-03-01Added Rollbacker workers and support on the rake taskGabriel Mazetto
Rollback is done similar to Migration for the Hashed Storage. It also shares the same ExclusiveLease key to prevent both happening at the same time. All Hashed Storage related workers now share the same queue namespace which allows for assigning dedicated workers easily.
2019-03-01Rake task for storage rollbackGabriel Mazetto
2019-02-28Make the backup Rake task the same as in EEYorick Peterse
EE uses single quotes for the changed line, whereas CE was using double quotes. This commit ensures both repositories use the same kind of quotes.
2019-02-27Prepare test suite for switch to Gitaly-embedded Git hooksJacob Vosmaer
2019-02-12Move terminate_all_connections into setup Rake taskStan Hu
2019-02-12Kill all PostgreSQL connections for rake dev:setupStan Hu
If there are any clients connected to the DB, PostgreSQL won't let you drop the database. It's possible that Sidekiq, Unicorn, or some other client will be hanging onto a connection, preventing the DROP DATABASE from working. To workaround this problem, this method cancels all the connections so that the db:reset command will work. Note that there's still a slight possibility a client connects after its connection is terminated. If this is an issue, we could solve it by revoking CONNECT access, but for now it seems this works. Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/450