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
2018-10-22Move Project#rename_repo to a service classYorick Peterse
This moves the logic of Project#rename_repo and all methods _only_ used by this method into a new service class: Projects::AfterRenameService. By moving this code into a separate service class we can more easily refactor it, and we also get rid of some RuboCop "disable" statements automatically. During the refactoring of this code, I removed most of the explicit logging using Gitlab::AppLogger. The data that was logged would not be useful when debugging renaming issues, as it does not add any value on top of data provided by users. I also removed a variety of comments that either mentioned something the code does in literal form, or contained various grammatical errors. Instead we now resort to more clearly named methods, removing the need for code comments. This method was chosen based on analysis in https://gitlab.com/gitlab-org/release/framework/issues/28. In this issue we determined this method has seen a total of 293 lines being changed in it. We also noticed that RuboCop determined the ABC size (https://www.softwarerenovation.com/ABCMetric.pdf) was too great.
2018-04-06Ignore current RSpec/FactoriesInMigrationSpecs offensesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-12Use the latest migration in ↵Rémy Coutable
spec/migrations/rename_reserved_project_names_spec.rb We do that because it's using factories and it's not worth it to get rid of them. Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-24Use the DatabaseCleaner 'deletion' strategy instead of 'truncation'Nick Thomas
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-06-14Correct RSpec/SingleLineHook cop offensesRobert Speicher
2016-12-27Fix rename projects spec so it doesn't hangYorick Peterse
This spec would hang due to the use of transactions, and would incorrectly stub Thread.new.
2016-12-24Rename projects with reserved path namesDmitriy Zaporozhets
We cant have project with name 'project' or 'tree' anymore. This merge request containts a migration that will find and rename all projects using reserved names by adding N digit to the end of the name. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>