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

Deploy to prod #386

Merged
merged 216 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
59e8355
Use gettext_lazy instead of ugettext_lazy
amstilp Nov 20, 2023
96261d3
Update factories for postgeneration save deprecation
amstilp Nov 20, 2023
fac1db5
Merge pull request #296 from UW-GAC/maint/clean-up-test-warnings
amstilp Nov 20, 2023
fcb5d38
Update requirements for django 4.2
amstilp Nov 20, 2023
11193d1
Handle new form rendering warning
amstilp Nov 20, 2023
755058d
Remove deprecating USE_L10N setting
amstilp Nov 20, 2023
e250608
Merge pull request #297 from UW-GAC/maint/django-4.2
amstilp Nov 20, 2023
b35f1e7
Add a gitleaks action CI file
amstilp Nov 21, 2023
dfe4d4d
Add gitleaks to pre-commit hook
amstilp Nov 21, 2023
85217d0
Merge pull request #298 from UW-GAC/maint/gitleaks-action
amstilp Nov 21, 2023
f743cb5
Bump actions/checkout from 3 to 4
dependabot[bot] Nov 21, 2023
62c50da
Bump responses from 0.21.0 to 0.24.1
dependabot[bot] Nov 21, 2023
a07c864
Bump django-simple-history from 3.1.1 to 3.4.0
dependabot[bot] Nov 21, 2023
832170c
Merge pull request #299 from UW-GAC/dependabot/github_actions/actions…
amstilp Nov 21, 2023
7ab7810
Merge pull request #300 from UW-GAC/dependabot/pip/responses-0.24.1
amstilp Nov 21, 2023
67b542a
Bump whitenoise from 6.0.0 to 6.6.0
dependabot[bot] Nov 21, 2023
13450d4
Merge pull request #303 from UW-GAC/dependabot/pip/whitenoise-6.6.0
amstilp Nov 21, 2023
99b5a67
Merge pull request #304 from UW-GAC/dependabot/pip/django-simple-hist…
amstilp Nov 21, 2023
749d428
Remove redis-related packages from requirements
amstilp Nov 21, 2023
fb9674e
Remove pillow from requirements
amstilp Nov 21, 2023
6653aa5
Remove argon2-cffi
amstilp Nov 21, 2023
1cbfe66
Remvoe pytz
amstilp Nov 21, 2023
419278f
Add comments to requirements.in about each package
amstilp Nov 21, 2023
d1fcce1
Remove python-slugify
amstilp Nov 21, 2023
aed7164
Add comments to test requirements file
amstilp Nov 21, 2023
1704c45
Remove Werkzeug dependency
amstilp Nov 21, 2023
cf86bec
Remove setuptools from dev requirements
amstilp Nov 21, 2023
0b6253f
Remove safety from dev requirements
amstilp Nov 21, 2023
1abd098
Add link to dbGaP records in navbar
amstilp Nov 21, 2023
97dc0b0
Add list of DARs to dbGaP navbar dropdown
amstilp Nov 21, 2023
7995221
Merge pull request #306 from UW-GAC/feature/extra-links-in-navbar
amstilp Nov 22, 2023
371d4da
Bump tablib from 3.4.0 to 3.5.0
dependabot[bot] Nov 22, 2023
4d453a1
Bump pillow from 10.0.1 to 10.1.0
dependabot[bot] Nov 22, 2023
85ec9a8
Bump coverage from 6.3.2 to 7.3.2
dependabot[bot] Nov 22, 2023
ac6e920
Merge pull request #308 from UW-GAC/dependabot/pip/pillow-10.1.0
amstilp Nov 27, 2023
56ddd07
Merge pull request #307 from UW-GAC/dependabot/pip/tablib-3.5.0
amstilp Nov 27, 2023
e6d2d04
Merge pull request #310 from UW-GAC/dependabot/pip/coverage-7.3.2
amstilp Nov 27, 2023
63a3df2
Bump hiredis from 2.0.0 to 2.2.3
dependabot[bot] Nov 27, 2023
9789bd4
Merge pull request #309 from UW-GAC/dependabot/pip/hiredis-2.2.3
amstilp Nov 27, 2023
4e165e3
Bump argon2-cffi from 21.3.0 to 23.1.0
dependabot[bot] Nov 28, 2023
8d076f6
Bump pandas from 1.5.2 to 2.0.3
dependabot[bot] Nov 28, 2023
ce6603f
Bump django-tree-queries from 0.13.0 to 0.15.0
dependabot[bot] Nov 28, 2023
1faf1f1
Merge pull request #314 from UW-GAC/dependabot/pip/django-tree-querie…
amstilp Nov 28, 2023
ba9138e
Bump pytest from 7.2.0 to 7.4.3
dependabot[bot] Nov 28, 2023
082b20f
Merge pull request #313 from UW-GAC/dependabot/pip/pytest-7.4.3
amstilp Nov 28, 2023
1a551a7
Merge pull request #312 from UW-GAC/dependabot/pip/pandas-2.0.3
amstilp Nov 28, 2023
2fc337a
Merge pull request #311 from UW-GAC/dependabot/pip/argon2-cffi-23.1.0
amstilp Nov 28, 2023
c81c7bc
Bump cryptography from 41.0.4 to 41.0.6 in /requirements
dependabot[bot] Nov 29, 2023
ac9565c
Merge pull request #315 from UW-GAC/dependabot/pip/requirements/crypt…
amstilp Nov 29, 2023
beeef21
Merge branch 'main' into maint/remove-unused-dependencies
amstilp Nov 29, 2023
a2ccb87
Add Werkzeug back to dev requirements
amstilp Nov 29, 2023
0e10ef8
Merge pull request #305 from UW-GAC/maint/remove-unused-dependencies
amstilp Nov 29, 2023
8861039
Bump pronto from 2.5.2 to 2.5.5
dependabot[bot] Nov 29, 2023
e19d125
Bump django-environ from 0.8.1 to 0.10.0
dependabot[bot] Nov 29, 2023
f5c5cd7
Pin django-environ to <=0.10 in requirements.in file
amstilp Nov 29, 2023
c5e609a
Merge pull request #319 from UW-GAC/dependabot/pip/django-environ-0.10.0
amstilp Nov 29, 2023
3964bb8
Merge pull request #317 from UW-GAC/dependabot/pip/pronto-2.5.5
amstilp Nov 29, 2023
2791921
Bump django-dbbackup from 4.0.1 to 4.0.2
dependabot[bot] Nov 29, 2023
284e194
Merge pull request #316 from UW-GAC/dependabot/pip/django-dbbackup-4.0.2
amstilp Nov 29, 2023
9b9e84b
Bump django-login-required-middleware from 0.8.0 to 0.9.0
dependabot[bot] Nov 30, 2023
81991ab
Bump pytest-django from 4.5.2 to 4.7.0
dependabot[bot] Nov 30, 2023
8454e07
Bump jsonschema from 4.16.0 to 4.20.0
dependabot[bot] Nov 30, 2023
e3d472a
Bump django-model-utils from 4.2.0 to 4.3.1
dependabot[bot] Nov 30, 2023
9d1dd0e
Merge pull request #320 from UW-GAC/dependabot/pip/django-login-requi…
amstilp Nov 30, 2023
832d901
Merge pull request #321 from UW-GAC/dependabot/pip/pytest-django-4.7.0
amstilp Nov 30, 2023
7bda71c
Merge pull request #322 from UW-GAC/dependabot/pip/jsonschema-4.20.0
amstilp Nov 30, 2023
fb2e7ad
Merge pull request #323 from UW-GAC/dependabot/pip/django-model-utils…
amstilp Nov 30, 2023
1217cfa
Bump django-tree-queries from 0.15.0 to 0.16.1
dependabot[bot] Dec 1, 2023
e05caac
Bump django-coverage-plugin from 2.0.3 to 3.1.0
dependabot[bot] Dec 1, 2023
41e56a8
Bump types-requests from 2.31.0.6 to 2.31.0.10
dependabot[bot] Dec 1, 2023
57dddcd
Bump django-crispy-forms from 1.14.0 to 2.1
dependabot[bot] Dec 1, 2023
3a06802
Merge pull request #324 from UW-GAC/dependabot/pip/django-tree-querie…
amstilp Dec 1, 2023
82bd292
Merge pull request #326 from UW-GAC/dependabot/pip/types-requests-2.3…
amstilp Dec 1, 2023
7d80f85
Merge pull request #325 from UW-GAC/dependabot/pip/django-coverage-pl…
amstilp Dec 1, 2023
f9641b0
Add crispy-bootstrap5 to requirements files
amstilp Dec 1, 2023
be975e3
Update settings file to use crispy-bootstrap templates
amstilp Dec 1, 2023
4691297
Merge pull request #327 from UW-GAC/dependabot/pip/django-crispy-form…
amstilp Dec 1, 2023
42ba0a9
Add argon2-cffi back to requirements
amstilp Dec 1, 2023
ed1cff9
Merge pull request #329 from UW-GAC/maint/add-argon2-back-to-requirem…
amstilp Dec 1, 2023
a9bce95
Update ACM version to v0.21 in requirements file
amstilp Dec 1, 2023
74115f6
Update adapters to have staff_view and _view for list_table_class
amstilp Dec 1, 2023
c0b7052
Rename OpenAccess workspace tables to match Staff/user convention
amstilp Dec 1, 2023
731918d
Use the OpenAccessWorkspaceUserTable in the adapter
amstilp Dec 1, 2023
2523142
Add a link to the workspace in the OpenAccessUserTable
amstilp Dec 1, 2023
f3965a6
Rename CDSAWorkspace tables for Staff/User convention
amstilp Dec 2, 2023
0be0a37
Show the CDSAWorkspaceUserTable to users with view permission
amstilp Dec 2, 2023
0e6557e
Add link to workspace in CDSAWorkspaceUserTable
amstilp Dec 2, 2023
0635134
Renmae dbGaPWorkspace tables to match Staff/User convention
amstilp Dec 2, 2023
00e7ebd
Show view users the dbGaPWorkspaceUserTable
amstilp Dec 2, 2023
0e3b4d2
Add link to the workspace in dbGaPWorkspaceUserTable
amstilp Dec 2, 2023
37ac937
Remove commented-out table definition
amstilp Dec 2, 2023
2f1e8ca
Show view users a different DefaultWorkspaceTable
amstilp Dec 2, 2023
4255ae0
Bump pytest-sugar from 0.9.6 to 0.9.7
dependabot[bot] Dec 4, 2023
296360e
Bump crispy-bootstrap5 from 0.7 to 2023.10
dependabot[bot] Dec 4, 2023
ef4c744
Bump freezegun from 1.2.2 to 1.3.0
dependabot[bot] Dec 4, 2023
1b9c774
Bump mypy from 1.7.0 to 1.7.1
dependabot[bot] Dec 4, 2023
9467135
Merge pull request #330 from UW-GAC/dependabot/pip/pytest-sugar-0.9.7
amstilp Dec 4, 2023
4157da5
Merge pull request #331 from UW-GAC/dependabot/pip/crispy-bootstrap5-…
amstilp Dec 4, 2023
23836d8
Merge pull request #332 from UW-GAC/dependabot/pip/freezegun-1.3.0
amstilp Dec 4, 2023
82c2eab
Merge pull request #333 from UW-GAC/dependabot/pip/mypy-1.7.1
amstilp Dec 4, 2023
c8fd182
Make DUO detail views open to people with View permission
amstilp Dec 4, 2023
5767f7b
Move DUO OLS links to details table
amstilp Dec 4, 2023
f987699
Move account link instruction into an alert
amstilp Dec 4, 2023
0d58b62
Add a link to the WorkspaceLandingPage to the home grid
amstilp Dec 4, 2023
0a0dab6
Run pip-compile to get updated ACM version in requirements.txt
amstilp Dec 4, 2023
9729f29
Rearrange workspace adapters and update descriptions for clarity
amstilp Dec 4, 2023
7e1f7a1
Merge pull request #334 from UW-GAC/feature/acm-v0.21-and-open-views
amstilp Dec 4, 2023
ff8b1db
Add forgotten CDSA migration
amstilp Dec 4, 2023
ed52adf
Merge pull request #335 from UW-GAC/bugfix/add-cdsa-migration
amstilp Dec 4, 2023
af3fde3
Bump freezegun from 1.3.0 to 1.3.1
dependabot[bot] Dec 5, 2023
c1b350a
Bump django-maintenance-mode from 0.16.3 to 0.19.0
dependabot[bot] Dec 5, 2023
3dd159d
Merge pull request #337 from UW-GAC/dependabot/pip/django-maintenance…
amstilp Dec 5, 2023
08cd90d
Bump django from 4.2.7 to 4.2.8
dependabot[bot] Dec 5, 2023
796e2bf
Merge pull request #338 from UW-GAC/dependabot/pip/django-4.2.8
amstilp Dec 5, 2023
bcaea9e
Merge pull request #336 from UW-GAC/dependabot/pip/freezegun-1.3.1
amstilp Dec 5, 2023
5f01e72
Bump django-stubs from 4.2.6 to 4.2.7
dependabot[bot] Dec 6, 2023
6919b7f
Bump django-maintenance-mode from 0.19.0 to 0.20.0
dependabot[bot] Dec 6, 2023
0bee5f7
Merge pull request #339 from UW-GAC/dependabot/pip/django-stubs-4.2.7
amstilp Dec 6, 2023
3773a27
Merge pull request #340 from UW-GAC/dependabot/pip/django-maintenance…
amstilp Dec 6, 2023
22cb76f
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 7, 2023
918ef3a
Add a gitleaksignore file with old unused secrets fingerprints
amstilp Dec 8, 2023
e498b7a
Merge pull request #342 from UW-GAC/maint/old-gitleaks-secrets
amstilp Dec 8, 2023
03c347a
Merge pull request #341 from UW-GAC/dependabot/github_actions/actions…
amstilp Dec 9, 2023
e201f9e
Bump django-maintenance-mode from 0.20.0 to 0.21.0
dependabot[bot] Dec 12, 2023
a517668
Merge pull request #343 from UW-GAC/dependabot/pip/django-maintenance…
amstilp Dec 14, 2023
4e556ef
Bump coverage from 7.3.2 to 7.3.3
dependabot[bot] Dec 15, 2023
4f8bc54
Bump actions/upload-artifact from 3 to 4
dependabot[bot] Dec 15, 2023
a905625
Merge pull request #346 from UW-GAC/dependabot/pip/coverage-7.3.3
amstilp Dec 15, 2023
c1c3d00
Upload coverage files with different names
amstilp Dec 15, 2023
824f50d
Switch to download-artifact v4 (from v3)
amstilp Dec 15, 2023
803fda2
Try downloading all files instead of a specific name
amstilp Dec 15, 2023
69575a0
Recursively list files as a test
amstilp Dec 15, 2023
e6cbbb7
Download artifacts to a specific directory
amstilp Dec 15, 2023
0563eed
Specify location of coverage files to combine
amstilp Dec 15, 2023
80577ef
Add debugging ls step
amstilp Dec 15, 2023
13b59ce
Add another debugging ls statement
amstilp Dec 15, 2023
5de874f
Bump mysqlclient from 2.1.0 to 2.2.1
dependabot[bot] Dec 18, 2023
8a8dc13
Update dependabot to run weekly on Sundays
amstilp Dec 18, 2023
0b0a050
Allow both direct and indirect updates for packages
amstilp Dec 18, 2023
82a80d6
Allow 10 open pull requests
amstilp Dec 18, 2023
d8d0bc1
Merge pull request #351 from UW-GAC/maint/dependabot-weekly-2
amstilp Dec 18, 2023
cc04c44
Change path to download all artifacts?
amstilp Dec 18, 2023
a79c67e
Bump babel from 2.13.1 to 2.14.0
dependabot[bot] Dec 18, 2023
1a91ede
Bump cffi from 1.15.0 to 1.16.0
dependabot[bot] Dec 18, 2023
9e6063d
Revert "Change path to download all artifacts?"
amstilp Dec 18, 2023
722ad3e
Bump tornado from 6.3.3 to 6.4
dependabot[bot] Dec 18, 2023
86e04e7
Add another debugging print statement
amstilp Dec 18, 2023
e0b22ad
Bump zipp from 3.10.0 to 3.17.0
dependabot[bot] Dec 18, 2023
6ddb8d0
Bump importlib-metadata from 5.2.0 to 7.0.0
dependabot[bot] Dec 18, 2023
2ef2d6b
Try adding . before coverage artifact name
amstilp Dec 18, 2023
79bb88e
Bump numpy from 1.24.2 to 1.24.4
dependabot[bot] Dec 18, 2023
37294f1
List with -a option to show dot files
amstilp Dec 18, 2023
8cdc11a
Copy coverage files to working directory
amstilp Dec 18, 2023
37b456d
Use coverage-data instead of .coverage-data for artifacts
amstilp Dec 18, 2023
1f6a6dd
Add list files statement to test jobs
amstilp Dec 18, 2023
53b160b
Remove debugging ls statements
amstilp Dec 18, 2023
7f245e0
Merge pull request #348 from UW-GAC/dependabot/github_actions/actions…
amstilp Dec 18, 2023
92988a8
Merge pull request #352 from UW-GAC/dependabot/pip/babel-2.14.0
amstilp Dec 18, 2023
0324ae7
Merge pull request #359 from UW-GAC/dependabot/pip/numpy-1.24.4
amstilp Dec 18, 2023
4f78212
Merge pull request #358 from UW-GAC/dependabot/pip/importlib-metadata…
amstilp Dec 18, 2023
2958788
Merge pull request #357 from UW-GAC/dependabot/pip/zipp-3.17.0
amstilp Dec 18, 2023
3481645
Bump prompt-toolkit from 3.0.41 to 3.0.43
dependabot[bot] Dec 18, 2023
24da630
Bump google-auth from 2.14.1 to 2.25.2
dependabot[bot] Dec 18, 2023
ba3e9c4
Merge pull request #356 from UW-GAC/dependabot/pip/prompt-toolkit-3.0.43
amstilp Dec 18, 2023
d4e80a8
Merge pull request #355 from UW-GAC/dependabot/pip/tornado-6.4
amstilp Dec 18, 2023
3b5c562
Merge pull request #354 from UW-GAC/dependabot/pip/cffi-1.16.0
amstilp Dec 18, 2023
357e9f6
Merge pull request #353 from UW-GAC/dependabot/pip/google-auth-2.25.2
amstilp Dec 18, 2023
512a9b7
Merge pull request #349 from UW-GAC/dependabot/pip/mysqlclient-2.2.1
amstilp Dec 18, 2023
4d62bc5
Add an admin group by default to CDSA groups
amstilp Dec 19, 2023
c9c9f0c
Automatically create admin membership for dbGaP access groups
amstilp Dec 19, 2023
1244bef
Add test for API error handling
amstilp Dec 19, 2023
77eb65e
Merge pull request #361 from UW-GAC/feature/add-primed-cc-admins-to-s…
amstilp Dec 19, 2023
b390391
Bump cryptography from 41.0.6 to 41.0.7
dependabot[bot] Dec 24, 2023
e641d7d
Bump pluggy from 1.0.0 to 1.3.0
dependabot[bot] Dec 24, 2023
d7e29ff
Bump pathspec from 0.11.2 to 0.12.1
dependabot[bot] Dec 24, 2023
8f48bfe
Bump wheel from 0.41.3 to 0.42.0
dependabot[bot] Dec 24, 2023
53f5216
Bump fontawesomefree from 6.2.1 to 6.5.1
dependabot[bot] Dec 24, 2023
571c60c
Bump jsonschema-specifications from 2023.11.1 to 2023.12.1
dependabot[bot] Dec 31, 2023
49f91be
Bump jinja2 from 3.1.2 to 3.1.3 in /requirements
dependabot[bot] Jan 11, 2024
0440f87
Merge pull request #374 from UW-GAC/dependabot/pip/requirements/jinja…
amstilp Jan 12, 2024
abbb45e
Merge pull request #371 from UW-GAC/dependabot/pip/jsonschema-specifi…
amstilp Jan 12, 2024
bc1031b
Merge pull request #370 from UW-GAC/dependabot/pip/fontawesomefree-6.5.1
amstilp Jan 12, 2024
bb5a7f2
Merge pull request #368 from UW-GAC/dependabot/pip/wheel-0.42.0
amstilp Jan 12, 2024
6cd2c33
Merge pull request #367 from UW-GAC/dependabot/pip/pathspec-0.12.1
amstilp Jan 12, 2024
59d7527
Bump mypy from 1.7.1 to 1.8.0
dependabot[bot] Jan 12, 2024
35ea15f
Merge pull request #366 from UW-GAC/dependabot/pip/mypy-1.8.0
amstilp Jan 12, 2024
3faefa5
Merge pull request #365 from UW-GAC/dependabot/pip/pluggy-1.3.0
amstilp Jan 12, 2024
80de4c9
Bump pylint from 3.0.2 to 3.0.3
dependabot[bot] Jan 12, 2024
91ff723
Bump pexpect from 4.8.0 to 4.9.0
dependabot[bot] Jan 12, 2024
0326673
Merge pull request #364 from UW-GAC/dependabot/pip/pylint-3.0.3
amstilp Jan 12, 2024
b3382ae
Merge pull request #363 from UW-GAC/dependabot/pip/pexpect-4.9.0
amstilp Jan 12, 2024
51a9ee4
Merge pull request #362 from UW-GAC/dependabot/pip/cryptography-41.0.7
amstilp Jan 12, 2024
13e31d7
Bump freezegun from 1.3.1 to 1.4.0
dependabot[bot] Jan 14, 2024
26b0b00
Bump faker from 13.15.1 to 22.2.0
dependabot[bot] Jan 14, 2024
890f04e
Bump chardet from 5.1.0 to 5.2.0
dependabot[bot] Jan 14, 2024
940e961
Bump pyasn1-modules from 0.2.8 to 0.3.0
dependabot[bot] Jan 14, 2024
d4277fa
Bump virtualenv from 20.24.6 to 20.25.0
dependabot[bot] Jan 14, 2024
01127fb
Bump importlib-resources from 5.10.0 to 6.1.1
dependabot[bot] Jan 14, 2024
cd08849
Bump identify from 2.5.31 to 2.5.33
dependabot[bot] Jan 14, 2024
ee0b2c2
Merge pull request #378 from UW-GAC/dependabot/pip/faker-22.2.0
amstilp Jan 16, 2024
b9af7d6
Merge pull request #375 from UW-GAC/dependabot/pip/freezegun-1.4.0
amstilp Jan 16, 2024
40b371f
Merge pull request #383 from UW-GAC/dependabot/pip/identify-2.5.33
amstilp Jan 16, 2024
5ee7f29
Bump flake8 from 6.1.0 to 7.0.0
dependabot[bot] Jan 16, 2024
b437c40
Merge pull request #382 from UW-GAC/dependabot/pip/importlib-resource…
amstilp Jan 16, 2024
f411e51
Merge pull request #381 from UW-GAC/dependabot/pip/virtualenv-20.25.0
amstilp Jan 16, 2024
4396a9a
Bump types-requests from 2.31.0.10 to 2.31.0.20240106
dependabot[bot] Jan 16, 2024
c8fe3fe
Merge pull request #380 from UW-GAC/dependabot/pip/pyasn1-modules-0.3.0
amstilp Jan 16, 2024
547d4d2
Merge pull request #379 from UW-GAC/dependabot/pip/chardet-5.2.0
amstilp Jan 16, 2024
63fce19
Merge pull request #377 from UW-GAC/dependabot/pip/types-requests-2.3…
amstilp Jan 16, 2024
6975fc0
Merge pull request #376 from UW-GAC/dependabot/pip/flake8-7.0.0
amstilp Jan 16, 2024
948b3fd
Add new REPLACED status for SignedAgreements
amstilp Jan 18, 2024
f0e4484
Update view tests for new REPLACED status
amstilp Jan 19, 2024
a938b26
Add no cover to specific docstring lines
amstilp Jan 19, 2024
6b8d3ef
Remove accidentally committed files
amstilp Jan 20, 2024
6a06dab
Merge pull request #384 from UW-GAC/feature/cdsa-status-replaced
amstilp Jan 20, 2024
1557e14
Merge pull request #385 from UW-GAC/main
amstilp Jan 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "sunday"

