Skip to content
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

Updating to master branch #1

Open
wants to merge 6,344 commits into
base: master-v1.4.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6344 commits
Select commit Hold shift + click to select a range
6bad1dd
:lock: Fix Integration Security Tests
haynescd Jan 23, 2024
7ad2958
Remove port binding for mysql
haynescd Jan 23, 2024
84e599d
Remove Public group from test integration studies and disable filter …
haynescd Jan 23, 2024
323fca3
:lock: Add support for configurable Role Attribute name Property
haynescd Jan 24, 2024
7f4feb2
Add Todo and Add another Study for testing
haynescd Jan 24, 2024
c54b61f
Sonar Cloud Fixes
haynescd Jan 24, 2024
0ff82e5
Add dynamic host to legacy swagger api
haynescd Jan 25, 2024
5ee68c5
Remove default springdoc properties
haynescd Jan 25, 2024
780cc50
Fix some issues and code cleanup (#10567)
JREastonMarks Jan 26, 2024
18e1224
Adds support for trailing slashes (#10572)
JREastonMarks Jan 26, 2024
1758c27
:lock: Fix Custom OAuth Config to grab Authorities
haynescd Jan 26, 2024
8e151bc
:lock: Add Cors Config Back
haynescd Jan 26, 2024
2595da2
Remove auto-gen from intellij
haynescd Jan 26, 2024
4bccc62
Fix SAML Security Integration tests by allowing cors
haynescd Jan 29, 2024
3cfca1e
Merge pull request #10579 from cBioPortal/demo-6.0.0
haynescd Jan 29, 2024
4873c7b
add custom driver related properties
qlu-cls Jan 30, 2024
f6fbacc
Changes snpOnly from Boolean to boolean
qlu-cls Jan 30, 2024
5b82f6d
Merge remote-tracking branch 'upstream/master' into mutation-data-counts
qlu-cls Jan 30, 2024
6a0912a
add structural variant count back to study mapper (#10582)
uklineale Jan 30, 2024
fa710fb
add more comments in the code
qlu-cls Jan 30, 2024
328dc93
remove import * from all changes in this PR
qlu-cls Jan 30, 2024
f40e1f3
Merge branch 'master' into mutation-data-counts
7xuanlu Jan 31, 2024
24c65b9
fix rfc list link
inodb Feb 1, 2024
67dbdcb
:lock: Add 401 response when not authorized exception is thrown inste…
haynescd Feb 1, 2024
5dcd3b7
Merge pull request #10590 from cBioPortal/feature/Add-Api-401-Back
haynescd Feb 1, 2024
7e8eb16
:lock: Add Saml Plus Basic Auth
haynescd Jan 31, 2024
db00084
Remove debug
haynescd Feb 1, 2024
f549ec3
Add Bcrypt Encoder for basic.password storage
haynescd Feb 1, 2024
ebfabb2
Remove Deprecated Filter
haynescd Feb 1, 2024
f0d06e1
Merge pull request #10588 from cBioPortal/feature/Add-SAML-Basic-Auth
haynescd Feb 1, 2024
648d61a
Fix Cache for StudyViewApplier
haynescd Feb 1, 2024
f51633f
Merge pull request #10593 from cBioPortal/feature/10591-Fix-Cache-For…
haynescd Feb 1, 2024
afba3e9
Fix link to Architecture overview
pieterlukasse Feb 5, 2024
09de8a8
Merge pull request #10596 from cBioPortal/pieterlukasse-patch-1
inodb Feb 5, 2024
bac6b4b
Update darwin configuration (#10599)
dippindots Feb 5, 2024
5a39efe
Update backend configuration (#10602)
dippindots Feb 7, 2024
297c46d
Add CheckDarwinAccess to proxy controller
haynescd Feb 7, 2024
232730c
fix sonar issues
haynescd Feb 7, 2024
b239af0
Rename properties
haynescd Feb 7, 2024
f7615aa
Merge pull request #10605 from cBioPortal/feature/Add-CheckDarwinAcce…
haynescd Feb 7, 2024
d834365
Prep v6.0 release
inodb Feb 7, 2024
ba07ece
Merge pull request #10607 from cBioPortal/prep-v6.0.0
inodb Feb 7, 2024
2a0c02a
prep pom for v6.0.1
inodb Feb 7, 2024
d96653d
jsp files deleted (#10587)
amanbhardwaj12072003 Feb 8, 2024
326823b
10584 fix tutorials (#10606)
uklineale Feb 8, 2024
befaab1
rename custom driver properties under oncoprint
qlu-cls Feb 8, 2024
1c9d05f
Merge branch 'master' of https://github.com/cBioPortal/cbioportal int…
qlu-cls Feb 8, 2024
972949b
Merge branch 'master' of https://github.com/cBioPortal/cbioportal int…
qlu-cls Feb 8, 2024
950ce91
Merge pull request #10559 from cBioPortal/mutation-data-counts
7xuanlu Feb 8, 2024
d539d0c
Merge branch 'master' into custom-driver-config
7xuanlu Feb 8, 2024
1ca2687
Merge pull request #10611 from cBioPortal/custom-driver-config
7xuanlu Feb 8, 2024
994f846
10584 fix tutorials (#10614)
uklineale Feb 9, 2024
94b95a0
Update bravado documentation with persistent authorization
MatthijsPon Feb 12, 2024
ef5c8fd
Merge pull request #10616 from cBioPortal/update-bravado-docs
inodb Feb 12, 2024
23ebb38
fix migrate_db.py path in entrypoint (#10535)
nr23730 Feb 12, 2024
e1f5cf1
Add back frontend app name property (#10619)
alisman Feb 12, 2024
7a6ece7
Update ER diagram to db schema 2.13.1 (#10617)
forus Feb 13, 2024
9354afc
Changes Immutable List to Mutable List (#10620)
JREastonMarks Feb 13, 2024
351e81f
Update frontend v6.0.1
dippindots Feb 13, 2024
cd82be1
Prepare for v6.0.2
dippindots Feb 13, 2024
336c2ec
add document for inter-repository dependencies (#10621)
sheridancbio Feb 14, 2024
d327a10
Add /faq route
inodb Feb 14, 2024
35a6dc5
Merge pull request #10624 from cBioPortal/add-faq
inodb Feb 14, 2024
41e5b8c
Change List to Immutable List (#10629)
JREastonMarks Feb 14, 2024
5d95f35
support default_sort_column config for mutation, CNA, and SV tables (…
7xuanlu Feb 14, 2024
3d5a3fd
Add news until May 2023
inodb Feb 14, 2024
701b7bb
fix newlines issue in news
inodb Feb 15, 2024
6673d82
update custom bins screenshot
inodb Feb 15, 2024
accee3b
Update Security Integration test to remove selenium container (#10615)
haynescd Feb 15, 2024
d9a96f7
Change List to Immutable List (#10633)
7xuanlu Feb 15, 2024
7aa6afa
Add configuration to disable study tags (#10637) (#10640)
JREastonMarks Feb 16, 2024
a859769
Remove old info from deployment procedure
inodb Feb 16, 2024
3e987e5
Fix Immutable List to Mutable List (#10639)
JREastonMarks Feb 16, 2024
c34bb9c
Merge pull request #10631 from cBioPortal/backfill-202305-news
inodb Feb 19, 2024
f0701d9
Add missing webAPI route (#10650)
inodb Feb 20, 2024
3885397
Merge pull request #10643 from cBioPortal/update-deployment-procedure…
inodb Feb 20, 2024
9849606
Update URI to include api-legacy
JREastonMarks Feb 21, 2024
0646689
Fix docs redirects for application properties
inodb Feb 21, 2024
f05a1cb
remove portal.properties reference
inodb Feb 21, 2024
f5b51b6
Merge branch 'master' into fix-docs-redirects
JREastonMarks Feb 21, 2024
7a63476
Merge pull request #10657 from cBioPortal/fix-docs-redirects
inodb Feb 21, 2024
c73883f
Merge pull request #10656 from cBioPortal/fix-10649-CIS-URL-Update
inodb Feb 21, 2024
384637d
Fix News Page redirect (#10658)
inodb Feb 21, 2024
01d20f9
Frontend v6.0.2
dippindots Feb 21, 2024
b417977
Merge pull request #10659 from cBioPortal/frontend-v6.0.2
dippindots Feb 21, 2024
a7d71b7
Update documentation on deploy without docker (#10655)
JREastonMarks Feb 27, 2024
35d6546
mysql-connector-java version update to avoid vulnerabilities (#10681)
amanbhardwaj12072003 Mar 1, 2024
cac8e98
Frontend v6.0.3
dippindots Mar 5, 2024
f58fa39
Merge pull request #10689 from cBioPortal/frontend-v6.0.3
dippindots Mar 5, 2024
e97df01
Delete requirements.txt (#10686)
JREastonMarks Mar 6, 2024
e2a81e0
Update news 2023 - Mar 2024 (#10691)
inodb Mar 7, 2024
e37d196
Fix Mutation Data Counts Endpoint on Mutation Tables and Rename Retur…
7xuanlu Mar 7, 2024
f996800
Fix formatting of the news page
inodb Mar 7, 2024
a84fcba
fix more formatting of news
inodb Mar 7, 2024
7788d49
Add release 15 for GENIE to news (#10699)
ritikakundra Mar 11, 2024
18f3033
Replace deprecated class
haynescd Mar 12, 2024
3f2b615
Merge pull request #10704 from cBioPortal/demo-fix-genie-api-authoriz…
haynescd Mar 13, 2024
88d28ff
Update version of core
JREastonMarks Mar 7, 2024
f7ffc43
Update requirements
JREastonMarks Mar 7, 2024
e30627a
remove entry that was readded
JREastonMarks Mar 7, 2024
897d581
Update Dockerfile
JREastonMarks Mar 7, 2024
edb91c8
Update Core to 1.0.6 to pull requirements.txt from jar
haynescd Mar 12, 2024
6ba3105
Merge pull request #10693 from cBioPortal/update-core-to-1.0.5
haynescd Mar 13, 2024
e432ab8
:bug: Update core version in dockerFile
haynescd Mar 13, 2024
6c62391
Merge pull request #10708 from cBioPortal/feature/fix-core-dep
haynescd Mar 13, 2024
85eba8f
:heavy_minus_sign: Remove mockserver dep from production build and on…
haynescd Mar 13, 2024
aa10c54
Update Security integration tests to run only on pull request
haynescd Mar 13, 2024
209bd06
Merge pull request #10707 from cBioPortal/demo-javax-test
haynescd Mar 13, 2024
d991083
Update Saml Security Tests (#10709)
haynescd Mar 14, 2024
6d1f271
:wrench: Remove temp docker image (#10713)
haynescd Mar 14, 2024
c2ce671
Fix groups and authorities filter issue
dippindots Mar 12, 2024
ca24f39
Update isEmpty logic
haynescd Mar 14, 2024
f4ebe3b
Merge pull request #10700 from cBioPortal/demo-fix-group-filter
dippindots Mar 14, 2024
2c947d7
Frontend v6.0.4
dippindots Mar 13, 2024
3ed637b
Merge pull request #10705 from cBioPortal/frontend-v6.0.4
dippindots Mar 15, 2024
24819c3
prepare for release 6.0.5
dippindots Mar 15, 2024
a2539ae
:lock: Update to allow for multiple Authentication Providers (#10725)
haynescd Mar 27, 2024
47e13a8
Frontend v6.0.5
dippindots Mar 28, 2024
14e00a6
Prepare for v6.0.6
dippindots Mar 28, 2024
8361b0a
:bug: Fix RedisAutoConfig Exclusion logic to exclude if redis session…
haynescd Apr 1, 2024
7fc6800
add newsletter to news (#10730)
tmazor Apr 2, 2024
251375c
Update News-Genie.md (#10748)
ritikakundra Apr 16, 2024
12cfb4b
Change overview of resources to Tutorials
inodb Apr 18, 2024
5f2e5b7
fix tutorials link in summary.md
inodb Apr 18, 2024
1388a2c
fix /visualize redirect
inodb Apr 18, 2024
09e55be
add missing publication to docs
inodb Apr 19, 2024
b47ec69
Update release procedure protocol (#10644)
inodb Apr 24, 2024
e9e6a45
Remove spring-boot-starter-data-mongodb (#10562)
nr23730 Apr 29, 2024
f38bc51
Enable multi-study study-view cache (#10764)
kalletlak Apr 29, 2024
48d4ded
Annotate mutation-data-count return type
qlu-cls May 2, 2024
92bf128
Fix mutation-data-count API sync issue (#10777)
inodb May 3, 2024
4d54944
move treatments endpoint to internal API (#10505)
jagnathan May 3, 2024
f6acca7
Refactor sort/search/pagination for ClinicalData table endpoint
pvannierop Sep 28, 2023
82b242e
Suppress import with '*'
pvannierop Mar 5, 2024
5b00ab4
Change methods in PaginationCalculator to static methods
fuzhaoyuan Mar 29, 2024
d316fdf
Add tests for ResourceDataMyBatisRepository
fuzhaoyuan Apr 15, 2024
866f9af
Add tests for ResourceDefinitionMyBatisRepository
fuzhaoyuan Apr 16, 2024
1e8560b
Add private constructors
fuzhaoyuan Apr 16, 2024
0726e4c
Address Code Review - Method refactor, Class rename, Builder pattern
fuzhaoyuan May 3, 2024
7d9bf81
Fix study view filter conflicts
dippindots May 6, 2024
166c955
Merge pull request #10407 from cBioPortal/demo-fix-clinical-table-sor…
dippindots May 7, 2024
c935da6
Remove mongodb conflicts (#10782)
haynescd May 7, 2024
4d3b6d4
add install yarn fix (#10783)
gblaih May 7, 2024
5387e85
Frontend v6.0.6
dippindots May 8, 2024
2cdd217
Prepare v6.0.7 release
dippindots May 8, 2024
c25e3dc
Frontend v6.0.7
dippindots May 16, 2024
c07a8c6
Prepare v6.0.8 release
dippindots May 16, 2024
cbcda62
update news page with March & April releases
tmazor May 17, 2024
7bffbce
Merge pull request #10801 from cBioPortal/tmazor-patch-1
inodb May 17, 2024
68556e8
update release list
sbabyanusha May 20, 2024
0dfb132
Set default API springdoc properties to match those prior to v6 (#10800)
inodb May 23, 2024
46449a6
Frontend v6.0.8
dippindots May 28, 2024
80b3647
Prepare v6.0.9 release
dippindots May 28, 2024
cad049f
Update News.md
sbabyanusha May 29, 2024
492859d
Merge branch 'master' into update_release_list
sbabyanusha May 29, 2024
5999707
Merge pull request #10804 from cBioPortal/update_release_list
ritikakundra May 30, 2024
9b15a70
fixed small README typo (#10814)
Vinny02 Jun 3, 2024
6e5ea64
Update News.md
sbabyanusha Jun 3, 2024
387509c
Merge pull request #10817 from cBioPortal/sbabyanusha-patch-1
ritikakundra Jun 3, 2024
52cbbcf
New Survival Data Endpoint for Dynamic Kaplan-Meier Curve (#10774)
7xuanlu Jun 12, 2024
bc0d5ec
No more security fixes for v5
inodb Jun 19, 2024
25383d0
Remove demo-rfc72 reference from integration test
dippindots Jun 19, 2024
d6ac79f
Update properties file path
dippindots Jun 20, 2024
4663662
fix typo in user guide
inodb Jun 21, 2024
211a119
Merge pull request #10841 from cBioPortal/remove-ref
dippindots Jun 24, 2024
adf38ab
Add bean for CancerStudyPermissionEvaluator (#10825)
Floris-Hyve Jun 24, 2024
017e959
Frontend v6.0.9
dippindots Jun 26, 2024
f15d059
Update cbioportal-core v1.0.8
dippindots Jun 26, 2024
f9fd789
Merge pull request #10864 from cBioPortal/frontend-v6.0.9
dippindots Jun 27, 2024
fa729cb
Prepare v6.0.10 release
dippindots Jun 27, 2024
a5b21b1
Frontend v6.0.10
dippindots Jul 3, 2024
222696c
Prepare v6.0.11 release
dippindots Jul 3, 2024
8e8f86b
Frontend v6.0.11
dippindots Jul 10, 2024
dc2c594
Prepare v6.0.12 release
dippindots Jul 10, 2024
a4a5942
RFC83: Add admin call to make virtual study available for all users o…
forus Jul 10, 2024
f6450f1
Fix sorting in clinicaldata tab of study view (#10889)
alisman Jul 11, 2024
ea8642f
Restrict proxy access to known hosts only (#10884)
onursumer Jul 12, 2024
608fca4
Frontend v6.0.12
dippindots Jul 16, 2024
9fbfa19
Prepare v6.0.13 release
dippindots Jul 16, 2024
5c4aab0
Add Incremental Data Loading Documentation (#10816)
forus Jul 16, 2024
d8e6a1a
Switch off spring security on public VS endpoints (#10893)
forus Jul 17, 2024
28c6b99
Frontend v6.0.13
dippindots Jul 24, 2024
e589b7d
Prepare v6.0.14 release
dippindots Jul 24, 2024
0ab890b
Fix web and date image build
inodb Jul 29, 2024
868273c
Merge pull request #10913 from cBioPortal/demo-fix-docker-web-and-dat…
dippindots Jul 29, 2024
5a33d78
Frontend v6.0.14
dippindots Jul 31, 2024
d550ca1
Prepare v6.0.15 release
dippindots Jul 31, 2024
c7d341b
Update FAQ for GDC Data Release (#10894)
jamesqo Aug 1, 2024
ee2736e
Add NCI-CRDC TCGA and CPTAC studies to news release (#10910)
rmadupuri Aug 1, 2024
f6504f5
Fix broken link in FAQ
jamesqo Aug 2, 2024
5ac82a4
Merge pull request #10924 from cBioPortal/jamesqo-patch-1
averyniceday Aug 2, 2024
791e0fb
add mutational signatures to news (#10930)
tmazor Aug 9, 2024
53d6679
RFC87: add download_custom_buttons_json to application.properties sch…
pappde Aug 12, 2024
6bac584
Fix docker compose deprecation issue (#10939)
dippindots Aug 14, 2024
2577f53
Frontend v6.0.15
dippindots Aug 14, 2024
7e4a888
Prepare v6.0.16 release
dippindots Aug 14, 2024
3569c76
Fix Datahub link in FAQ (#10931)
jamesqo Aug 14, 2024
3fda07c
Deployment/Customization Docs: changed links to relative so they work…
pappde Aug 14, 2024
b3ae689
application.properties: add new property to enum and config_service (…
pappde Aug 15, 2024
ff85ba4
fix frontendproperties readFile() to work with classpath and update d…
pappde Aug 22, 2024
64753c7
Docker: improve instructions for testing the backend with docker (#10…
pappde Aug 22, 2024
229c01f
Fix outdated keycloak docker image (#10908)
ugurkoysuren Aug 27, 2024
010737b
fix cdd url in docs
inodb Aug 27, 2024
ea53e91
Update cbioportal-core v1.0.9
dippindots Aug 29, 2024
f043915
Update News.md with RFC87 (#10941)
pappde Sep 5, 2024
3d37309
Update News.md RFC87 item (#10990)
pappde Sep 23, 2024
f545673
add missing study view filters for clinical data binning (#11007)
onursumer Sep 23, 2024
62bafb6
Fix "Feature development guide" link (#11010)
pozhidaevak Sep 24, 2024
4cdeb95
Frontend v6.0.16
dippindots Sep 24, 2024
840b05a
Prepare v6.0.17 release
dippindots Sep 24, 2024
0a32002
Resolve censored event bug and add caching
kalletlak Sep 27, 2024
e35538f
Update News.md
sbabyanusha Sep 27, 2024
fef066a
Update cache resolver
kalletlak Sep 27, 2024
c65ddcf
Update News.md
sbabyanusha Sep 27, 2024
3bf7642
Update News.md
sbabyanusha Sep 28, 2024
8206a7c
Merge pull request #11027 from kalletlak/km-changes
kalletlak Sep 30, 2024
66df667
Merge pull request #11029 from cBioPortal/sbabyanusha-patch-2
ritikakundra Oct 2, 2024
e2c9193
Update News.md
sbabyanusha Oct 2, 2024
47d8eb0
Frontend v6.0.17
dippindots Oct 3, 2024
74516be
Prepare v6.0.18 release
dippindots Oct 3, 2024
728951c
Add resource-data-all endpoint and MyBatis SQL methods
hweej Oct 7, 2024
66bc067
updated the hyve team and alumni in about-us (#11038)
zeynepkaragoz Oct 8, 2024
9751592
Merge branch 'master' into sbabyanusha-patch-3
sbabyanusha Oct 8, 2024
9862072
Merge pull request #11042 from cBioPortal/sbabyanusha-patch-3
dippindots Oct 8, 2024
46a4565
Update News-Genie.md
sbabyanusha Oct 17, 2024
daa5bf4
Merge pull request #11088 from cBioPortal/sbabyanusha-patch-4
sbabyanusha Oct 17, 2024
b50a31f
Add cacheable method for fetching all data resources by study
hweej Oct 24, 2024
1140812
add name to team
Oct 24, 2024
0a86307
Merge pull request #11121 from zainasir/docs
inodb Oct 24, 2024
1e844bf
Update OS/PFS FAQ
tmazor Oct 25, 2024
2284f83
Merge pull request #11123 from cBioPortal/tmazor-patch-2
inodb Oct 25, 2024
78541fe
Resource definition must be specific to the cancer_study context
hweej Oct 27, 2024
8e1a02b
Merge pull request #11051 from hweej/11004/resource-data-expand-all-r…
inodb Oct 28, 2024
6d589ad
Update pom.xml
zainasir Oct 29, 2024
8c934c4
Prepare for v6.0.19
zainasir Oct 29, 2024
79e72ab
Fix cache annotation resource data
inodb Nov 1, 2024
8e4d61a
:lock: Update Default Filter Chain Ordering for Spring Security
haynescd Nov 1, 2024
df9d9a5
Merge pull request #11152 from cBioPortal/fix-cache-annotation-resour…
inodb Nov 1, 2024
f5574ee
Merge pull request #11153 from cBioPortal/demo-fix-spring-security-fi…
dippindots Nov 1, 2024
93915d4
Frontend v6.0.19
zainasir Nov 1, 2024
a925541
Prepare for v6.0.20
zainasir Nov 1, 2024
d02df6c
Add Chromoscope News (#11133)
inodb Nov 1, 2024
31073bb
Frontend v6.0.20
zainasir Nov 5, 2024
a431877
Prepare for v6.0.21
zainasir Nov 5, 2024
38f5060
Rfc85 dynamic virtual study (#11040)
forus Nov 6, 2024
a4e8f8b
Add ICI note to chromoscope news (#11164)
inodb Nov 6, 2024
c6d4050
Add Mutation Assessor v4 news (#11148)
leexgh Nov 11, 2024
d2bb276
Remove unused noauthsessionservice property (#11169)
nbentoneves Nov 15, 2024
0c37b09
Add AlphaMissense news (#11202)
leexgh Nov 18, 2024
4d77797
fix indentation in news
inodb Nov 19, 2024
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
240 changes: 240 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
defaults: &defaults
docker:
- image: circleci/node:15.2.1-browsers

version: 2
jobs:
build_backend:
docker:
- image: maven:3-eclipse-temurin-21
working_directory: /tmp/repos/cbioportal
steps:
- checkout
- run:
name: Concatenate poms to use as cache key for mvn deps
command: cat $(git ls-files '*pom.xml*') > poms_combined
- restore_cache:
keys:
- v1-mvn-dependencies-{{ checksum "poms_combined" }}
- v1-mvn-dependencies-
- run:
name: Build and unzip jar
command: |
cp src/main/resources/application.properties.EXAMPLE src/main/resources/application.properties && \
mvn -DskipTests clean package
- save_cache:
paths:
- ~/.m2
key: v1-mvn-dependencies-{{ checksum "poms_combined" }}
- persist_to_workspace:
root: /tmp/repos
paths:
- cbioportal

pull_frontend_codebase:
<<: *defaults
working_directory: /tmp/repos
steps:
- checkout
- run:
name: Pull frontend code
command: |
export FRONTEND_VERSION=$(grep '<frontend\.version>' pom.xml | sed 's/<frontend\.version>//g' | sed 's|</frontend\.version>||' | tr -d '[:blank:]') && \
export FRONTEND_ORG=$(grep 'frontend\.groupId' pom.xml | sed 's/<frontend\.groupId>//g' | sed 's|</frontend\.groupId>||' | tr -d '[:blank:]' | cut -d. -f3) && \
git clone https://github.com/$FRONTEND_ORG/cbioportal-frontend.git && \
cd cbioportal-frontend && \
git fetch --tags
- persist_to_workspace:
root: /tmp/repos
paths:
- cbioportal-frontend

install_yarn:
<<: *defaults
working_directory: /tmp/repos/cbioportal-frontend
steps:
- attach_workspace:
at: /tmp/repos
#- run:
# name: "Install yarn at specific version"
# command:
# sudo npm install --global [email protected]
- run:
name: "Show yarn and node versions"
command: |
node --version
yarn --version
# cache build artifacts. Use concatenation of all source files as cache
# key. If there are no changes to src/ and yarn.lock, no need to rebuild
- run:
name: "Concatenate all source files to use as hash key for caching dist folder"
command: "cat yarn.lock $(find src/ -type f | sort) webpack.config.js vendor-bundles.webpack.config.js > has_source_changed"
- restore_cache:
keys:
- v4-dependencies-plus-dist-{{ checksum "has_source_changed" }}
- v4-dependencies-{{ checksum "yarn.lock" }}
# Download and cache dependencies
- run: yarn
# - run:
# name: "Make sure lock file is still the same"
# command: 'git diff --exit-code yarn.lock > /dev/null || (echo -e "New package lock file at $(cat yarn.lock | curl -F c=@- https://ptpb.pw | grep url) (include this file in your PR to fix this test)"; git diff --exit-code yarn.lock; exit 1)'
- save_cache:
paths:
- node_modules
key: v4-dependencies-{{ checksum "yarn.lock" }}
- run:
name: "Run build if no dist folder"
command: 'ls dist || yarn run build'
environment:
DISABLE_SOURCEMAP: true
NO_PARALLEL: true
no_output_timeout: 25m
- run: cd /tmp/repos/cbioportal-frontend/end-to-end-test && (ls node_modules || yarn install --frozen-lockfile --ignore-engines)
- save_cache:
paths:
- node_modules
- dist
- common-dist
key: v4-dependencies-plus-dist-{{ checksum "has_source_changed" }}
- persist_to_workspace:
root: /tmp/repos
paths:
- cbioportal-frontend

end_to_end_tests_localdb:
working_directory: /tmp/repos/cbioportal-frontend
machine:
enabled: true
image: ubuntu-2204:2023.02.1
resource_class: large
steps:
- attach_workspace:
at: /tmp/repos
- run:
name: Setup python libraries
command: |
pip3 install requests pyyaml
- run:
name: Install dependencies
command: |
sudo apt-get update && \
sudo apt-get install jq
- run:
name: Determine what backend image to run
command: |
if [[ -n "${CIRCLE_PR_USERNAME}" ]]; then \
sed -i '/BACKEND.*/d' env/custom.sh && \
echo -e "\nexport BACKEND=$CIRCLE_PR_USERNAME:$CIRCLE_SHA1" >> $PORTAL_SOURCE_DIR/env/custom.sh; \
else \
echo -e "\nexport BACKEND=$CIRCLE_PROJECT_USERNAME:$CIRCLE_SHA1" >> $PORTAL_SOURCE_DIR/env/custom.sh; \
fi
- run:
name: Setup e2e-environment
command: |
source $PORTAL_SOURCE_DIR/env/custom.sh || true && \
cd $TEST_HOME/runtime-config && \
./setup_environment.sh && ./setup_environment.sh >> $BASH_ENV
- run:
name: Build custom backend
command: |
mkdir -p $E2E_WORKSPACE; \
mv /tmp/repos/cbioportal $E2E_WORKSPACE
- run:
name: Setup docker compose assets
command: |
$TEST_HOME/docker_compose/setup.sh
no_output_timeout: 25m
- run:
name: Create MySQL data directory
command: |
docker volume rm --force cbioportal-docker-compose_cbioportal_mysql_data && mkdir -p $CBIO_DB_DATA_DIR && rm -rf $CBIO_DB_DATA_DIR/*
- restore_cache:
keys:
- v8-cbio-database-files-{{ checksum "/tmp/db_data_md5key" }}
- restore_cache:
keys:
- v8-keycloak-database-files-{{ checksum "e2e-localdb-workspace/keycloak/keycloak-config-generated.json" }}
- run:
name: Init database
command: |
cd $TEST_HOME/docker_compose && echo $CBIO_DB_DATA_DIR && ls -la $CBIO_DB_DATA_DIR && \
[ "$(ls -A $CBIO_DB_DATA_DIR)" ] && echo "DB initialization is not needed." || ./initdb.sh
- run:
name: Change owner of MySQL database files (needed by cache)
command: |
sudo chmod -R 777 $CBIO_DB_DATA_DIR && \
sudo chown -R circleci:circleci $CBIO_DB_DATA_DIR
- save_cache:
paths:
- /tmp/repos/cbioportal-frontend/e2e-localdb-workspace/cbio_db_data
key: v9-cbio-database-files-{{ checksum "/tmp/db_data_md5key" }}
- run:
name: Start cbioportal and other services
command: |
$TEST_HOME/docker_compose/start.sh
- run:
name: Change owner of keycloak MySQL database files (needed by cache)
command: |
if (ls "$KC_DB_DATA_DIR"/* 2> /dev/null > /dev/null); then \
sudo chmod -R 777 $KC_DB_DATA_DIR && \
sudo chown -R circleci:circleci $KC_DB_DATA_DIR; \
fi
- save_cache:
paths:
- /tmp/repos/cbioportal-frontend/e2e-localdb-workspace/kc_db_data
key: v9-keycloak-database-files-{{ checksum "e2e-localdb-workspace/keycloak/keycloak-config-generated.json" }}
- run:
name: Run end-2-end tests with studies in local database
command: |
cd $PORTAL_SOURCE_DIR && \
$TEST_HOME/docker_compose/test.sh
- run:
name: "Make sure all screenshots are tracked (otherwise the test will always be successful)"
command: 'for f in $TEST_HOME/screenshots/reference/*.png; do git ls-files --error-unmatch $f > /dev/null 2> /dev/null || (echo -e "\033[0;31m $f not tracked \033[0m" && touch screenshots_not_tracked); done; ls screenshots_not_tracked > /dev/null 2> /dev/null && exit 1 || exit 0'
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/screenshots
destination: /screenshots
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/shared/image-compare
destination: /image-compare
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/errorShots
destination: /errorShots
- store_test_results:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/junit
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/junit
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/shared/imageCompare.html
destination: /imageCompare.html
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/junit/customReport.json
destination: /customReport.json
- store_artifacts:
path: /tmp/repos/cbioportal-frontend/end-to-end-test/local/junit/errors/
destination: /errors

environment:
PORTAL_SOURCE_DIR: /tmp/repos/cbioportal-frontend/
TEST_HOME: /tmp/repos/cbioportal-frontend/end-to-end-test/local
E2E_WORKSPACE: /tmp/repos/cbioportal-frontend/e2e-localdb-workspace
CBIO_DB_DATA_DIR: /tmp/repos/cbioportal-frontend/e2e-localdb-workspace/cbio_db_data
KC_DB_DATA_DIR: /tmp/repos/cbioportal-frontend/e2e-localdb-workspace/kc_db_data
DOCKER_IMAGE_SESSION_SERVICE: cbioportal/session-service:0.5.0
FRONTEND_TEST_DO_NOT_LOAD_EXTERNAL_FRONTEND: true


workflows:
version: 2
end_to_end_tests:
jobs:
- build_backend
- pull_frontend_codebase
- install_yarn:
requires:
- pull_frontend_codebase
- end_to_end_tests_localdb:
requires:
- build_backend
- pull_frontend_codebase
- install_yarn
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.project
.pydevproject
.classpath
.DS_Store
.github
target
docs
*/target/*
docker
# don't ignore entrypoint scripts
!docker/web-and-data/docker-entrypoint.sh
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ trim_trailing_whitespace = false
# Formats for HTML files only
[**.html]
insert_final_newline = false

[{*.yml, *.yaml}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
30 changes: 9 additions & 21 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
# What? Why?
Fix # .
Fix # (see https://help.github.com/en/articles/closing-issues-using-keywords)

Changes proposed in this pull request:
Describe changes proposed in this pull request:
- a
- b

# Checks
- [ ] Runs on Heroku.
- [ ] Follows [7 rules of great commit messages](http://chris.beams.io/posts/git-commit/). For most PRs a single commit should suffice, in some cases multiple topical commits can be useful. During review it is ok to see tiny commits (e.g. Fix reviewer comments), but right before the code gets merged to master or rc branch, any such commits should be squashed since they are useless to the other developers. Definitely avoid [merge commits, use rebase instead.](http://nathanleclaire.com/blog/2014/09/14/dont-be-scared-of-git-rebase/)
- [ ] Follows the [Google Style Guide](https://github.com/google/styleguide).
- [ ] Make sure your commit messages end with a Signed-off-by string (this line
can be automatically added by git if you run the `git-commit` command with
the `-s` option)
- [ ] If this is a feature, the PR is to rc. If this is a bug fix, the PR is to
hotfix.
- [ ] The commit log is comprehensible. It follows [7 rules of great commit messages](http://chris.beams.io/posts/git-commit/). We can fix this during merge by using a squash+merge if necessary
- [ ] Has tests or has a separate issue that describes the types of test that should be created. If no test is included it should explicitly be mentioned in the PR why there is no test.
- [ ] Is this PR adding logic based on one or more **clinical** attributes? If yes, please make sure validation for this attribute is also present in the data validation / data loading layers (in backend repo) and documented in [File-Formats Clinical data section](https://github.com/cBioPortal/cbioportal/blob/master/docs/File-Formats.md#clinical-data)!
- [ ] Make sure your PR has one of the labels defined in https://github.com/cBioPortal/cbioportal/blob/master/.github/release-drafter.yml

# Any screenshots or GIFs?
If this is a new visual feature please add a before/after screenshot or gif
here with e.g. [GifGrabber](http://www.gifgrabber.com/).
here with e.g. [Giphy CAPTURE](https://giphy.com/apps/giphycapture) or [Peek](https://github.com/phw/peek)

# Notify reviewers
Read our [Pull request merging
policy](../CONTRIBUTING.md#pull-request-merging-policy). If you are part of the
cBioPortal organization, notify the approprate team (remove inappropriate):

@cBioPortal/frontend
@cBioPortal/backend
@cBioPortal/devops

If you are not part of the cBioPortal organization look at who worked on the
policy](../CONTRIBUTING.md#pull-request-merging-policy). It can help to figure out who worked on the
file before you. Please use `git blame <filename>` to determine that
and notify them here:
and notify them either through slack or by assigning them as a reviewer on the PR
Loading