Skip to content

Add project delete method that wipes build artifacts #3145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks
agjohnson opened this issue Oct 5, 2017 · 5 comments
Closed
2 tasks

Add project delete method that wipes build artifacts #3145

agjohnson opened this issue Oct 5, 2017 · 5 comments
Labels
Needed: design decision A core team decision is required

Comments

@agjohnson
Copy link
Contributor

Raised in #3131, the Project model should probably just be removing files on project deletion. Historically, our stance has been to archive these files, but I think the expect effect should be that the files are completely removed.

We could probably review the admin function for removing projects as well, and call Project.delete() instead of relying on the query .delete() method.

There are also other places where we are using a one-off method of removing artifacts, these can all be unified under the Project.delete() method.

Decide

  • Do we want to remove files on project delete?
  • Do we need extra protection from multiple users deleting projects?
@safwanrahman
Copy link
Member

I believe we can remove the files upon project deletion. After the project got deleted, there are no values of the files. Moreover, if needed, its possible to get the files by building the project again.

@agjohnson
Copy link
Contributor Author

@ericholscher I'm probably 👍 on making this change, thoughts? I know our position has been to keep these files, but seems its not expected from folks.

@ericholscher
Copy link
Member

Yea, I think it makes sense. I'd love to have some kind of solution to #562 or similar to archive things to archive.org every month or so, but it makes sense to delete files I think.

@ericholscher
Copy link
Member

I really hate breaking old URL's though >:x

@humitos
Copy link
Member

humitos commented Sep 4, 2018

This is already implemented. Once a project is deleted, all artifacts are removed. Closing here.

Reference in code: https://github.com/rtfd/readthedocs.org/blob/bde0088ee61bebc0d7227c5056c7e8f88255357a/readthedocs/projects/views/private.py#L183-L184

@humitos humitos closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

4 participants