Skip to content
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

Refactor searches #476

Conversation

JJamesWWang
Copy link
Member

@JJamesWWang JJamesWWang commented Dec 21, 2021

Description

Refactor searches app
Remove vectorized search
Remove pagination, replace with 100 search cap
Add unit tests
Other reformatting/restructuring changes

Tasks

  • apps.py
  • tasks.py
  • tests.py
  • urls.py
  • utils.py
  • views.py

@JJamesWWang JJamesWWang changed the title Format searches Refactor searches Dec 21, 2021
@JJamesWWang JJamesWWang linked an issue Dec 21, 2021 that may be closed by this pull request
13 tasks
@JJamesWWang JJamesWWang added the python Pull requests that update Python code label Dec 21, 2021
@JJamesWWang
Copy link
Member Author

JJamesWWang commented Dec 21, 2021

I've settled to cap search results at 100 as I think it's a reasonable number. I doubt many people can't filter their search within 100 results. This also prevents long search time.

@JJamesWWang JJamesWWang marked this pull request as ready for review December 21, 2021 17:53
@JJamesWWang
Copy link
Member Author

Oops I forgot to add some more unit tests, one sec

Copy link
Collaborator

@yesterd3v yesterd3v left a comment

Choose a reason for hiding this comment

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

LGTM 🚀
I did not realize how much legacy code was left behind and unused.

@JJamesWWang JJamesWWang merged commit 6c826fc into jhuopensource:refactor-backend-base-branch Dec 22, 2021
@JJamesWWang JJamesWWang removed a link to an issue Jan 7, 2022
13 tasks
JJamesWWang added a commit to JJamesWWang/semesterly that referenced this pull request Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants