lib/gitlab/import_export/project_tree_restorer.rb
# Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level ( and have a group assigned )
def update_project_params!
        project_params = @tree_hash.reject do |key, value|
          project_relations.include?(key)
        end
        project_params = project_params.merge(
          present_project_override_params)
        project_params = Gitlab::ImportExport::AttributeCleaner.clean(
          relation_hash: project_params,
          relation_class: Project,
          excluded_keys: excluded_keys_for_relation(:project))
        @project.assign_attributes(project_params)
        @project.drop_visibility_level!
        Gitlab::Timeless.timeless(@project) do
          @project.save!
        end
      end
def update_project_params! project_params = @tree_hash . reject do | key , value | project_relations . include? ( key ) end project_params = project_params . merge ( present_project_override_params ) project_params = Gitlab :: ImportExport :: AttributeCleaner . clean ( relation_hash : project_params , relation_class : Project , excluded_keys : excluded_keys_for_relation ( :project ) ) @project . assign_attributes ( project_params ) @project . drop_visibility_level! Gitlab :: Timeless . timeless ( @project ) do @project . save! end end
Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level ( and have a group assigned )
# Cleaning all imported and overridden params