gitlab-org--gitlab-foss/app/services/projects/hashed_storage
Gabriel Mazetto b4f2050207 Skip project validation when switching storage layouts
This is a fix for the Hashed Storage migration and Rollback procedure
to ignore any project-level validation error that can happen in a
long-running instance.

There are many situations where defaults and acceptable values changed
but, because we didn't provide a migration to "valid" attributes, it
can happen that project will not be `valid? => true`.

Because the changes we are making are limited to setting a project as
read_only or changing the storage_level, it's safe to bypass validation.
2019-03-05 04:00:53 +01:00
..
base_attachment_service.rb Extract duplicated code into BaseAttachmentService 2019-03-01 15:49:20 +01:00
base_repository_service.rb Extract and simplify more code into BaseRepositoryService` 2019-03-01 15:49:20 +01:00
migrate_attachments_service.rb Skip project validation when switching storage layouts 2019-03-05 04:00:53 +01:00
migrate_repository_service.rb Skip project validation when switching storage layouts 2019-03-05 04:00:53 +01:00
migration_service.rb Use Gitlab::AppLogger instead of Rails.logger 2019-01-25 20:26:35 +01:00
rollback_attachments_service.rb Skip project validation when switching storage layouts 2019-03-05 04:00:53 +01:00
rollback_repository_service.rb Skip project validation when switching storage layouts 2019-03-05 04:00:53 +01:00
rollback_service.rb Adds Rollback functionality to HashedStorage migration 2019-03-01 15:49:20 +01:00