Commit 35b8220
committed
Complete PromQL escaping across all 150+ interpolation sites, add statement_timeout
Continuation of the quality framework application:
Reporter (postgres_reports.py):
- Apply _escape_promql_label() to ALL 150+ PromQL label interpolation
sites across 20+ functions (A003, A004, A007, H001, H002, H004, D004,
F001, F004, F005, G001, K-series, M-series, N001)
- Add _esc alias at function scope for every method that builds PromQL
- Make _escape_promql_label defensive with str() coercion for edge cases
Flask backend (app.py):
- Apply escape_promql_label() to remaining 2 filter-building sites
(table metrics and table size detail endpoints)
CLI (init.ts):
- Add connectionTimeoutMillis: 10_000 to connectWithSslFallback()
(central connection function used by checkup, prepare-db, etc.)
- Add SET statement_timeout = '30s' after connection to prevent
runaway queries across all CLI database operations
All 429 reporter tests pass with no regressions.
https://claude.ai/code/session_01TKKnEc2Yn2zM64bwCJ2UaX1 parent b7cb2f3 commit 35b8220
File tree
3 files changed
+110
-85
lines changed- cli/lib
- monitoring_flask_backend
- reporter
3 files changed
+110
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
| 707 | + | |
707 | 708 | | |
708 | 709 | | |
709 | | - | |
| 710 | + | |
710 | 711 | | |
711 | | - | |
| 712 | + | |
712 | 713 | | |
713 | | - | |
| 714 | + | |
714 | 715 | | |
715 | | - | |
| 716 | + | |
716 | 717 | | |
717 | | - | |
| 718 | + | |
718 | 719 | | |
719 | | - | |
| 720 | + | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
| |||
841 | 842 | | |
842 | 843 | | |
843 | 844 | | |
844 | | - | |
| 845 | + | |
| 846 | + | |
845 | 847 | | |
846 | 848 | | |
847 | | - | |
| 849 | + | |
848 | 850 | | |
849 | | - | |
| 851 | + | |
850 | 852 | | |
851 | 853 | | |
852 | | - | |
| 854 | + | |
853 | 855 | | |
854 | | - | |
| 856 | + | |
855 | 857 | | |
856 | | - | |
| 858 | + | |
857 | 859 | | |
858 | 860 | | |
859 | 861 | | |
| |||
0 commit comments