# Enable version updates for Python/Pip - Production
- package-ecosystem: "pip"
Expand All @@ -13,4 +14,10 @@ updates:
directory: "/"
# Check for updates to GitHub Actions every weekday
schedule:
interval: "daily"
interval: "weekly"
day: "sunday"
allow:
# Allow both direct and indirect updates for all packages
- dependency-type: "all"
# Allow up to 10 dependencies for pip dependencies
open-pull-requests-limit: 10
34 changes: 20 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
steps:

- name: Checkout Code Repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: pip
Expand Down Expand Up @@ -67,10 +67,10 @@ jobs:
steps:

- name: Checkout Code Repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -91,20 +91,20 @@ jobs:
ANVIL_API_SERVICE_ACCOUNT_FILE: foo

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-mysql-${{ strategy.job-index }}
path: .coverage.*

pytest-sqlite:
runs-on: ubuntu-latest

steps:
- name: Checkout Code Repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: pip
Expand All @@ -125,9 +125,9 @@ jobs:
ANVIL_API_SERVICE_ACCOUNT_FILE: foo

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-sqlite-${{ strategy.job-index }}
path: .coverage.*

coverage:
Expand All @@ -137,21 +137,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade coverage "django<4" django-coverage-plugin

- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data
path: ./artifacts/

