Skip to content

Commit

Permalink
Add note to case + corresponding embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
drio18 authored and crfmc committed Jul 27, 2023
1 parent 214153f commit 7593979
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/encoded/schemas/case.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@
"exclude_from": [
"FFedit-create"
]
},
"note": {
"title": "Note",
"description": "Notes for this case",
"type": "string",
"linkTo": "NoteStandard"
}
},
"facets": {
Expand Down Expand Up @@ -329,6 +335,19 @@
"title": "Report Last Modified Date"
}
]
},
"notes": {
"title": "Notes",
"sort_fields": [
{
"field": "note.last_text_edited.date_text_edited",
"title": "Last Edit Date"
},
{
"field": "note.last_text_edited.text_edited_by.display_title",
"title": "Last Edit User"
}
]
}
}
}
4 changes: 4 additions & 0 deletions src/encoded/types/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ def _build_case_embedded_list():
# File linkTo
"structural_variant_vcf_file.file_ingestion_status",
"structural_variant_vcf_file.accession",
# Note linkTo
"note.note_text",
"note.last_text_edited.date_text_edited",
"note.last_text_edited.text_edited_by.display_title",
]


Expand Down

0 comments on commit 7593979

Please sign in to comment.