Enhanced GPM-GT integration in application process#112
Conversation
|
@setiadha-unc has indicated that this may be close to ready (with some potential ongoing discussions for rationale for tiers in GCEP application), so I've rebased against main and opened a draft pull request for review. |
|
|
||
| namespace App\DataTransferObjects; | ||
|
|
||
| class GtDiseaseDto |
There was a problem hiding this comment.
For safety, DTO classes should probably be final readonly. I'd also be interested into looking into use of a FromArrayTrait or Spatie's DataTransferObject library to see if we can make DTO classes more concisely (not just these, but for others in the codebase as well.
| return [ | ||
| 'ids' => 'required|array|min:1', | ||
| 'ids.*' => 'required|integer|exists:genes,id', | ||
| 'tier' => 'nullable|integer|in:1,2,3,4' |
There was a problem hiding this comment.
Is this correct anymore? I think we had changed to having just 2 tiers.
| return this.genes.reduce((n, g) => { return n + ((this.getTier(g) === 1 && this.isCurated(g)) ? 1 : 0); }, 0); | ||
| }, | ||
| shouldShowRationale() { | ||
| return this.group?.is_gcep && (this.tier1CuratedGenesCount > 0 || this.editing); |
There was a problem hiding this comment.
Double checking the logic here: do we want the rationale to be shown when editing even if there are no tier1 curated genes?
465a36b to
08fe4e3
Compare
08fe4e3 to
d270813
Compare
141f27b to
c3f3c93
Compare
4142a92 to
902bd05
Compare
902bd05 to
9f9464d
Compare
d59083f to
88ed058
Compare
0a71a27 to
a5d68d0
Compare
5dc9e5b to
51c38bb
Compare
2da3694 to
ff58d76
Compare
657e30e to
b1857bb
Compare
…include in checkpoint. Fix GPM-GT-Integration
…apshot. GPM-GT-Integration
…PM-GT Integration
…user and super-admin, updated gene -> GDM VCEP step 4 evidence summary. GPM-GT Integration
…or scope and rationale. no DTO. GPM-GT-Epam-Integration
… rename table genes to scope_genes. GPM-GT-Epam-Integration
…PM-GT Integration
…curated gene. GPM-GT Integration
- Replaced gene with GDM at step 4, - Added detail "found in another vcep". GPM-GT Integration
a9adf88 to
7d19f80
Compare
Related to multiple JIRA issues: https://broadinstitute.atlassian.net/jira/software/projects/GPM/boards/828?selectedIssue=GPM-500 and dependent on https://broadinstitute.atlassian.net/browse/GT-70.