Skip to content

Commit

Permalink
Expose STRINGFREEZE_DATE in product-details (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielBusta committed Sep 13, 2022
1 parent 79bbd4c commit b79806b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/shipit_api/admin/product_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@
"LATEST_FIREFOX_RELEASED_DEVEL_VERSION": str,
"LATEST_FIREFOX_VERSION": str,
"LAST_SOFTFREEZE_DATE": str,
"LAST_STRINGFREEZE_DATE": str,
"LAST_MERGE_DATE": str,
"LAST_RELEASE_DATE": str,
"NEXT_SOFTFREEZE_DATE": str,
"NEXT_STRINGFREEZE_DATE": str,
"NEXT_MERGE_DATE": str,
"NEXT_RELEASE_DATE": str,
},
Expand Down Expand Up @@ -632,9 +634,11 @@ def get_firefox_versions(releases: typing.List[shipit_api.common.models.Release]
"LATEST_FIREFOX_RELEASED_DEVEL_VERSION": "59.0b14",
"LATEST_FIREFOX_VERSION": "58.0.2",
"LAST_SOFTFREEZE_DATE": "2019-03-11",
"LAST_STRINGFREEZE_DATE": "2019-03-12",
"LAST_MERGE_DATE": "2019-03-18",
"LAST_RELEASE_DATE": "2019-03-19",
"NEXT_SOFTFREEZE_DATE": "2019-05-06",
"NEXT_STRINGFREEZE_DATE": "2019-05-07",
"NEXT_MERGE_DATE": "2019-05-13",
"NEXT_RELEASE_DATE": "2019-05-14"
}
Expand All @@ -654,9 +658,11 @@ def get_firefox_versions(releases: typing.List[shipit_api.common.models.Release]
FIREFOX_PINEBUILD=get_latest_version(releases, Product.PINEBUILD, shipit_api.common.config.BETA_BRANCH),
LATEST_FIREFOX_OLDER_VERSION=shipit_api.common.config.LATEST_FIREFOX_OLDER_VERSION,
LAST_SOFTFREEZE_DATE=shipit_api.common.config.LAST_SOFTFREEZE_DATE,
LAST_STRINGFREEZE_DATE=shipit_api.common.config.LAST_STRINGFREEZE_DATE,
LAST_MERGE_DATE=shipit_api.common.config.LAST_MERGE_DATE,
LAST_RELEASE_DATE=shipit_api.common.config.LAST_RELEASE_DATE,
NEXT_SOFTFREEZE_DATE=shipit_api.common.config.NEXT_SOFTFREEZE_DATE,
NEXT_STRINGFREEZE_DATE=shipit_api.common.config.NEXT_STRINGFREEZE_DATE,
NEXT_MERGE_DATE=shipit_api.common.config.NEXT_MERGE_DATE,
NEXT_RELEASE_DATE=shipit_api.common.config.NEXT_RELEASE_DATE,
)
Expand Down
5 changes: 5 additions & 0 deletions api/src/shipit_api/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pathlib
import tempfile
from datetime import datetime, timedelta

from decouple import config

Expand Down Expand Up @@ -60,6 +61,10 @@
NEXT_MERGE_DATE = "2022-09-19"
NEXT_RELEASE_DATE = "2022-09-20"

DATE_FORMAT = "%Y-%m-%d"
LAST_STRINGFREEZE_DATE = (datetime.strptime(LAST_SOFTFREEZE_DATE, DATE_FORMAT) + timedelta(days=1)).strftime(DATE_FORMAT)
NEXT_STRINGFREEZE_DATE = (datetime.strptime(NEXT_SOFTFREEZE_DATE, DATE_FORMAT) + timedelta(days=1)).strftime(DATE_FORMAT)

# Aurora has been replaced by Dev Edition, but some 3rd party applications may
# still rely on this value.
FIREFOX_AURORA = ""
Expand Down

0 comments on commit b79806b

Please sign in to comment.