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

Person suggest #1972

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Person suggest #1972

wants to merge 3 commits into from

Conversation

yattias
Copy link
Contributor

@yattias yattias commented Nov 6, 2024

Elasticsearch suggester for people (authors, users)

Closes ResearchHub/issues#153

@yattias yattias requested a review from a team as a code owner November 6, 2024 19:32
Copy link

sonarcloud bot commented Nov 6, 2024

@@ -8,7 +8,8 @@
"program": "${workspaceFolder}/src/manage.py",
"args": [
"runserver",
"[::]:8000"
"[::]:8000",
"--ipv6"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove this before merging

@@ -117,6 +117,39 @@ def __str__(self):
f"{university_city}"
)

def build_headline(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move this method from serializer to model so that it can be used by elasticsearch

@yattias yattias changed the base branch from master to inst-suggest November 6, 2024 19:41
@yattias yattias changed the base branch from inst-suggest to master November 6, 2024 19:42
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 86.41975% with 11 lines in your changes missing coverage. Please review.

Project coverage is 64.72%. Comparing base (adca5aa) to head (e85029a).

Files with missing lines Patch % Lines
src/search/documents/person.py 77.50% 9 Missing ⚠️
src/user/related_models/author_model.py 88.88% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1972      +/-   ##
==========================================
+ Coverage   64.66%   64.72%   +0.05%     
==========================================
  Files         410      411       +1     
  Lines       23749    23813      +64     
==========================================
+ Hits        15357    15412      +55     
- Misses       8392     8401       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Add elasticsearch suggester for people
2 participants