mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 19:28:25 -04:00
merge from main
This commit is contained in:
4
.github/actions/setup-project/action.yml
vendored
4
.github/actions/setup-project/action.yml
vendored
@@ -9,10 +9,10 @@ runs:
|
|||||||
sudo apt-get update \
|
sudo apt-get update \
|
||||||
&& sudo apt-get install -y --no-install-recommends \
|
&& sudo apt-get install -y --no-install-recommends \
|
||||||
libcurl4-openssl-dev
|
libcurl4-openssl-dev
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12.2
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12.2"
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pip install poetry
|
run: pip install poetry
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -21,8 +21,8 @@ bootstrap: generate-version-file ## Set up everything to run the app
|
|||||||
poetry install --sync --no-root
|
poetry install --sync --no-root
|
||||||
poetry run playwright install --with-deps
|
poetry run playwright install --with-deps
|
||||||
poetry run pre-commit install
|
poetry run pre-commit install
|
||||||
source $(NVMSH) --no-use && nvm install && npm ci --no-audit
|
source $(NVMSH) --no-use && nvm install && npm install
|
||||||
source $(NVMSH) && npm install
|
source $(NVMSH) && npm ci --no-audit
|
||||||
source $(NVMSH) && npm run build
|
source $(NVMSH) && npm run build
|
||||||
|
|
||||||
.PHONY: watch-frontend
|
.PHONY: watch-frontend
|
||||||
|
|||||||
@@ -233,6 +233,24 @@ def create_app(application):
|
|||||||
)
|
)
|
||||||
logging.init_app(application)
|
logging.init_app(application)
|
||||||
|
|
||||||
|
# Hopefully will help identify if there is a race condition causing the CSRF errors
|
||||||
|
# that we have occasionally seen in our environments.
|
||||||
|
for key in ("SECRET_KEY", "DANGEROUS_SALT"):
|
||||||
|
try:
|
||||||
|
value = application.config[key]
|
||||||
|
except KeyError:
|
||||||
|
application.logger.error(f"Env Var {key} doesn't exist.")
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
data_len = len(value.strip())
|
||||||
|
except (TypeError, AttributeError):
|
||||||
|
application.logger.error(f"Env Var {key} invalid type: {type(value)}")
|
||||||
|
else:
|
||||||
|
if data_len:
|
||||||
|
application.logger.info(f"Env Var {key} is a non-zero length.")
|
||||||
|
else:
|
||||||
|
application.logger.error(f"Env Var {key} is empty.")
|
||||||
|
|
||||||
login_manager.login_view = "main.sign_in"
|
login_manager.login_view = "main.sign_in"
|
||||||
login_manager.login_message_category = "default"
|
login_manager.login_message_category = "default"
|
||||||
login_manager.session_protection = None
|
login_manager.session_protection = None
|
||||||
|
|||||||
4
poetry.lock
generated
4
poetry.lock
generated
@@ -3111,5 +3111,5 @@ files = [
|
|||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.12.2"
|
python-versions = "==3.12.2"
|
||||||
content-hash = "b45f2c38493f81bd7fc9d4bfd294b001d71e4082380eb0851d4f3ea8dcdb949c"
|
content-hash = "13525f32422aad8324a3bcb3629d326cc847029800d5518e1efd047b887afa8b"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ readme = "README.md"
|
|||||||
package-mode = false
|
package-mode = false
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.12.2"
|
python = "==3.12.2"
|
||||||
ago = "~=0.0.95"
|
ago = "~=0.0.95"
|
||||||
beautifulsoup4 = "^4.12.3"
|
beautifulsoup4 = "^4.12.3"
|
||||||
blinker = "~=1.8"
|
blinker = "~=1.8"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
python-3.12.x
|
python-3.12.2
|
||||||
|
|||||||
Reference in New Issue
Block a user