Not archive projects when scheduling for deletion
What does this MR do and why?
Decouples the archived state from project deletion scheduling. Projects will no longer be automatically archived when marked for deletion or unarchived when restored.
Implementation notes:
- Removed
archivedparameter fromProjects::MarkForDeletionService - Removed
archivedparameter fromProjects::RestoreService - Updated specs to verify archived state preservation
To-do:
- Add test context for initially archived projects:
context 'when project is initially archived' do
before do
project.update!(archived: true)
end
it 'keeps project archived when marked for deletion' do
expect(result).to be_success
expect(project.reload.archived).to be(true)
expect(project.reload).to be_self_deletion_scheduled
end
end
Closes #583420
cc @smaglangit
Edited by Harshith