Skip to content

Remove autocomplete js from templates #3779

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
stsewd opened this issue Mar 12, 2018 · 7 comments
Closed

Remove autocomplete js from templates #3779

stsewd opened this issue Mar 12, 2018 · 7 comments
Labels
Needed: more information A reply from issue author is required
Milestone

Comments

@humitos
Copy link
Member

humitos commented Mar 12, 2018

Doing a simple grep I found other places where this is used. For example, at https://github.com/rtfd/readthedocs.org/blob/8f2d59cdcdee0050feece79465d1a6c5c903ecf5/readthedocs/templates/search/elastic_project_search.html

So, we will probably do more grep here to find other places also and decide if they should stay or should be removed.

Grepping by autocomplete and/or ui-autocomplete will be useful. There are some tests for the autocomplete and some other templates that I just saw at a quick look.

@humitos humitos added the Needed: more information A reply from issue author is required label Mar 12, 2018
@stsewd
Copy link
Member Author

stsewd commented Mar 13, 2018

@humitos I found 3 files (one is a comment, probably removing it would be a clean up 😄) And also there is this function https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/views/public.py#L199 is really used this feature on the site? Or is abandoned?

ps: I update the description with the new files

@irkartik
Copy link
Contributor

@stsewd @humitos shall I take up this issue?

@stsewd
Copy link
Member Author

stsewd commented Mar 13, 2018

@rajujha373 let's wait to @humitos confirm us what is to be done with some files.

@irkartik
Copy link
Contributor

Sure @stsewd :)

@humitos
Copy link
Member

humitos commented Mar 14, 2018

I never touched the autosearch code, so to answer your question I would need to do probably exactly the same that you would need to do:

  • check where that code is used
  • think if it's correct that should be used there
  • check against readthedocs.org if that code in that place works properly
  • decide if it should stay or should be removed
  • write some tests (if needed)
  • remove the autocomplete code

Summarizing, "I have no idea" but left some steps that you can follow to research and answer that question by yourself :)

I would love to see a PR comming in with this ;)

Hope it helps.

@humitos humitos removed their assignment Mar 14, 2018
@agjohnson agjohnson added this to the Cleanup milestone Jun 1, 2018
ericholscher added a commit that referenced this issue Jun 7, 2018
#3779: Remove autocomplete js from templates
@stsewd
Copy link
Member Author

stsewd commented Jun 14, 2018

This was solved in #3805

@stsewd stsewd closed this as completed Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: more information A reply from issue author is required
Projects
None yet
Development

No branches or pull requests

4 participants