Skip to content

Refactoring task files #3943

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 8 commits into from

Conversation

shubham76
Copy link
Contributor

@shubham76 shubham76 commented Apr 13, 2018

This is regarding #3775.
Tried only moving fileify function as mentioned by @agjohnson here as it operates on versions.
Is something like this expected?
I only tried with one function. If things are right here I'll go ahead and make other changes.

@agjohnson agjohnson added this to the Cleanup milestone Apr 13, 2018
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far! I noted some extraneous imports and code that were copied in and never used.

from readthedocs.restapi.utils import index_search_request
from readthedocs.search.parse_json import process_all_json_files
from readthedocs.vcs_support import utils as vcs_support_utils
from readthedocs.worker import app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like almost all of these imports are not used, these should be clean up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I will do that. 👍


log = logging.getLogger(__name__)

HTML_ONLY = getattr(settings, 'HTML_ONLY_PROJECTS', ())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look used either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Right. 👍

@shubham76
Copy link
Contributor Author

Hey @agjohnson! I completed refactoring other functions and made changes as you had requested. Could you take a look and let me know if something else needs to be done?
Thank you for your time! :)

Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Could you please take a look at other places in the code that probably will need to fix the path also?

Example: https://github.com/rtfd/readthedocs.org/blob/4d9aee21f62f7b23341343ae0e9b23b182629385/readthedocs/settings/base.py#L257

You can find these places by grepping the code.

Also, @agjohnson we should check the same under the corporate site.

@shubham76
Copy link
Contributor Author

shubham76 commented Apr 18, 2018

Hey @humitos, @agjohnson! I did the changes as you had requested. Could you take a look?

@stsewd stsewd mentioned this pull request Oct 7, 2018
8 tasks
@humitos
Copy link
Member

humitos commented Oct 9, 2018

@shubham76 change look good! Could you please solve the conflics by rebasing your branch? After that, could you check if the tests need to be updated also? Thanks!

@ericholscher
Copy link
Member

This has a ton of conflicts in it, so I'm going to close it. It also combined a refactor with some feature additions, where I'd much prefer just a straight refactor, and then an additional PR with additions. Thanks for opening it, but redoing this will probably require a new PR anyway because of all the conflicts.

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.

5 participants