- name: Merge coverage files
run: |
mv ./artifacts/coverage-data*/.coverage* .
ls -la .coverage*

- name: Combine coverage data
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
console.log('Combined: ' + combined);
return combined
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Creates a branch with other PR branches merged together
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: gitleaks
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run once a day at 4 AM
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
4 changes: 4 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2f8573f44abd55cd30367f673bbbcb4ebc4861bd:test.secrets:generic-api-key:1
2f8573f44abd55cd30367f673bbbcb4ebc4861bd:test.secrets:generic-api-key:2
faa490c4de15c23401525ebf6ad532e2bd724e5e:config/settings/base.py:generic-api-key:83
faa490c4de15c23401525ebf6ad532e2bd724e5e:config/settings/base.py:generic-api-key:84
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ repos:
args: ['--config=setup.cfg']
additional_dependencies: [flake8-isort]

- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks


# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:
Expand Down
15 changes: 7 additions & 8 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#use-i18n
USE_I18N = True
# https://docs.djangoproject.com/en/dev/ref/settings/#use-l10n
USE_L10N = True
# https://docs.djangoproject.com/en/dev/ref/settings/#use-tz
USE_TZ = True
# https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
LOCALE_PATHS = [str(ROOT_DIR / "locale")]
Expand Down Expand Up @@ -214,7 +212,9 @@
FORM_RENDERER = "django.forms.renderers.TemplatesSetting"

