From d14a14e7fe81ba547b78b6fb2f6079493064931f Mon Sep 17 00:00:00 2001 From: DeepZone Date: Wed, 20 May 2026 15:26:05 +0100 Subject: [PATCH] Add cache freshness transparency across diagnostics and reports --- .env.example | 1 + README.md | 15 ++++- RELEASE_NOTES.md | 11 ++++ backend/app/api/routes_system.py | 2 +- backend/app/config.py | 2 +- backend/app/core/source_diagnostics.py | 36 ++++++++++++ backend/app/main.py | 2 +- backend/app/services/ripe_stat_client.py | 75 ++++++++++++++++-------- backend/app/templates/report.html.j2 | 2 +- backend/app/templates/report.md.j2 | 4 +- backend/pyproject.toml | 2 +- backend/tests/test_api_smoke.py | 3 + backend/tests/test_ripe_stat_client.py | 48 +++++++++++++++ backend/tests/test_source_diagnostics.py | 14 ++++- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- frontend/src/App.tsx | 6 +- frontend/src/components/Layout.tsx | 2 +- frontend/src/components/ReportView.tsx | 15 ++++- frontend/src/types.ts | 4 ++ 20 files changed, 205 insertions(+), 45 deletions(-) create mode 100644 backend/tests/test_ripe_stat_client.py diff --git a/.env.example b/.env.example index 1762730..18deb2c 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ DATABASE_URL=sqlite:///./routeforge.db HTTP_TIMEOUT_SECONDS=10 CACHE_TTL_SECONDS=900 +RIPESTAT_CACHE_TTL_SECONDS=900 CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000 RIPESTAT_BASE_URL=https://stat.ripe.net/data ROUTEFORGE_DEMO_MODE=false diff --git a/README.md b/README.md index 500289d..932fb58 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ RouteForge is a read-only routing preflight and explainability tool for BGP, RPKI, Registry/IRR and Routing Visibility checks. -Current user-facing version: **v0.4.0-alpha**. +Current user-facing version: **v0.4.1-alpha**.