From 81025568621ef0838571747061ee88e4e7a434ac Mon Sep 17 00:00:00 2001 From: agent Date: Tue, 15 Sep 2026 17:57:59 +0300 Subject: [PATCH] fix: bust admin stylesheet cache --- CHANGELOG.md | 4 ++++ README.md | 2 +- app/templates/base.html | 2 +- app/templates/login.html | 2 +- app/version.py | 6 +++--- pyproject.toml | 2 +- tests/test_api.py | 2 +- 7 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0227fc6..4a2a49a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.8.11 + +- CSS-ассеты админки получают версию в URL и обновляются после релиза без ручной очистки кэша браузера. + ## 0.8.10 - Production deploy проверяет совпадение версии release-архива и запущенного API. diff --git a/README.md b/README.md index da75122..9703fe6 100644 --- a/README.md +++ b/README.md @@ -135,4 +135,4 @@ node --check app/static/admin.js Тесты с данными используют временную SQLite; отдельные API smoke-тесты запускают приложение с его текущей конфигурацией. Браузерная проверка: `pip install playwright`, `python -m playwright install chromium`, затем `python tests/browser_admin.py`. Она проверяет реальный рендеринг страниц, клавиатуру, диалог, фильтры и восстановление прогресса после ошибки. Скриншоты сохраняются во временную папку; путь выводится в конце. -Версия сервиса: `0.8.10`. Админка всегда показывает версии backend и frontend в footer. +Версия сервиса: `0.8.11`. Админка всегда показывает версии backend и frontend в footer. diff --git a/app/templates/base.html b/app/templates/base.html index c7c70e7..bf76f81 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -4,7 +4,7 @@ {% block title %}MIEM Employees{% endblock %} - + Перейти к содержимому diff --git a/app/templates/login.html b/app/templates/login.html index 8192c12..1623a3f 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -4,7 +4,7 @@ Вход · MIEM Employees - +
diff --git a/app/version.py b/app/version.py index 2c042c8..41daf9a 100644 --- a/app/version.py +++ b/app/version.py @@ -1,3 +1,3 @@ -APP_VERSION = "0.8.10" -FRONTEND_VERSION = "0.8.10" -BACKEND_VERSION = "0.8.10" +APP_VERSION = "0.8.11" +FRONTEND_VERSION = "0.8.11" +BACKEND_VERSION = "0.8.11" diff --git a/pyproject.toml b/pyproject.toml index 4228ebc..c9b7536 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "miem-workers" -version = "0.8.10" +version = "0.8.11" description = "MIEM employees parser, admin API, and web admin" requires-python = ">=3.11" dependencies = [ diff --git a/tests/test_api.py b/tests/test_api.py index 9aa714b..ed1c2e1 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -18,7 +18,7 @@ def test_health_returns_versions(): response = TestClient(app).get("/api/health") assert response.status_code == 200 - assert response.json()["backend_version"] == "0.8.10" + assert response.json()["backend_version"] == "0.8.11" def test_api_employees_and_stats_require_admin_session():