Skip to content

Commit 49ce7b5

Browse files
authored
Merge branch 'dev' into ms-add_host
2 parents c5ef099 + 194141d commit 49ce7b5

File tree

281 files changed

+8250
-1899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+8250
-1899
lines changed

.env.example

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ SITE_ID=4
1414
DB_USER=physionet
1515
DB_PASSWORD=password
1616
DB_HOST=localhost
17+
DB_PORT=5432
1718
DB_NAME=physionet
1819

1920
# Emails
@@ -53,6 +54,9 @@ PAUSE_CREDENTIALING_MESSAGE='PhysioNet will not be taking new applications for c
5354
# GOOGLE_APPLICATION_CREDENTIALS=json
5455
GCP_DELEGATION_EMAIL=email
5556

57+
# AWS user authentication bucket (see deploy/README.md)
58+
#AWS_VERIFICATION_BUCKET_NAME=example-bucket
59+
5660
# AWS
5761
# Used to provide MIMIC through AWS, this will include S3, Redshift, Spark
5862
# Key and key2 are predefined by AWS, can be changed but IT WILL BREAK ALL
@@ -75,6 +79,8 @@ AWS_SHARED_CREDENTIALS_FILE=
7579
S3_OPEN_ACCESS_BUCKET=
7680
# The default bucket name to store logs and metrics related to project usage.
7781
S3_SERVER_ACCESS_LOG_BUCKET=
82+
# The default bucket name to store projects with a 'RESTRICTED/CREDENTIALED' access policy.
83+
S3_CONTROLLED_ACCESS_BUCKET=
7884

7985
# Datacite
8086
# Used to assign the DOIs
@@ -99,6 +105,14 @@ ORCID_REDIRECT_URI=http://localhost:8000/authorcid
99105
ORCID_CLIENT_ID=SECRET
100106
ORCID_CLIENT_SECRET=SECRET
101107
ORCID_SCOPE='/read-limited,/activities/update'
108+
ORCID_DOMAIN=https://sandbox.orcid.org
109+
ORCID_LOGIN_REDIRECT_URI=http://localhost:8000/authorcid_login
110+
ORCID_AUTH_URL=https://sandbox.orcid.org/oauth/authorize
111+
ORCID_TOKEN_URL=https://sandbox.orcid.org/oauth/token
112+
ORCID_LOGIN_ENABLED=False
113+
ORCID_LOGIN_BUTTON_TEXT="Log in using ORCID iD"
114+
# JWKS is used to get public key from orcid and validate access token using this public key
115+
ORCID_OPEN_ID_JWKS_URL=https://sandbox.orcid.org/oauth/jwks
102116

103117
STORAGE_TYPE=LOCAL
104118

@@ -137,6 +151,10 @@ SSO_LOGIN_BUTTON_TEXT="Single Sign-On"
137151
ENABLE_FILE_DOWNLOADS_OPTION=true
138152
COPY_FILES_TO_NEW_VERSION=true
139153

154+
# Allowed Access Policies [Optional] - This is a list of access policies that can be assigned to a newly submitted project on the 'Project Access' page.
155+
# The environment variable is a stringified list of access policies separated by commas
156+
ALLOWED_ACCESS_POLICIES="OPEN,RESTRICTED,CREDENTIALED,CONTRIBUTOR_REVIEW"
157+
140158
# Used for bucket creation
141159
GCP_DOMAIN=
142160

@@ -214,3 +232,14 @@ CITI_SOAP_URL="https://webservices.citiprogram.org/SOAP/CITISOAPService.asmx"
214232
# See https://docs.djangoproject.com/en/4.2/ref/settings/
215233
DATA_UPLOAD_MAX_NUMBER_FILES=1000
216234
DATA_UPLOAD_MAX_MEMORY_SIZE=2621440
235+
236+
# OAUTH_CLIENT_APP_NAME is the name of the default OAuth application used
237+
# when programmatically generating access tokens (e.g., via the /settings/tokens
238+
# interface or other internal APIs).
239+
#
240+
# This should match the 'name' field of a registered OAuth Application in the
241+
# django-oauth-toolkit Application model.
242+
#
243+
# It is used to associate new access tokens with a known, trusted client
244+
# (typically representing the main web interface or API client).
245+
OAUTH_CLIENT_APP_NAME=local_web_client

