Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
669 commits
Select commit Hold shift + click to select a range
5f97926
Update yarn.lock
zhx828 May 28, 2024
4d56752
Fix compact logic for creation via promotion (#328)
calvinlu3 May 28, 2024
a790580
Merge pull request #329 from zhx828/fix-sentry
zhx828 May 28, 2024
541be66
Fix tumor name review logic (#331)
calvinlu3 May 28, 2024
5d7bfbb
Update pom.xml
calvinlu3 May 28, 2024
459720a
Fix immediate deletion logic (#332)
calvinlu3 May 29, 2024
53c0039
sort cancer types alphabetically (#336)
bprize15 May 31, 2024
62f49c1
close mutation collapsible when not in firebase (#338)
bprize15 May 31, 2024
894035d
End keycloak session if user is not authorized (#334)
calvinlu3 May 31, 2024
e8bc4a2
Fda level saved in firebase should have prefix except for no level (#…
calvinlu3 May 31, 2024
d059064
Add DOM tests for collapsibles (#333)
calvinlu3 May 31, 2024
dfbcaba
Update pom.xml
calvinlu3 Jun 3, 2024
83f5b80
Add screenshot tests (#330)
bprize15 Jun 4, 2024
7386cf7
fix mutation collapsibles rerendering (#342)
bprize15 Jun 5, 2024
b3329cd
reduce blinking on mutation list (#339)
bprize15 Jun 5, 2024
452bfb5
Meta review levels should not have actions/info (#343)
calvinlu3 Jun 6, 2024
ec1250c
Update pom.xml
calvinlu3 Jun 6, 2024
cfbdbf8
add more screenshot tests (#341)
bprize15 Jun 6, 2024
220753a
change textareas to autoresize (#345)
bprize15 Jun 7, 2024
4adbb8a
Add mutation list sorting options and review filter (#344)
bprize15 Jun 7, 2024
415a68d
change cancer type query to prioritize starts with (#346)
bprize15 Jun 10, 2024
754d223
Update cbioportal linkout url
zhx828 Jun 12, 2024
c8ec260
Merge pull request #352 from zhx828/update-portal-link
zhx828 Jun 12, 2024
088567c
Update GeneHeader.tsx
zhx828 Jun 12, 2024
daaf901
stage docker builds (#353)
jfkonecn Jun 13, 2024
c1b1ddb
Update reference Regex to support 1 level of nested parenthesis (#356)
calvinlu3 Jun 13, 2024
119590b
Handle 401 response for account endpoint (#357)
calvinlu3 Jun 14, 2024
f4f85b2
Replace npm with yarn (#358)
bprize15 Jun 17, 2024
2562ebf
Add carrier as allele state to genomic indicators table (#363)
calvinlu3 Jun 18, 2024
8cc8d3d
Update review page (#348)
calvinlu3 Jun 20, 2024
4d0157a
Update checkbox styles (#364)
calvinlu3 Jun 20, 2024
72a140a
Fix germline review (#368)
calvinlu3 Jun 20, 2024
531eb0b
Add isGermline arg to all add and update firebase gene service method…
calvinlu3 Jun 20, 2024
2bb1036
add end to end tests (#354)
bprize15 Jun 20, 2024
5c4d62e
fix entity routes (#371)
bprize15 Jun 26, 2024
57042ed
Parse therapy uuid to name in review collapsible (#373)
calvinlu3 Jun 26, 2024
0ad1e60
fix losing history when entity name changes (#375)
bprize15 Jun 28, 2024
b21259e
allow searching by mutations (#377)
bprize15 Jul 2, 2024
1059a3e
set default values for new/old and fix add parsing (#379)
bprize15 Jul 2, 2024
97b9ac1
use oncokb icon as cursor when logo hovered (#378)
bprize15 Jul 3, 2024
6c957b8
Introduce Data Import tab (#367)
zhx828 Jul 8, 2024
1321f07
Add additional e2e tests (#372)
calvinlu3 Jul 10, 2024
16c54d1
Update review page created collapsible styles (#383)
calvinlu3 Jul 18, 2024
4c8e233
Update add mutation modal
zhx828 Jul 19, 2024
a24bfbb
Merge pull request #387 from zhx828/enable-pc
zhx828 Jul 19, 2024
c364b00
Check if mutations data is available before using (#388)
calvinlu3 Jul 19, 2024
6db18d4
Refactor to use multi location updates (#382)
calvinlu3 Jul 19, 2024
133975b
Add Pathogenic Variants to Mutations list when adding genomic indicator
zhx828 Jul 22, 2024
8e63776
Merge pull request #389 from zhx828/add-path-vars
zhx828 Jul 24, 2024
79ceccd
Add beta site banner (#386)
calvinlu3 Jul 24, 2024
c527e40
Check if treatment is undefined (#392)
calvinlu3 Jul 26, 2024
020f1d4
Improve diff viewer prop types (#391)
calvinlu3 Jul 26, 2024
a5aebfb
Remove code for any cancer type with level <=0
zhx828 Jul 31, 2024
72434a3
Show pagination when table has more records than the default paging size
zhx828 Jul 31, 2024
aa333ec
Merge pull request #397 from zhx828/remove-tt-code
zhx828 Jul 31, 2024
55a0abb
Support slash in review collapsible title (#395)
calvinlu3 Jul 31, 2024
96000b8
Curation platform supports 3 letter code (#390)
carrotcatnyc Jul 31, 2024
a5950e6
Fix cancer type change reverted check (#394)
calvinlu3 Jul 31, 2024
2ce94a5
Feature/strict (#374)
jfkonecn Aug 1, 2024
d09327c
Add async to getSessionGen (#400)
calvinlu3 Aug 1, 2024
46e2a2c
Fixed Webdriver Test docker-compose missing CI/CD bug (#401)
jfkonecn Aug 2, 2024
149fb53
Fix Excluded RCTs review (#399)
calvinlu3 Aug 2, 2024
5bd266e
add vus with special interpretation option for germline (#402)
bprize15 Aug 6, 2024
173a0ed
Upgrade backend dependencies based on jHipster 8.5 (#384)
zhx828 Aug 8, 2024
e8725a7
Fix realtime level dropdown inputs (#404)
calvinlu3 Aug 8, 2024
f743c18
Fix cancer type select (#405)
calvinlu3 Aug 9, 2024
5867a00
show individual mutations in not curatable tooltip (#403)
bprize15 Aug 9, 2024
0b6cd56
Update pom.xml
zhx828 Aug 9, 2024
159c668
Merge pull request #406 from zhx828/update-version
zhx828 Aug 9, 2024
c739d0a
Update github action release to support multiple branches
zhx828 Aug 9, 2024
0f1c103
Fix cancer type select missing main types (#409)
calvinlu3 Aug 13, 2024
af8a0be
Update pom.xml (#410)
calvinlu3 Aug 13, 2024
48dda0d
Merge pull request #407 from zhx828/update-release-action
zhx828 Aug 13, 2024
75a69da
Update release-management.yml
zhx828 Aug 13, 2024
dd0da3e
Merge pull request #411 from oncokb/github-action-update
zhx828 Aug 13, 2024
16db7f3
Update release-management.yml
zhx828 Aug 13, 2024
97b02a6
Merge pull request #412 from oncokb/zhx828-patch-1
zhx828 Aug 13, 2024
27e4964
Merge release management action into after branch commit action
zhx828 Aug 13, 2024
082d3d5
Merge pull request #413 from oncokb/update-release-management
zhx828 Aug 13, 2024
754e32b
Update after-branch-commit.yml
zhx828 Aug 13, 2024
1aecfe2
Update pom version
Aug 13, 2024
ba29ccc
Update docker-release.yml
zhx828 Aug 13, 2024
341934a
Update docker-release.yml
zhx828 Aug 13, 2024
eea2ce2
Update pom version
Aug 13, 2024
640d1c7
Update docker-release.yml
zhx828 Aug 13, 2024
7f7aed5
Update pom version
Aug 13, 2024
77721c0
Update after-branch-commit.yml
zhx828 Aug 13, 2024
a394639
Update after-branch-commit.yml
zhx828 Aug 13, 2024
41a0340
Update pom version
Aug 13, 2024
dc18229
Tagging release on sentry
zhx828 Aug 13, 2024
63d9572
Allow excluded CT to be review (#415)
calvinlu3 Aug 14, 2024
dd108ab
Update pom version
Aug 14, 2024
30f23d3
Merge pull request #414 from zhx828/tagging-sentry-version
zhx828 Aug 15, 2024
d73e996
Add back javax.xml.bind
zhx828 Aug 15, 2024
7c5e209
Initialize Gson with custom Instance serializer
zhx828 Aug 15, 2024
0bc6f53
Report all exceptions to setnry
zhx828 Aug 15, 2024
59c8409
Merge pull request #419 from zhx828/fix-pubmed-tooltip
zhx828 Aug 15, 2024
ccdb0cd
Do not show needs curation for categorical alterations (#417)
bprize15 Aug 16, 2024
a1c7e49
Adjust text area size anytime content size changes (#416)
bprize15 Aug 16, 2024
db82607
Merge pull request #421 from zhx828/update-sentry-settings
zhx828 Aug 16, 2024
5fdf940
Remove uuid from meta when newly created tumor has been deleted (#420)
calvinlu3 Aug 16, 2024
9c3068e
Parse comma seperated alterations and add info icon to add mutation m…
calvinlu3 Aug 16, 2024
64b7e2c
Use treatment valuePath when generating review for excludedRCTs
zhx828 Aug 21, 2024
7950e4f
Merge pull request #423 from zhx828/fix-ecluded-rcts
zhx828 Aug 21, 2024
3663def
Update pom version
Aug 21, 2024
ce5ea2e
Handle when Instant json element is a json object
zhx828 Aug 22, 2024
c3ce224
Merge pull request #424 from zhx828/hot-fix
zhx828 Aug 22, 2024
462c4c4
Textarea in review mode should fit text content (#427)
calvinlu3 Aug 23, 2024
565bc5b
Update pom version
Aug 23, 2024
f661d40
Fix reject cancer type name review (#428)
calvinlu3 Aug 23, 2024
2d1016a
Add reference to oncokb sop alteration nomenclature in add mutation m…
calvinlu3 Aug 30, 2024
d831031
Update pom version
Aug 30, 2024
7f64f9b
Avoid fetching management info repeatedly
zhx828 Sep 9, 2024
6575c8c
Do not rerender the side bar when loading session
zhx828 Sep 9, 2024
fee10a2
Fix drug code not selectable (#435)
calvinlu3 Sep 10, 2024
e0d7e91
Merge pull request #434 from zhx828/fix-user-page
zhx828 Sep 10, 2024
860dbab
Bump actions to latest version (#438)
calvinlu3 Sep 13, 2024
5cc5a79
resize text area when input changes (#440)
bprize15 Sep 19, 2024
8f0b194
add sorting by firebase index (#443)
bprize15 Sep 20, 2024
f269cf8
Delete mutation/tumor/treatment as last step to avoid stale index (#444)
calvinlu3 Sep 23, 2024
908422a
break in middle of word to fix collapsible title overlfow (#442)
bprize15 Sep 24, 2024
79bcf58
Change searchEntities to readHandler instead of updateHandler (#445)
calvinlu3 Sep 24, 2024
f3e0d76
Fixed data validation tool (#447)
jfkonecn Sep 25, 2024
0d93628
Allow curating mutation summary (#433)
zhx828 Sep 25, 2024
8200d24
Parse protein change case insensitive (#441)
zhx828 Sep 26, 2024
88e15ca
Fix adding CDx biomarker association (#450)
calvinlu3 Sep 30, 2024
cc47b5a
use firebase properties directly in backend (#451)
bprize15 Sep 30, 2024
0abddfd
fix references tab (#452)
bprize15 Oct 1, 2024
d37c65a
Added Heap (#448)
jfkonecn Oct 1, 2024
30df3be
Reduce width so sidebar does not go offscren (#446)
bprize15 Oct 1, 2024
267c190
allow comma in mutation name when transcripts present (#453)
bprize15 Oct 1, 2024
df84037
Add tests for stale indices check (#455)
calvinlu3 Oct 4, 2024
3280ed7
Update setup-java action
zhx828 Oct 9, 2024
5ac76a1
Merge pull request #457 from oncokb/zhx828-patch-1
zhx828 Oct 9, 2024
f4e870b
Update pom version
Oct 9, 2024
6c7b3af
Re-support AsyncTable sorting (#459)
calvinlu3 Oct 14, 2024
7f20f2f
Support uploading mutation in somatic and germline (#458)
zhx828 Oct 15, 2024
41ad5ad
Update CDx curation panel to allow combination drugs (#461)
calvinlu3 Oct 22, 2024
6824ffb
Update pom version
Oct 22, 2024
1e73e6e
set cdx and type to undefined when fdaSubmissionEntity not found (#460)
bprize15 Oct 22, 2024
a4a7ca4
Added core submission logic (#370)
jfkonecn Oct 24, 2024
ec9801b
Update pom version
Oct 24, 2024
2464ef6
Update .version-level
jfkonecn Oct 25, 2024
45aafd2
Update action files to align the version level to minor
Oct 25, 2024
d5dc7b0
Update pom version
Oct 25, 2024
ebc17a4
Update .version-level
jfkonecn Oct 25, 2024
19d16a2
Update action files to align the version level to patch
Oct 25, 2024
93e8a6d
Update pom version
Oct 25, 2024
4160079
add genomic indicators to processDeletion (#464)
bprize15 Oct 28, 2024
6a146af
Add reject to created review (#462)
calvinlu3 Oct 31, 2024
8bc7b4c
Save user image to database and display if available (#463)
calvinlu3 Oct 31, 2024
7df2e6d
Allow multiple therapies to be added for CDx biomarker asssociation (…
calvinlu3 Oct 31, 2024
a8ad70b
Give option to create gene when importing data
zhx828 Nov 4, 2024
8708e25
Merge pull request #468 from zhx828/allow-create-gene
zhx828 Nov 6, 2024
8b4edf6
Create gene on gene link click if does not exist (#469)
bprize15 Nov 7, 2024
25b0b77
move gene creation logic to gene page (#471)
bprize15 Nov 8, 2024
dbeec0c
Update pom version
Nov 8, 2024
a346824
Gene header redesign (#470)
calvinlu3 Nov 12, 2024
2008722
Parse slash in mutation name (#473)
calvinlu3 Nov 13, 2024
6d54e66
Align germline color scheme with public website
zhx828 Nov 14, 2024
e6051f8
Meta review should be created by default (#474)
calvinlu3 Nov 14, 2024
296292f
Update pom version
Nov 14, 2024
a493407
Added synonyms to Drugs Endpoint (#476)
jfkonecn Nov 14, 2024
ad18556
Merge pull request #475 from zhx828/update-germline-schem
zhx828 Nov 14, 2024
84a4d28
Allow user to unlock review mode (#478)
calvinlu3 Nov 19, 2024
8768f5a
Fix transcript edit page (#477)
calvinlu3 Nov 20, 2024
c6cb0c9
Check against undefined array items for core submissions (#479)
jfkonecn Nov 20, 2024
288ad33
Add keycloak idp mapper for picture attribute (#480)
calvinlu3 Nov 21, 2024
77ead36
Update pom version
Nov 21, 2024
8f60f5e
Remove duplicate processDeletion call (#483)
calvinlu3 Dec 13, 2024
2b82b44
Create script to backfill all oncokb canonical transcripts (#485)
calvinlu3 Dec 26, 2024
0ac3ae7
Update pom version
Dec 26, 2024
73006f5
Add readOnly in curation page (#481)
gebbing12 Jan 10, 2025
63bbd18
Fix exon annotation not showing (#484)
calvinlu3 Jan 10, 2025
6546ba1
Fix germline page crash (#487)
jfkonecn Jan 16, 2025
24d5da8
Let some component lazy load (#489)
calvinlu3 Jan 23, 2025
58a387e
Update pom version
Jan 23, 2025
bc94019
Mark transcript as canonical in TranscriptTable (#490)
calvinlu3 Jan 24, 2025
52438b5
Fix review when associated variants is undefined
calvinlu3 Jan 28, 2025
91a650e
Temporarily disable heap
calvinlu3 Jan 28, 2025
fbb45aa
Merge pull request #491 from calvinlu3/fix/fh-germline-save
calvinlu3 Jan 28, 2025
f0642cb
Update pom version
Jan 28, 2025
61e99ff
Handle empty snapshot value in DiffViewer (#492)
calvinlu3 Jan 29, 2025
5da279e
Update pom version
Jan 29, 2025
c6787d4
Add Google Tag Manager Back (#493)
jfkonecn Jan 29, 2025
0582e20
Update pom version
Jan 29, 2025
90a67f0
Fix germline GI name review (#494)
calvinlu3 Jan 30, 2025
daa9e9c
fix bug where empty treatment caused empty collapsible (#499)
bprize15 Feb 18, 2025
4ccc3b3
Update pom version
Feb 18, 2025
61b8ed6
Fixed global search (#498)
jfkonecn Feb 18, 2025
dc44a1c
Update pom version
Feb 18, 2025
2786256
Add custom column filtering for synchronous react-table (#486)
gebbing12 Feb 18, 2025
d6c4c46
Allow user to get a list of newly released genes (#501)
calvinlu3 Feb 28, 2025
0beadc9
Sync history between react-router-dom and mobx router store (#504)
calvinlu3 Mar 12, 2025
34566bd
Update pom version
Mar 12, 2025
c8f1109
All curators can access save button (#505)
jfkonecn Mar 20, 2025
3f6c715
Added null checks on validation table (#508)
jfkonecn Apr 11, 2025
c204467
Update pom version
Apr 11, 2025
9e9906a
Decode Hugo Symbol in Curation Page (#510)
jfkonecn Apr 16, 2025
90bf1e3
Removed quotes from value on data upload (#509)
jfkonecn Apr 18, 2025
62e4e85
Update pom version
Apr 18, 2025
9e18561
Update arrays to objects in firebase (#507)
calvinlu3 Apr 21, 2025
60fc6f1
Update action files to align the version level to minor
Apr 21, 2025
99d446b
Update pom version
Apr 21, 2025
7abb39f
Cache drug list into Redis (#512)
calvinlu3 Apr 22, 2025
0bc7557
Update pom version
Apr 22, 2025
8c67c5f
do not append null to inframe string (#511)
bprize15 Apr 22, 2025
4a493ab
Update .version-level
calvinlu3 Apr 22, 2025
abb4116
Update action files to align the version level to patch
Apr 22, 2025
8298486
Update pom version
Apr 22, 2025
1cead81
Wait for drug list before rendering curation page (#513)
calvinlu3 Apr 22, 2025
20a0189
Other Biomarkers Now Works for Review Page (#514)
jfkonecn Apr 23, 2025
9794df7
Update pom version
Apr 23, 2025
25958e4
fix duplicate authors in history tab (#515)
bprize15 Apr 24, 2025
5d5fca1
Update pom version
Apr 24, 2025
c4c5a62
allow download callback for oncokb table (#517)
bprize15 Apr 24, 2025
df5f5d4
Improve import data UX and allow imports to override existing data (#…
calvinlu3 Apr 25, 2025
3dd1710
Added back missing json fields in CompanionDiagnosticDevice (#518)
jfkonecn Apr 28, 2025
0ee1a14
Added back missing json fields in CompanionDiagnosticDevice (#518)
jfkonecn Apr 29, 2025
07f1f99
Update pom version
Apr 29, 2025
af5be5a
Convert FdaSubmission decisionDate and dateReceived from Instant to L…
calvinlu3 May 5, 2025
48ca1fb
Update pom version
May 5, 2025
4bf940e
Fix FDASubmission fetch and show FDASubmission form in popover (#521)
calvinlu3 May 7, 2025
aec2479
Add excel like column filtering and fix CDx table searching (#522)
calvinlu3 May 19, 2025
c8e296f
Feature/data download (#523)
calvinlu3 May 20, 2025
dc06030
Update pom version
May 20, 2025
90c1b81
automatically end review mode if no active reviewer for 5 minutes (#524)
bprize15 May 20, 2025
3a9ae04
Update pom version
May 20, 2025
e93cdf3
only set needs review if non name uuids (#525)
bprize15 Jun 2, 2025
be684df
Curation page no longer freezing (#527)
jfkonecn Jun 10, 2025
8e8e058
Unauthorized page is no longer blank (#528)
ReshmaRamaiah10 Jun 30, 2025
8610b04
Update pom version
Jun 30, 2025
325567f
allow selecting neither and unknown as gene types (#526)
bprize15 Jul 3, 2025
d61d5c0
Handle case when name_review does not exist (#529)
calvinlu3 Jul 14, 2025
3be268e
Update pom version
Jul 14, 2025
99fd6ac
Don't check lastActiveReview when determine if there is unreviewed co…
calvinlu3 Jul 21, 2025
0ba33c6
Update pom version
Jul 21, 2025
79f019b
Feat/support hgvsg (#530)
bprize15 Jul 22, 2025
53a5896
Update pom version
Jul 22, 2025
952e6ce
Fixed infinite re-rendering when you delete a cancer type (#533)
ReshmaRamaiah10 Aug 1, 2025
c009293
review uuid doesn't have 'false' value any more (#534)
ReshmaRamaiah10 Aug 18, 2025
4462bb0
Added request/response status logging (#537)
jfkonecn Aug 20, 2025
367da90
use somatic gene type and background for both somatic and germline (#…
bprize15 Aug 21, 2025
c4e681b
Feat/support p14 (#541)
bprize15 Sep 4, 2025
8ee753a
Update docker-release.yml (#548)
jfkonecn Sep 22, 2025
3147ffb
Update pom version
Sep 22, 2025
8c5dbb9
Fix collapsible incorrectly showing no entry (#549)
jfkonecn Sep 30, 2025
7cdaf66
Prevent duplicate VUS from being added (#550)
jfkonecn Oct 2, 2025
46e265b
Removed need to change version controlled files configurations for lo…
jfkonecn Oct 9, 2025
471ac4b
Fixed Failed to promote VUS to mutation (#552)
jfkonecn Oct 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 12 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
"project": ["./tsconfig.json", "./src/test/javascript/tsconfig.json"]
},
"settings": {
"react": {
Expand All @@ -30,7 +30,6 @@
"default": ["static-field", "instance-field", "constructor", "static-method", "instance-method"]
}
],
"@typescript-eslint/no-parameter-properties": ["warn", { "allows": ["public", "private", "protected"] }],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
Expand All @@ -43,6 +42,17 @@
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/prefer-regexp-exec": "off",

// Added by Ben while upgrading node
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],

"@typescript-eslint/ban-types": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ template: |

## 🕵️‍♀️ Full commit logs

- https://github.com/oncokb/oncokb-transcript/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION
- https://github.com/oncokb/oncokb-curation/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION

122 changes: 122 additions & 0 deletions .github/workflows/after-branch-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: After branch commit

on:
push:
branches:
- master
- rc

jobs:
check-version-level-and-update:
if: github.repository == 'oncokb/oncokb-transcript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Update Version Level'
run: |
git pull
VERSION_LEVEL=$(cat .version-level | tr "[:upper:]" "[:lower:]")

RELEASE_DRAFTER_MINOR='NEXT_MINOR_VERSION'
RELEASE_DRAFTER_PATCH='NEXT_PATCH_VERSION'

if [[ $VERSION_LEVEL == 'minor' ]]; then
sed -i "s/$RELEASE_DRAFTER_PATCH/$RELEASE_DRAFTER_MINOR/gi" .github/release-drafter.yml
fi

if [[ $VERSION_LEVEL == 'patch' ]]; then
sed -i "s/$RELEASE_DRAFTER_MINOR/$RELEASE_DRAFTER_PATCH/gi" .github/release-drafter.yml
fi

CHANGED=$(git diff --name-only HEAD --)
if [ -n "$CHANGED" ]
then
git config user.name oncokb-bot
git config user.email [email protected]
git add .
git commit -m "Update action files to align the version level to $VERSION_LEVEL"
git push
fi

update-draft-release:
needs: [check-version-level-and-update]
if: github.repository == 'oncokb/oncokb-transcript'
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-pom:
needs: [check-version-level-and-update]
if: github.repository == 'oncokb/oncokb-transcript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract branch name
id: extract_branch
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT

- name: Find previous release
id: find_release
uses: actions/github-script@v7
with:
script: |
const branch = '${{ steps.extract_branch.outputs.branch }}';
console.log('Looking for a latest release that is based on branch: ${{ steps.extract_branch.outputs.branch }}');

const releases = await github.rest.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo,
});

const release = releases.data.find(r => (r.target_commitish === branch || r.target_commitish === `refs/heads/${branch}`) && !r.draft);

if (release) {
core.setOutput('tag', release.tag_name);
} else {
core.setFailed("No tag available, fail the action.");
}

- name: 'Get next semantic versions'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ steps.find_release.outputs.tag }}

- name: 'Setup Java'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

- name: 'Get Current Version Level'
id: version_level
run: |
VERSION_LEVEL=$(cat .version-level | tr "[:upper:]" "[:lower:]")
echo "::set-output name=VERSION_LEVEL::$VERSION_LEVEL"

- name: 'Update Pom'
if: ${{ success() }}
env:
NEW_VERSION: ${{ steps.version_level.outputs.VERSION_LEVEL == 'minor' && steps.semvers.outputs.minor || steps.semvers.outputs.patch}}
run: |
echo "${NEW_VERSION}"
git pull
mvn --batch-mode versions:set -DnewVersion=${NEW_VERSION} -DgenerateBackupPoms=false

CHANGED=$(git diff --name-only HEAD --)
if [ -n "$CHANGED" ]
then
git config user.name oncokb-bot
git config user.email [email protected]
git add .
git commit -m 'Update pom version'
git push
fi
89 changes: 0 additions & 89 deletions .github/workflows/after-master-commit.yml

This file was deleted.

47 changes: 39 additions & 8 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,63 @@
name: Build/Push docker image
on:
workflow_dispatch:
inputs:
tag-name:
description: "Tag name to use for the image must start with a v"
required: true
type: string
release:
types: [ published ]
jobs:
main:
if: github.repository == 'oncokb/oncokb-transcript'
name: Build and Push
runs-on: ubuntu-latest
env:
VERSION: ${{ inputs.tag-name || github.ref }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '12'
- uses: actions/setup-java@v2
node-version: '20.12.2'
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- name: Install node.js packages
run: npm install
run: yarn install
- name: Package application with Jib
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
TAG_NAME: ${{ github.event.release.tag_name }}
TAG_NAME: ${{ inputs.tag-name || github.event.release.tag_name }}
REPOSITORY: ${{ github.repository }}
run: |
./mvnw -ntp package -Pprod verify jib:build \
-DskipTests \
-Djib.to.image="${REPOSITORY}:${TAG_NAME:1}" \
-Djib.to.image="mskcc/oncokb-curation:${TAG_NAME:1}" \
-Djib.to.auth.username=$DOCKER_USERNAME \
-Djib.to.auth.password=$DOCKER_PASSWORD

- name: Create a Sentry.io release in oncokb-curation-website
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: memorial-sloan-kettering
SENTRY_PROJECT: oncokb-curation-website
with:
version: ${{ env.VERSION }}
environment: production
version_prefix: oncokb-curation-website-
sourceMapOptions: '{"include": ["target/classes/static/app"]}'

- name: Create a Sentry.io release in oncokb-curation-backend
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: memorial-sloan-kettering
SENTRY_PROJECT: oncokb-curation-backend
with:
version: ${{ env.VERSION }}
environment: production
version_prefix: oncokb-curation-backend-
12 changes: 6 additions & 6 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ jobs:
name: OncoKB Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "12.16"
- uses: actions/setup-java@v2
node-version: "20.12.2"
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- name: Install node.js packages
run: npm install
run: yarn install
- name: Package application
run: ./mvnw -ntp package -Pprod
24 changes: 0 additions & 24 deletions .github/workflows/release-management.yml

This file was deleted.

Loading
Loading