Skip to content

Conversation

@syqs
Copy link
Contributor

@syqs syqs commented Dec 10, 2025

  • Add external_source field to PaperDocument index
  • Include external_source in search source fields (regular and DOI search)
  • Map external_source to 'journal' field in API response
  • Add journal field to DocumentResultSerializer

- Add external_source field to PaperDocument index
- Include external_source in search source fields (regular and DOI search)
- Map external_source to 'journal' field in API response
- Add journal field to DocumentResultSerializer
@syqs syqs requested a review from a team as a code owner December 10, 2025 18:37
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 38.35616% with 135 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.39%. Comparing base (5f19237) to head (1f06b4a).
⚠️ Report is 94 commits behind head on main.

Files with missing lines Patch % Lines
src/search/documents/paper.py 3.09% 94 Missing ⚠️
src/search/services/unified_search_service.py 64.03% 41 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2913      +/-   ##
==========================================
- Coverage   75.50%   75.39%   -0.12%     
==========================================
  Files         529      533       +4     
  Lines       28840    29649     +809     
==========================================
+ Hits        21776    22353     +577     
- Misses       7064     7296     +232     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

return None

for hub in hubs:
if not isinstance(hub, dict):
Copy link
Contributor

Choose a reason for hiding this comment

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

If a hub is defined would it ever be not a dict?

Generally, if types are wrong I'd rather the application fail with a warning

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah the hubs coming back from the opensearch are not AttrDict not regular dicts

@sonarqubecloud
Copy link

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.

3 participants