diff --git a/.gitignore b/.gitignore index 2b88992f..51332ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -155,3 +155,6 @@ python.log # mailman mailman/web/static/ + +# dev +*.code-workspace diff --git a/config/settings.py b/config/settings.py index ff4ced9a..b751f3d9 100755 --- a/config/settings.py +++ b/config/settings.py @@ -470,8 +470,10 @@ ARTIFACTORY_URL = env( MIN_ARTIFACTORY_RELEASE = "boost-1.63.0" # The min Boost version is the oldest version of Boost that our import scripts -# will retrieve. It's determined by the files we store in the archives/ in S3. -MINIMUM_BOOST_VERSION = "1.31.0" +# will retrieve. +MINIMUM_BOOST_VERSION = "1.16.1" +# The highest Boost version with its docs stored in S3 +MAXIMUM_BOOST_DOCS_VERSION = "boost-1.30.2" # Boost Google Calendar BOOST_CALENDAR = "5rorfm42nvmpt77ac0vult9iig@group.calendar.google.com" diff --git a/libraries/tasks.py b/libraries/tasks.py index 8de9d00c..5d9a9a54 100644 --- a/libraries/tasks.py +++ b/libraries/tasks.py @@ -2,6 +2,7 @@ import structlog from dateutil.relativedelta import relativedelta from config.celery import app +from django.conf import settings from django.db.models import Q from django.utils import timezone from core.boostrenderer import get_content_from_s3 @@ -142,10 +143,9 @@ def version_missing_docs(version): # Check if the version is older than our oldest version # stored in S3 - if version_within_range(version.name, max_version="boost-1.30.0"): - return True - - return False + return version_within_range( + version.name, max_version=settings.MAXIMUM_BOOST_DOCS_VERSION + ) def library_version_missing_docs(library_version):