Skip to content

fix: handle duplicate Author records in OpenAlex enrichment#3195

Open
koutst wants to merge 1 commit intomainfrom
claude/issue-3194-20260316-1807
Open

fix: handle duplicate Author records in OpenAlex enrichment#3195
koutst wants to merge 1 commit intomainfrom
claude/issue-3194-20260316-1807

Conversation

@koutst
Copy link
Copy Markdown
Contributor

@koutst koutst commented Mar 16, 2026

Replace update_or_create with filter().first() pattern in process_authors to gracefully handle multiple Author records with the same openalex_ids array, preventing MultipleObjectsReturned.

Closes #3194

Replace update_or_create with filter().first() pattern in
process_authors to gracefully handle multiple Author records
with the same openalex_ids array, preventing MultipleObjectsReturned.

Closes #3194

Co-authored-by: Taki Koutsomitis <koutst@users.noreply.github.com>
@koutst koutst requested a review from a team as a code owner March 16, 2026 18:24
@chatgpt-codex-connector
Copy link
Copy Markdown

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.

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.50%. Comparing base (496a262) to head (660272b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3195   +/-   ##
=======================================
  Coverage   78.49%   78.50%           
=======================================
  Files         612      612           
  Lines       34250    34254    +4     
=======================================
+ Hits        26885    26890    +5     
+ Misses       7365     7364    -1     

☔ 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.

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.

Author.MultipleObjectsReturned in OpenAlex Enrichment

1 participant