# http://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs
CRISPY_TEMPLATE_PACK = "bootstrap4"
# https://github.com/django-crispy-forms/crispy-bootstrap5
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"

# FIXTURES
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -370,14 +370,14 @@
ANVIL_API_SERVICE_ACCOUNT_FILE = env("ANVIL_API_SERVICE_ACCOUNT_FILE")
# Specify workspace adapters.
ANVIL_WORKSPACE_ADAPTERS = [
"primed.miscellaneous_workspaces.adapters.TemplateWorkspaceAdapter",
"primed.dbgap.adapters.dbGaPWorkspaceAdapter",
"primed.cdsa.adapters.CDSAWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.OpenAccessWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.SimulatedDataWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.ResourceWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.ConsortiumDevelWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.TemplateWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.DataPrepWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.ResourceWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.SimulatedDataWorkspaceAdapter",
"primed.miscellaneous_workspaces.adapters.OpenAccessWorkspaceAdapter",
]
ANVIL_ACCOUNT_ADAPTER = "primed.primed_anvil.adapters.AccountAdapter"

Expand All @@ -386,4 +386,3 @@
# Specify the subject for AnVIL account verification emails.
ANVIL_ACCOUNT_LINK_EMAIL_SUBJECT = "Verify your AnVIL account email"
ANVIL_ACCOUNT_VERIFY_NOTIFICATION_EMAIL = "[email protected]"
ANVIL_CDSA_GROUP_NAME = "PRIMED_CDSA"
3 changes: 3 additions & 0 deletions config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@
"ANVIL_DATA_ACCESS_GROUP_PREFIX", default="DEV_PRIMED"
)
ANVIL_CDSA_GROUP_NAME = env("ANVIL_CDSA_GROUP_NAME", default="DEV_PRIMED_CDSA")
ANVIL_CC_ADMINS_GROUP_NAME = env(
"ANVIL_CC_ADMINS_GROUP_NAME", default="DEV_PRIMED_CC_ADMINS"
)
2 changes: 2 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,5 @@
# ANVIL_DBGAP_APPLICATION_GROUP_PREFIX = "PRIMED_DBGAP_ACCESS"
# ANVIL_CDSA_GROUP_PREFIX = "PRIMED_CDSA_ACCESS"
ANVIL_DATA_ACCESS_GROUP_PREFIX = "PRIMED"
ANVIL_CC_ADMINS_GROUP_NAME = "PRIMED_CC_ADMINS"
ANVIL_CDSA_GROUP_NAME = "PRIMED_CDSA"
1 change: 1 addition & 0 deletions config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
ANVIL_API_SERVICE_ACCOUNT_FILE = "foo"
ANVIL_DATA_ACCESS_GROUP_PREFIX = "TEST_PRIMED"
ANVIL_CDSA_GROUP_NAME = "TEST_PRIMED_CDSA"
ANVIL_CC_ADMINS_GROUP_NAME = "TEST_PRIMED_CC_ADMINS"

