Commit Graph
8 Commits
Author SHA1 Message Date
mozdemir d2b430a524 fix: number point alarm register and update log lines by record instead of file line 2026-10-23 19:47:55 +03:00
mozdemir e17c06da4a fix: send the full webhook and skip /users/me in the point alarm register client
The backend requires a webhook with a delivery policy on every point alarm register call and resolves the account from the caller, so the register client no longer calls /v1/users/me (account is null for some users), no longer sends the accountId-only webhook and no longer relies on IKLIM_WEBHOOK_INITIALIZED.
2026-10-23 19:45:02 +03:00
mozdemir aaa0c99eb2 fix: stop sending accountId implicitly from the page client
The page client no longer resolves accountId from /v1/users/me. accountId is only sent when passed with --account-id, and a 403 for it now raises a clear error telling the user to omit it because the server scopes the listing to the caller's own account.
2026-10-23 19:31:48 +03:00
mozdemir 4d270aea05 feat: add nowcast point alarm unregister client with confirmation and backup
Shows environment, count and an irreversibility warning, requires typing the confirmation word (plus the environment name on prod), backs every registration up through get-by-id before deleting and aborts the whole run if the backup cannot be completed.
2026-10-23 19:14:08 +03:00
mozdemir 8587669ea5 feat: add nowcast point alarm update client with dry-run
Patches registrations from CSV rows, sending only non-blank cells, validating lat/lng pairing and ranges locally, warning about the speedThreshold PATCH gap (GAIA-476) and recording status, httpStatus and errorBody back into the CSV.
2026-10-23 19:13:35 +03:00
mozdemir ba249128a1 feat: add nowcast point alarm register client
Registers one point alarm per CSV row (recipientId, lat, lng, radius) with the shared filter JSON and the existing webhook bootstrap, records status, httpStatus, registrationId and errorBody back into the CSV and recovers ambiguous failures only on an identical recipient, point and radius match.
2026-10-23 19:13:01 +03:00
mozdemir 32a587a1c6 feat: add nowcast point alarm get client for id and recipient lookups
Reads IDs from CSV or TXT, writes per-query SUCCESS, NOT_FOUND or FAILED rows to CSV or JSON Lines and mirrors results into SQLite.
2026-10-23 19:12:03 +03:00
mozdemir 0958d26e9f feat: add nowcast point alarm page client with SQLite store
Adds point_alarm.py (flattening, secret masking, SQLite upsert store, paged fetch with 403 fallback, CSV/TXT export, shared filter loader), nowcast-point-page.py CLI and unit tests. Register will read the shared filter from nowcast-point-alarm-filter.json instead of repeating it in the CSV.
2026-10-23 19:11:34 +03:00