Initial creation of do_history script

This commit is contained in:
2026-04-22 23:40:49 +01:00
parent ec5bb82c55
commit 29cf2e3772
5 changed files with 688 additions and 0 deletions

View File

@@ -133,3 +133,16 @@ BAR_N_FMT_WIDTH = 4
BAR_TOTAL_FMT_WIDTH = 4
BAR_TIME_WIDTH = 8
BAR_RATE_WIDTH = 10
# ============================================================================
# DO HISTORY — SPECIFIC CONSTANTS
# ============================================================================
HISTORY_FILE_NAME = "do_requests_history.json"
HISTORY_LOG_FILE_NAME = "history.log"
# Default filters proposed to the user at startup (editable as JSON before processing)
DO_HISTORY_FILTERS_DEFAULT = {"hideArchivedRequests": False, "excludeTest": True, "status": "all-admin"}
# History API endpoint (GET + ?sortOrder=DESC&requestId={id})
API_REQUEST_HISTORY_ENDPOINT = "/api/request-history"