# template tests require debug to be set
# get the last templates entry and set debug option
Expand Down
5 changes: 3 additions & 2 deletions primed/cdsa/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ class CDSAWorkspaceAdapter(BaseWorkspaceAdapter):
type = "cdsa"
name = "CDSA workspace"
description = (
"Workspaces containing data from the Consortium Data Sharing Agreement."
"Workspaces containing data from the Consortium Data Sharing Agreement"
)
list_table_class = tables.CDSAWorkspaceTable
list_table_class_staff_view = tables.CDSAWorkspaceStaffTable
list_table_class_view = tables.CDSAWorkspaceUserTable
workspace_form_class = WorkspaceForm
workspace_data_model = models.CDSAWorkspace
workspace_data_form_class = forms.CDSAWorkspaceForm
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Generated by Django 4.2.7 on 2023-12-04 23:27

from django.db import migrations
import model_utils.fields


class Migration(migrations.Migration):

dependencies = [
("cdsa", "0009_signedagreement_add_field_status"),
]

operations = [
migrations.AlterField(
model_name="historicalsignedagreement",
name="status",
field=model_utils.fields.StatusField(
choices=[
("active", "Active"),
("withdrawn", "Withdrawn"),
("lapsed", "Lapsed"),
],
default="active",
max_length=100,
no_check_for_status=True,
verbose_name="status",
),
),
migrations.AlterField(
model_name="signedagreement",
name="status",
field=model_utils.fields.StatusField(
choices=[
("active", "Active"),
("withdrawn", "Withdrawn"),
("lapsed", "Lapsed"),
],
default="active",
max_length=100,
no_check_for_status=True,
verbose_name="status",
),
),
]
46 changes: 46 additions & 0 deletions primed/cdsa/migrations/0011_signedagreement_add_replaced_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Generated by Django 4.2.8 on 2024-01-18 23:49

