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

✨ Study model #130

Merged
merged 9 commits into from
Feb 16, 2018
Merged

✨ Study model #130

merged 9 commits into from
Feb 16, 2018

Conversation

znatty22
Copy link
Member

@znatty22 znatty22 commented Feb 15, 2018

Add study model and one to many relation to participant
Add unit tests for study model
Add updates to all entity unit tests to support addition of study
Add entity relationship diagram
Add migrations

@znatty22 znatty22 added the data model Changes to the underlying data representation label Feb 15, 2018
@znatty22 znatty22 self-assigned this Feb 15, 2018
@znatty22 znatty22 changed the title WIP ✨ Study model ✨ Study model Feb 15, 2018
nullable=False)

def __repr__(self):
return '<Participant {}>'.format(self.external_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use kf_id here?


data_access_authority = db.Column(db.Text(),
nullable=False,
default='dbGap')
Copy link
Contributor

Choose a reason for hiding this comment

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

technical stylized as dbGaP

backref='study')

def __repr__(self):
return '<Study {}>'.format(self.external_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should also be kf_id

@@ -20,6 +21,9 @@ def create_participant_sample_aliquot(self):
create a participant, sample, and aliquot save to db
Copy link
Contributor

Choose a reason for hiding this comment

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

we could comment something about creating study

sa.UniqueConstraint('kf_id'),
sa.UniqueConstraint('uuid')
)
op.create_unique_constraint(None, 'outcome', ['kf_id'])
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't be in this migration.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, yea it shouldn't

Copy link
Contributor

@dankolbman dankolbman left a comment

Choose a reason for hiding this comment

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

👍

@znatty22 znatty22 merged commit 580bc93 into master Feb 16, 2018
@znatty22 znatty22 deleted the study-model branch February 16, 2018 20:00
@dankolbman dankolbman mentioned this pull request Feb 23, 2018
3 tasks
@dankolbman dankolbman mentioned this pull request Apr 2, 2018
alubneuski pushed a commit that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Changes to the underlying data representation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants