Skip to content

Enhanced GPM-GT integration in application process#112

Draft
bpow wants to merge 44 commits intomainfrom
gpm-gt-epam-integration
Draft

Enhanced GPM-GT integration in application process#112
bpow wants to merge 44 commits intomainfrom
gpm-gt-epam-integration

Conversation

@bpow
Copy link
Copy Markdown
Collaborator

@bpow bpow commented Jan 9, 2026

@bpow
Copy link
Copy Markdown
Collaborator Author

bpow commented Jan 9, 2026

@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
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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'
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Double checking the logic here: do we want the rationale to be shown when editing even if there are no tier1 curated genes?

@bpow bpow force-pushed the gpm-gt-epam-integration branch 3 times, most recently from 465a36b to 08fe4e3 Compare February 2, 2026 21:08
@bpow bpow force-pushed the gpm-gt-epam-integration branch from 08fe4e3 to d270813 Compare February 13, 2026 19:35
@bpow bpow force-pushed the gpm-gt-epam-integration branch 3 times, most recently from 141f27b to c3f3c93 Compare March 3, 2026 18:11
@setiadha-unc setiadha-unc force-pushed the gpm-gt-epam-integration branch from 4142a92 to 902bd05 Compare March 9, 2026 18:23
@bpow bpow force-pushed the gpm-gt-epam-integration branch from 902bd05 to 9f9464d Compare March 9, 2026 20:26
@setiadha-unc setiadha-unc force-pushed the gpm-gt-epam-integration branch 2 times, most recently from d59083f to 88ed058 Compare March 12, 2026 21:58
@bpow bpow force-pushed the gpm-gt-epam-integration branch from 0a71a27 to a5d68d0 Compare March 13, 2026 15:14
@setiadha-unc setiadha-unc force-pushed the gpm-gt-epam-integration branch from b189056 to 6280a47 Compare March 24, 2026 03:57
@setiadha-unc setiadha-unc force-pushed the gpm-gt-epam-integration branch from 4151176 to 5dc9e5b Compare March 26, 2026 14:58
…or scope and rationale. no DTO. GPM-GT-Epam-Integration
… rename table genes to scope_genes. GPM-GT-Epam-Integration
…include in checkpoint. Fix GPM-GT-Integration
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.

2 participants