from django.db import migrations
import model_utils.fields


class Migration(migrations.Migration):

dependencies = [
("cdsa", "0010_alter_historicalsignedagreement_status_and_more"),
]

operations = [
migrations.AlterField(
model_name="historicalsignedagreement",
name="status",
field=model_utils.fields.StatusField(
choices=[
("active", "Active"),
("withdrawn", "Withdrawn"),
("lapsed", "Lapsed"),
("replaced", "Replaced"),
],
default="active",
max_length=100,
no_check_for_status=True,
verbose_name="status",
),
),
migrations.AlterField(
model_name="signedagreement",
name="status",
field=model_utils.fields.StatusField(
choices=[
("active", "Active"),
("withdrawn", "Withdrawn"),
("lapsed", "Lapsed"),
("replaced", "Replaced"),
],
default="active",
max_length=100,
no_check_for_status=True,
verbose_name="status",
),
),
]
7 changes: 5 additions & 2 deletions primed/cdsa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,17 @@ class SignedAgreementStatusMixin:

class StatusChoices(models.TextChoices):
ACTIVE = "active", "Active"
"""SignedAgreements that are currently active."""
"""SignedAgreements that are currently active.""" # pragma: no cover

WITHDRAWN = "withdrawn", "Withdrawn"
"""SignedAgreements that have been withdrawn for some reason (e.g., PI changed institution,
study no longer wanted to participate.)"""

