-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dependabot/pip/django-allauth-0.61.1' of github.com:UW-…
…GAC/primed-django into dependabot/pip/django-allauth-0.61.1
- Loading branch information
Showing
75 changed files
with
3,863 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Temporary script to create some test data. | ||
# Run with: python manage.py shell < add_data_prep_example_data.py | ||
|
||
|
||
from primed.cdsa.tests.factories import CDSAWorkspaceFactory | ||
from primed.dbgap.tests.factories import dbGaPWorkspaceFactory | ||
from primed.miscellaneous_workspaces.tests import factories | ||
from primed.primed_anvil.tests.factories import StudyFactory | ||
|
||
# Create a dbGaP workspace. | ||
fhs = StudyFactory.create(short_name="FHS", full_name="Framingham Heart Study") | ||
workspace_dbgap = dbGaPWorkspaceFactory.create( | ||
dbgap_study_accession__dbgap_phs=7, | ||
dbgap_study_accession__studies=[fhs], | ||
dbgap_version=33, | ||
dbgap_participant_set=12, | ||
dbgap_consent_code=1, | ||
dbgap_consent_abbreviation="HMB", | ||
workspace__name="DBGAP_FHS_v33_p12_HMB", | ||
) | ||
|
||
# Create a data prep workspace. | ||
workspace_dbgap_prep = factories.DataPrepWorkspaceFactory.create( | ||
target_workspace=workspace_dbgap.workspace, | ||
workspace__name="DBGAP_FHS_v33_p12_HMB_PREP", | ||
) | ||
|
||
|
||
# Create a CDSA workspace. | ||
workspace_cdsa = CDSAWorkspaceFactory.create( | ||
study__short_name="MESA", | ||
workspace__name="CDSA_MESA_HMB", | ||
) | ||
|
||
# Create a data prep workspace. | ||
factories.DataPrepWorkspaceFactory.create( | ||
target_workspace=workspace_cdsa.workspace, | ||
workspace__name="CDSA_MESA_HMB_PREP_1", | ||
is_active=False, | ||
) | ||
workspace_cdsa_prep = factories.DataPrepWorkspaceFactory.create( | ||
target_workspace=workspace_cdsa.workspace, | ||
workspace__name="CDSA_MESA_HMB_PREP_2", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ | |
"simple_history", | ||
"dbbackup", | ||
"django_htmx", | ||
"constance", | ||
] | ||
|
||
LOCAL_APPS = [ | ||
|
@@ -205,6 +206,7 @@ | |
"django.template.context_processors.static", | ||
"django.template.context_processors.tz", | ||
"django.contrib.messages.context_processors.messages", | ||
"constance.context_processors.config", | ||
"primed.utils.context_processors.settings_context", | ||
], | ||
}, | ||
|
@@ -368,6 +370,17 @@ | |
# https://django-tables2.readthedocs.io/en/latest/pages/custom-rendering.html?highlight=django_tables2_template#available-templates | ||
DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5.html" | ||
|
||
# django-constance | ||
# ------------------------------------------------------------------------------ | ||
CONSTANCE_CONFIG = { | ||
"ANNOUNCEMENT_TEXT": ("", "Site-wide announcement message", str), | ||
} | ||
|
||
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend" | ||
CONSTANCE_IGNORE_ADMIN_VERSION_CHECK = True | ||
# CONSTANCE_DATABASE_CACHE_BACKEND = "default" | ||
CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None | ||
|
||
# django-anvil-consortium-manager | ||
# ------------------------------------------------------------------------------ | ||
ANVIL_API_SERVICE_ACCOUNT_FILE = env("ANVIL_API_SERVICE_ACCOUNT_FILE") | ||
|
@@ -390,3 +403,13 @@ | |
# 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]" | ||
|
||
DRUPAL_API_CLIENT_ID = env("DRUPAL_API_CLIENT_ID", default="") | ||
DRUPAL_API_CLIENT_SECRET = env("DRUPAL_API_CLIENT_SECRET", default="") | ||
DRUPAL_API_REL_PATH = env("DRUPAL_API_REL_PATH", default="mockapi") | ||
DRUPAL_DATA_AUDIT_DEACTIVATE_USERS = env( | ||
"DRUPAL_DATA_AUDIT_DEACTIVATE_USERS", default=False | ||
) | ||
DRUPAL_DATA_AUDIT_REMOVE_USER_SITES = env( | ||
"DRUPAL_DATA_AUDIT_REMOVE_USER_SITES", default=False | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.