.github/workflows/docker-build-test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# All published images are also tagged with corresponding git commit sha.
55
#
66
# To run the tests locally in a similar environment to GitHub Actions you can use:
7-
# $ docker-compose -f docker/docker-compose.test.yml build
8-
# $ docker-compose -f docker/docker-compose.test.yml run --rm test
9-
# $ docker-compose -f docker/docker-compose.test.yml down
7+
# $ docker compose -f docker/docker-compose.test.yml build
8+
# $ docker compose -f docker/docker-compose.test.yml run --rm test
9+
# $ docker compose -f docker/docker-compose.test.yml down
1010

1111
name: Docker / Build, Test and Publish
1212

@@ -17,6 +17,9 @@ on:
1717
pull_request:
1818
branches:
1919
- dev
20+
merge_group:
21+
types:
22+
- checks_requested
2023
workflow_dispatch:
2124
inputs:
2225
publish_tag:
@@ -42,18 +45,18 @@ jobs:
4245
load: true
4346

4447
- name: Run tests
45-
run: docker-compose -f docker/docker-compose.test.yml run --rm test
48+
run: docker compose -f docker/docker-compose.test.yml run --rm test
4649

4750
- name: Stop and remove containers
48-
run: docker-compose -f docker/docker-compose.test.yml down
51+
run: docker compose -f docker/docker-compose.test.yml down
4952

5053
- name: Save physionet image
5154
if: github.ref == 'refs/heads/dev' || github.event.inputs.publish_tag
5255
run: docker save physionet:latest | gzip > /tmp/physionet.tar.gz
5356

5457
- name: Upload physionet image
5558
if: github.ref == 'refs/heads/dev' || github.event.inputs.publish_tag
56-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v4
5760
with:
5861
name: physionet
5962
path: /tmp/physionet.tar.gz
@@ -66,7 +69,7 @@ jobs:
6669
needs: build
6770
steps:
6871
- name: Download physionet image
69-
uses: actions/download-artifact@v2
72+
uses: actions/download-artifact@v4.1.7
7073
with:
7174
name: physionet
7275
path: /tmp

.github/workflows/physionet-build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches:
1111
- dev
12+
merge_group:
13+
types:
14+
- checks_requested
1215

1316
jobs:
1417
test:

.github/workflows/physionet-upgrade-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches:
99
- dev
10+
merge_group:
11+
types:
12+
- checks_requested
1013

1114
jobs:
1215
testupgrade:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ db.sqlite3
88
media/active-projects/*
99
media/archived-projects/*
1010
media/published-projects/*
11+
media/ethics/*
1112
media/users/*
1213
media/credential-applications/*
14+
media/training/*
1315
physionet-django/static/published-projects/*
1416
physionet-django/static/wfdbcal
1517
physionet-django/test.log

GuideForNewDevelopers.md

Lines changed: 12 additions & 12 deletions

README.md

Lines changed: 9 additions & 9 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To whom it may concern:
2+
3+
The study described here has been approved and poses no ethical
4+
concerns.
5+
6+
The Authorities

demo-files/media/credential-applications/0ZtcSrCEk0QmCh4JTAec renamed to demo-files/media/training/0ZtcSrCEk0QmCh4JTAec

File renamed without changes.

demo-files/media/credential-applications/0oq4LtvuSZs2hjRyuQCo renamed to demo-files/media/training/0oq4LtvuSZs2hjRyuQCo

File renamed without changes.

0 commit comments

Comments
 (0)