Gitlab Pages site not archiving with project
Summary
After a project is archived, the Pages site the project deployed is still available. The Pages site should be deleted when a project is archived or at least given an option with the default deleting the Pages site.
Steps to reproduce
- Deploy a Pages site from a project
- Archive project
- See that Pages site is still available
Workaround
- visit
Settings -> Pages
- remove pages
What is the current bug behavior?
After a project is archived the Pages site is still accessible
What is the expected correct behavior?
The Pages site to be deleted when a project is archived
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Remove pages once project is being archived. I think it's an excellent opportunity to use new https://docs.gitlab.com/ee/development/event_store.html.