Commit Graph
226 Commits
Author SHA1 Message Date
MrAlders0n 22b10d18d5 Deliver alerts by email or push 2026-11-15 02:02:21 -05:00
MrAlders0n 6fa5e2c13e Evaluate alert rules 2026-11-15 01:56:20 -05:00
MrAlders0n 26ccf6d4db Add alert rules and device registration 2026-11-15 01:48:15 -05:00
MrAlders0n 35468cc7cc Add sign-in through the MeshMapper portal 2026-11-15 01:40:24 -05:00
MrAlders0n 59bbee8baf Use real status readings for telemetry counters 2026-11-15 01:23:25 -05:00
MrAlders0n 4708513cdd Close remaining credential races 2026-11-15 01:19:31 -05:00
MrAlders0n 87a2de2b87 Fix reset, resend and session lookup edge cases 2026-11-15 01:14:20 -05:00
MrAlders0n 24e3588e65 Serialise sign-in against credential changes 2026-11-15 01:08:02 -05:00
MrAlders0n 77cde9f66d Tighten who can take and stop a telemetry request 2026-11-15 01:04:42 -05:00
MrAlders0n c34a20f2a5 Assign requested repeaters to observers 2026-11-15 00:56:28 -05:00
MrAlders0n 1c51a6b77d Add telemetry request storage and routes 2026-11-15 00:41:16 -05:00
MrAlders0n 49ea5e04e8 Add account Atlas storage and routes 2026-11-14 23:52:28 -05:00
MrAlders0n 45ea8cfae5 Keep disabled accounts out of the unverified cleanup 2026-11-14 23:47:12 -05:00
MrAlders0n 81e7950705 Wire accounts into startup and add operator user management 2026-11-14 23:41:56 -05:00
MrAlders0n fd1d7de5f9 Tighten resend, username checks and throttle eviction 2026-11-14 23:33:26 -05:00
MrAlders0n 79386e9851 Close throttle and pending sign-up gaps 2026-11-14 23:28:10 -05:00
MrAlders0n 7fa0f4e8b1 Harden registration and account mail 2026-11-14 23:20:43 -05:00
MrAlders0n 2a22c6d1dd Add the accounts service 2026-11-14 23:10:39 -05:00
MrAlders0n 97b77298c9 Add users, sessions and one-time tokens 2026-11-14 22:56:04 -05:00
MrAlders0n 87009f395a Add node polling endpoint and feature flags to info 2026-11-14 21:56:23 -05:00
MrAlders0n c4024f2d3a Add node telemetry endpoint 2026-11-14 21:50:50 -05:00
MrAlders0n 52a9868f7d Mark repeater readings as trusted when stored 2026-11-14 21:45:47 -05:00
MrAlders0n 146bb74b8f Corroborate never-counted polling readings first 2026-11-14 14:56:31 -05:00
MrAlders0n 96f29f407e Make polling rate limits atomic, budget readings per observer and lock cleanup per target 2026-11-14 14:54:44 -05:00
MrAlders0n 8d3dc24a22 Rank polling evidence before health and add approved authority 2026-11-14 14:47:15 -05:00
MrAlders0n 4495e1c648 Add admin view of polling targets and show the effective pause 2026-11-14 14:21:45 -05:00
MrAlders0n 4bec5669ee Rate limit polling claims and readings and cap message sizes 2026-11-14 14:16:00 -05:00
MrAlders0n 5437a708a2 Serialize polling elections per target and trust only assigned pollers' readings 2026-11-14 14:11:10 -05:00
MrAlders0n ea6c00bc78 Key repeater readings by observer key and index polling observer columns 2026-11-14 14:04:30 -05:00
MrAlders0n 7ada6b8c5c Wire polling into startup, jobs and admin 2026-11-14 13:35:49 -05:00
MrAlders0n 4f7afa3ccc Base polling liveness on receive time 2026-11-14 13:17:14 -05:00
MrAlders0n 008d94a221 Add polling tables and store 2026-11-14 10:46:39 -05:00
MrAlders0n 5476e9e628 perf(db): page node observations from the node's packets 2026-11-10 10:37:15 -05:00
MrAlders0n 7ede937a77 feat(api): hourly node activity from a rollup 2026-11-10 09:59:47 -05:00
MrAlders0n fea013234c feat(api): sort /nodes oldest heard first 2026-10-30 09:14:16 -04:00
MrAlders0n 80255119c1 perf(observers): serve the 24-hour activity chart from memory
The 24-hour observer chart (15-minute buckets) read every raw observation
of the day twice, once for the buckets and once for the type mix: 4.5 s
for a busy observer on prod, and the apps poll it every minute. It now
reads them in one pass, and the process that ingests keeps per-observer
15-minute sums of what it stores (25 hours), so the chart only reads raw
rows before counting began and for the slot still filling. Results match
the raw read exactly (integration test), including after retention
deletes.
2026-10-28 22:30:52 -04:00
MrAlders0n a6f7131821 feat(api): filter /routes by several IATAs
GET /routes takes iatas (comma list, at most 100) alongside the single
iata. Each listed IATA's page is read from its region keyset and the
pages are merged, so a region costs at most its IATA count times the
page and pages exactly like one IATA's list. Clients no longer have to
scan every IATA's routes and filter a region themselves.
2026-10-27 15:48:21 -04:00
MrAlders0n 4dee65ff62 feat(api): sort /nodes by name, type or neighbour count
GET /nodes takes sort=name|type|neighbors and order=asc|desc, paged with
pageCursor, so a client can page a sorted node list instead of loading
every node to sort it. Names sort in the web table's order (ICU root with
numeric digit runs, migration 061), unnamed nodes last; ties go newest
first. Pages echo sort and order so clients can tell the server sorted.
2026-10-27 15:47:20 -04:00
MrAlders0n bbc964fd2f perf(observers): count unrolled hours in memory for the directory
The directory re-read every raw observation of the hours not yet
rolled up: on prod about 293k rows for the open hour, a heap page each
(new rows land wherever cleanup freed space), 7 of the 8 s an
all-regions request took. The ingesting process now also counts each
stored observation per minute, observer and IATA, and the directory
adds those up for hours wholly counted, reading raw rows only for the
last partial minute. Partial or cleanup-thinned hours and processes
that don't ingest read raw rows as before; results are identical (an
integration test compares both paths).
2026-10-27 15:18:13 -04:00
MrAlders0n 646c69fc96 feat(api): list regions with their member IATAs and detail
Each /regions item now carries what GET /regions/{id} returns, so a
client resolves every region in one call instead of one per region (41
calls per page load on a 40-region deployment). Additive: old clients
ignore the new fields. The list's cache key is renamed so a cached
summary-only list is never served.
2026-10-26 13:59:04 -04:00
MrAlders0n 1b7539f2f3 Seek region and message pages from their window, drop the slow pool (#279)
* Seek region and message pages from their window, drop the slow pool

* Bound typed and scoped region pages and message since pages, migration 059

* Count the late rows in the zero-hit type pair read bound

* Cap typed window ranges, broader bounded cmi verification
2026-10-24 15:09:09 -04:00
MrAlders0n c3350953e5 Re-hearing a hash-only channel with a nil fingerprint updates its row (#284) 2026-10-24 14:41:14 -04:00
MrAlders0n 2b6b01661d Store a node's full clock drift: widen it to bigint (#283) 2026-10-24 14:23:44 -04:00
MrAlders0n 1967573201 Gate the global hop page on the hop group's estimate (#278)
* Gate the global hop page on the hop group's estimate, keeping today's statement for large groups

* Decide the global hop branch in the store from cached hop statistics

* Planguard test corpora pass the global hop page's read_group

* Read hop statistics outside the lock on their own context; planner clamps; both branches in tests and corpus
2026-10-24 13:52:03 -04:00
MrAlders0n 4483c6de3d Sample the audit and verification slices by row; count payload-type progress in rows (#280)
* Sample the audit and verification slices by row; count payload-type progress in rows

* Read sample statistics outside the verify transaction; anchor payload-type progress at id 0
2026-10-24 13:28:15 -04:00
MrAlders0n 6c812c2b5c Slice the packet_sites fill by observations and count progress in rows (#274)
* Slice the packet_sites fill by observations and count progress in rows

* Keep one set of id statistics per fill; count new ids one row each
2026-10-24 12:45:11 -04:00
MrAlders0n 8c89b62691 Run the channel message backfill in the background after startup (#276)
* Run the channel message backfill in the background after startup

* Finish each backfilled packet; mark packets whose message exists; log a shutdown stop

* Cap each backfilled packet's statements at 30 s
2026-10-24 12:33:38 -04:00
MrAlders0n 4bd1432d81 Run all-region top nodes as its own statement with two parallel workers (#275)
* Run all-region top nodes as its own statement with two parallel workers

* Check the parallel statement returns its own connection to the pool

* Rebaseline the pnw top-nodes entry for the probe without its all-region branch
2026-10-24 12:28:20 -04:00
MrAlders0n 1c89ba19a8 Write hourly rollup rows in primary-key order (#273)
* Write hourly rollup rows in primary-key order

* Cover talker sets in the rollup order test; local baseline for the pnw entry
2026-10-24 11:55:16 -04:00
MrAlders0n 433ad0234a Observer comparison: read each observer's receptions on their own (#260)
* Read each observer's receptions on their own in the observer comparison

* Tighten the observer comparison plan checks
2026-10-20 18:47:08 -04:00