-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Remove unused views and their translations. #4632
Remove unused views and their translations. #4632
Conversation
I wonder if this was something to do with #450. But what I can tell, that was to make an alias to projects (not versions). Also, the model used it this one https://github.com/rtfd/readthedocs.org/blob/4f1a5dc07fd9d55d4284fdb22deae735932b2ec9/readthedocs/builds/models.py#L408-L425 Looks like we aren't using that anymore. I think we can remove all related forms and models too. @ericholscher @agjohnson do you agree or maybe this is used on the .com site? |
I don't think we are going to use alias, no. This is going to heavily conflict with my PR to update all of our translations, so perhaps it would be best to scope this PR as just removal of aliases, and not lump multiple PRs into one. |
@agjohnson So should I push a commit which reverts back to the old translations to not arise any conflicts? |
@invinciblycool yeah, the PR that Anthony mentions was already merged |
cba3583
to
6afe227
Compare
@stsewd Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove more code here, like https://github.com/rtfd/readthedocs.org/blob/90b1e52cfd6a124bf7298a1b3cb1711fddd67ab8/readthedocs/builds/forms.py#L12-L27
@@ -0,0 +1,31 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migration doesn't look related to this PR
be5777e
to
4b4e770
Compare
@stsewd Please check now. |
@invinciblycool there is more code to remove, please check my comments ^ |
@@ -60,16 +60,6 @@ class Migration(migrations.Migration): | |||
'permissions': (('view_version', 'View Version'),), | |||
}, | |||
), | |||
migrations.CreateModel( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a new migration that removes this, not edit existing ones
@stsewd Pushed a commit. Sorry for the delay for this PR. |
2812854
to
7b641a4
Compare
@stsewd Could you please check this out. |
7b641a4
to
e9dc0c5
Compare
Codecov Report
@@ Coverage Diff @@
## master #4632 +/- ##
==========================================
+ Coverage 76.26% 76.32% +0.06%
==========================================
Files 158 158
Lines 10034 9998 -36
Branches 1267 1263 -4
==========================================
- Hits 7652 7631 -21
+ Misses 2039 2024 -15
Partials 343 343
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are good here, can you please rebase/merge master?
e9dc0c5
to
736302d
Compare
@stsewd Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
In prod we only have 2 of these:
Guessing it should be safe to delete them. |
Closes #4420
Removed unused views, their templates and translations.