LAPSED = "lapsed", "Lapsed"
"""SignedAgreements from a AgreementMajorVersion that is no longer valid."""
"""SignedAgreements from a AgreementMajorVersion that is no longer valid.""" # pragma: no cover

REPLACED = "replaced", "Replaced"
"""SignedAgreements that have been replaced by a newer version.""" # pragma: no cover

STATUS = StatusChoices.choices

Expand Down
6 changes: 3 additions & 3 deletions primed/cdsa/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def render_date_shared(self, record):
return "—"


class CDSAWorkspaceTable(tables.Table):
class CDSAWorkspaceStaffTable(tables.Table):
"""A table for the CDSAWorkspace model."""

name = tables.Column(linkify=True)
Expand Down Expand Up @@ -324,10 +324,10 @@ class Meta:
order_by = ("name",)


class CDSAWorkspaceLimitedViewTable(tables.Table):
class CDSAWorkspaceUserTable(tables.Table):
"""A table for the CDSAWorkspace model."""

name = tables.Column()
name = tables.Column(linkify=True)
billing_project = tables.Column()
cdsaworkspace__data_use_permission__abbreviation = tables.Column(
verbose_name="DUO permission",
Expand Down
1 change: 1 addition & 0 deletions primed/cdsa/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ def authorization_domains(self, create, extracted, **kwargs):

class Meta:
model = models.CDSAWorkspace
skip_postgeneration_save = True
5 changes: 5 additions & 0 deletions primed/cdsa/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ def test_status_field(self):
)
self.assertEqual(instance.status, instance.StatusChoices.LAPSED)
instance.full_clean()
instance = factories.SignedAgreementFactory.create(
status=models.SignedAgreement.StatusChoices.REPLACED
)
self.assertEqual(instance.status, instance.StatusChoices.REPLACED)
instance.full_clean()

# not allowed
instance = factories.SignedAgreementFactory.create(status="foo")
Expand Down
Loading