Skip to content

Remove project_version_delete_html view #4950

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
wants to merge 1 commit into from

Conversation

humitos
Copy link
Member

@humitos humitos commented Dec 4, 2018

We used to have a "Clean" button in the Inactive Versions listing to remove built and disabled versions of the documentation.

This is not more possible, because when the version is disabled (mark as non active) we call clean_artifacts and remove all the HTML files for this version and mark it as Version.build=False. In the end, that button does not appear anymore.

Related #4937

@humitos humitos added this to the Cleanup milestone Dec 4, 2018
We used to have a "Clean" button in the Inactive Versions listing to
remove built and disabled versions of the documentation.

This is not more possible, because when the version is disabled (mark
as non active) we call `clean_artifacts` and remove all the HTML files
for this version and mark it as `Version.build=False`. In the end,
that button does not appear anymore.

Related #4937
@humitos humitos force-pushed the humitos/versions/clean branch from d362a11 to 7982459 Compare December 4, 2018 08:56
@codecov
Copy link

codecov bot commented Dec 4, 2018

Codecov Report

Merging #4950 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4950      +/-   ##
==========================================
+ Coverage   76.93%   76.96%   +0.02%     
==========================================
  Files         158      158              
  Lines       10039    10030       -9     
  Branches     1259     1258       -1     
==========================================
- Hits         7724     7720       -4     
+ Misses       1981     1977       -4     
+ Partials      334      333       -1
Impacted Files Coverage Δ
readthedocs/projects/views/private.py 80.96% <ø> (+0.86%) ⬆️
readthedocs/projects/urls/private.py 100% <ø> (ø) ⬆️

1 similar comment
@codecov
Copy link

codecov bot commented Dec 4, 2018

Codecov Report

Merging #4950 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4950      +/-   ##
==========================================
+ Coverage   76.93%   76.96%   +0.02%     
==========================================
  Files         158      158              
  Lines       10039    10030       -9     
  Branches     1259     1258       -1     
==========================================
- Hits         7724     7720       -4     
+ Misses       1981     1977       -4     
+ Partials      334      333       -1
Impacted Files Coverage Δ
readthedocs/projects/views/private.py 80.96% <ø> (+0.86%) ⬆️
readthedocs/projects/urls/private.py 100% <ø> (ø) ⬆️

@stsewd
Copy link
Member

stsewd commented Dec 4, 2018

Mmm, actually I have seen this button before. And yes, the docs are still online.

screenshot_2018-12-04 versions read the docs

@humitos
Copy link
Member Author

humitos commented Dec 4, 2018

@stsewd is that project very old?

I think it's not possible to see that button with the current code in production.

Do you know what would be the steps to see that Clean button currently?

@humitos humitos requested a review from a team December 4, 2018 15:34
@stsewd
Copy link
Member

stsewd commented Dec 4, 2018

@stsewd
Copy link
Member

stsewd commented Dec 4, 2018

Not sure how to replicate this :/

@ericholscher
Copy link
Member

ericholscher commented Dec 4, 2018

There are likely cases where Celery fails to execute for some reason, eg. if we're restarting it in the middle of a task or similar.

@humitos
Copy link
Member Author

humitos commented Dec 11, 2018

@ericholscher from your comment, I suppose that we want to keep this code here and close this PR. If that's what you mean, please go ahead.

@ericholscher
Copy link
Member

I'm of mixed feelings. I don't think it's super important to keep, but I don't see much value in deleting it either. I think we can keep it until we totally rethink how we handle our HTML uploads, and then it will be deprecated & removed at that point.

@stsewd stsewd deleted the humitos/versions/clean branch December 11, 2018 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants