monoscope/test/unit
Anthony Alaribe 990af1dac9
One monitor builder and error rule; any-results, below and template monitors evaluate correctly (#861)
- A query may have only one summarize: the SQL compiler cannot nest them, so a second one is a positioned parse error.
- Monitors: every write path (form, widget, API create/PUT/PATCH, monitors-as-code) builds through monitorFromInput, and compileAlertSql is the one alert-SQL compiler (evaluation included).
  - "Any results" means a count of at least 1 (migration 0279 fixes stored threshold-0 monitors).
  - Below monitors read the lowest group and measure.
  - 12h windows parse as 12 hours.
  - The explorer editor reopens on the saved condition and window.
  - Dashboard template variables are filled ("unset = all").
  - Edits keep trigger history; an omitted active keeps a paused monitor paused; a query that does not compile is refused.
- One error predicate (isErrorSql/isErrorKql, agreement pinned against the evaluator), used by sessions, the errors flag, reports, bots, impact review and Issues.
- Uptime and cron writes need edit access, like the Prometheus targets that share their table.
- Monitor page chart follows vizFor, and its preview chart reads the monitor's own scope (Widget.scope, pinned_scope).
- Shared nativeDialog_/dialogTrigger_ and resourceList_ components, used for the Prometheus, review and remove-repository dialogs and the uptime/cron/Prometheus lists (status no longer colour-only).
- drawer_ closes on the server's closeModal, replacing four inline close scripts.
- Billing tables on Table via a gridClasses config field.
- parseSeverity replaces three log-level lists.
- Query builder reads a query that opens with summarize.
History 2026-11-11 17:23:07 +01:00
..
BackgroundJobs fix(alerts): stop the two log-level whitelists from drifting, and the //p/ URLs 2026-09-02 21:42:58 +02:00
Data/Effectful Bound Hasql retries by deadlines so a TF deploy can't dead-letter batches (#676) 2026-10-19 00:06:16 +03:00
Models Template KQL parse check substitutes {{request_kql}} as it does {{browser_kql}} 2026-11-08 23:05:29 +01:00
Pages Consolidate src/Pkg (45 -> 29 modules); nested monitor YAML config 2026-11-05 00:54:10 +01:00
Pkg One monitor builder and error rule; any-results, below and template monitors evaluate correctly (#861) 2026-11-11 17:23:07 +01:00
ProcessMessage fix(ingest): make legacy event retries idempotent 2026-08-20 21:44:19 +02:00
System feat(code context): source repos are their own thing, not the config-sync repo 2026-08-11 18:25:27 +02:00
Web guard hashes in a maybe type 2026-06-11 00:28:40 +02:00
Main.hs move unit tests and integration tests to their own project s they run quickly 2025-07-02 01:41:15 +02:00
RequestMessagesSpec.hs fix(errors): update the tests that pinned the hex shatter, and plan the grouping work 2026-09-03 10:53:41 +02:00
Spec.hs Unify team email resolution so @everyone test notifications reach all members 2026-02-15 20:28:48 +01:00