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

Consolidate Study and Screening database models #104

Merged
merged 22 commits into from
Apr 24, 2024

Conversation

bdewilde
Copy link
Member

@bdewilde bdewilde commented Apr 21, 2024

changes

  • moves Citation and Fulltext database records directly into parent Study records as nested mappings
  • consolidates CitationScreening and FulltextScreening records into a single collection of Screening records, using study_id and stage fields instead of citation_id/fulltext_id
  • updates db orm relationships and trigger events accordingly
  • updates API logic accordingly, without affecting behavior from the perspective of API callers via hacks, alternate schemas, and white lies
  • refactors db model imports to module-level, for cleaner namespaces and better behavior in case of future db model changes

@bdewilde bdewilde changed the base branch from main to develop April 21, 2024 17:09
@bdewilde bdewilde marked this pull request as ready for review April 24, 2024 01:51
@bdewilde bdewilde merged commit bd9b68d into develop Apr 24, 2024
3 checks passed
@bdewilde bdewilde deleted the burton-consolidate-study-db-models branch April 24, 2024 02:08
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.

1 participant