Skip to content

Commit

Permalink
Merge branch 'main' into resending-email-invitations
Browse files Browse the repository at this point in the history
  • Loading branch information
ItIsJordan authored Sep 11, 2024
2 parents c8fbac5 + 6ca863a commit 3a71a89
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ updates:
schedule:
interval: "monthly"
ignore:
- dependency-name: "invenio-accounts" # see https://github.com/HEPData/hepdata/issues/816
- dependency-name: "pytest" # see https://github.com/HEPData/hepdata/issues/815
- dependency-name: "pytest-cov" # see https://github.com/HEPData/hepdata/issues/580
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ services:
- "APP_CELERY_RESULT_BACKEND=redis://cache:6379/2"
- "APP_OPENSEARCH_HOST=os:9200"
- "APP_SECRET_KEY=CHANGE_ME"
- "APP_SESSION_TYPE=redis"
- "APP_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_ACCOUNTS_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_SQLALCHEMY_DATABASE_URI=postgresql://hepdata:hepdata@db/hepdata"
- "SAUCE_USERNAME=${SAUCE_USERNAME}"
- "SAUCE_ACCESS_KEY=${SAUCE_ACCESS_KEY}"
Expand All @@ -38,8 +37,7 @@ services:
- "APP_CELERY_RESULT_BACKEND=redis://cache:6379/2"
- "APP_OPENSEARCH_HOST=os:9200"
- "APP_SECRET_KEY=CHANGE_ME"
- "APP_SESSION_TYPE=redis"
- "APP_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_ACCOUNTS_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_SQLALCHEMY_DATABASE_URI=postgresql://hepdata:hepdata@db/hepdata"
read_only: false
volumes:
Expand Down
10 changes: 9 additions & 1 deletion hepdata/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ def _(x):
'schedule': crontab(minute=0, hour=1), # execute daily at 1am UTC
'args': (1,), # INSPIRE records (with HEPData) updated yesterday
},
'session_cleaner': {
'task': 'invenio_accounts.tasks.clean_session_table',
'schedule': timedelta(days=1),
},
'delete_login_ips': {
'task': 'invenio_accounts.tasks.delete_ips',
'schedule': timedelta(days=30),
},
}

# Number of workers running the datacite queue
Expand Down Expand Up @@ -110,7 +118,7 @@ def _(x):
CACHE_TYPE = "redis"

# Session
SESSION_REDIS = "redis://localhost:6379/0"
ACCOUNTS_SESSION_REDIS_URL = CACHE_REDIS_URL
PERMANENT_SESSION_LIFETIME = timedelta(hours=12)

# OpenSearch
Expand Down
2 changes: 1 addition & 1 deletion hepdata/config_local.docker_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
CELERY_BROKER_URL = "redis://cache:6379/0"
CELERY_RESULT_BACKEND = "redis://cache:6379/1"
CACHE_REDIS_URL = "redis://cache:6379/0"
SESSION_REDIS = "redis://cache:6379/0"
ACCOUNTS_SESSION_REDIS_URL = CACHE_REDIS_URL
TEST_DB_HOST = "db"
OPENSEARCH_HOST = "os"
SEARCH_HOSTS = [
Expand Down
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20240805"
__version__ = "0.9.4dev20240910"
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
beautifulsoup4==4.12.3
bleach==6.1.0
datacite==1.1.4
gunicorn==22.0.0
gunicorn==23.0.0
hepdata-converter-ws-client==0.2.2
hepdata-validator==0.3.5
invenio-access==2.0.0 # Indirect (needed by invenio-admin)
invenio-accounts==5.0.1 # https://github.com/HEPData/hepdata/issues/816
invenio-accounts==5.1.1
invenio-admin==1.5.0
invenio-assets==3.0.3
invenio-config==1.0.4
Expand All @@ -14,7 +14,7 @@ invenio-logging[sentry_sdk]==2.1.1
invenio-oauthclient==4.0.0
invenio-pidstore==1.3.1
invenio-records==2.3.0
invenio-search[opensearch2]==2.3.1
invenio-search[opensearch2]==2.4.1
invenio-theme==3.3.0
invenio-userprofiles==3.0.0
python-twitter-v2==0.9.1
Expand Down

0 comments on commit 3a71a89

Please sign in to comment.