-
Notifications
You must be signed in to change notification settings - Fork 3
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
✨ Study model #130
Conversation
920b87f
to
ab4db52
Compare
nullable=False) | ||
|
||
def __repr__(self): | ||
return '<Participant {}>'.format(self.external_id) |
There was a problem hiding this comment.
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?
dataservice/api/study/models.py
Outdated
|
||
data_access_authority = db.Column(db.Text(), | ||
nullable=False, | ||
default='dbGap') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical stylized as dbGaP
dataservice/api/study/models.py
Outdated
backref='study') | ||
|
||
def __repr__(self): | ||
return '<Study {}>'.format(self.external_id) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
migrations/versions/c23f9043d57b_.py
Outdated
sa.UniqueConstraint('kf_id'), | ||
sa.UniqueConstraint('uuid') | ||
) | ||
op.create_unique_constraint(None, 'outcome', ['kf_id']) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
17ea009
to
62a4dac
Compare
62a4dac
to
0d49386
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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