Commit graph

16 commits

Author SHA1 Message Date
685b7456b6
Return logs on comms public reports
...and start to display them. A bit.
2026-03-18 18:56:51 +00:00
1e071d5ce5
Overhaul publicreport storage layer, create unified tables
This is a huge change. I was getting really sick of the split between
nuisance/water tables when more than half of the data they store is
common. I finally bit off the big work of switching it all.

This creates a single unified table, publicreport.report and copies the
existing report data into it. It also ports existing data from the
original tables into the new table.

Along with all of this I also overhauled the system for handling
asynchronous work to use a LISTEN/NOTIFY connection from the database
and a single cache table to avoid ever losing work.
2026-03-18 15:36:20 +00:00
2538638c9d
Create generic backend process, fix background interdependencies
This refactor was born out of the inter-dependency cycles developing
between the "background" module and just about every other module which
was caused by the background module becoming a dependency of every
module that needed to background work and the fact that the background
module was also supposedly responsible for the logic for processing
those tasks.

Instead the "background" module is now very, very shallow and relies
entirely on the Postgres NOTIFY logic for triggering jobs. There's a new
table, `job` which holds just a type and single row ID.

All told, this means that jobs can be added to the queue as part of the
API-level or platform-level transaction, ensuring atomicity, and
processing coordination is handled by the platform module, which can
depend on anything.
2026-03-16 19:52:29 +00:00
cc95c38ab5
Initial creation of endpoint to send messages to public reporters 2026-03-16 00:20:41 +00:00
9f78b7d9ba
Fix phone ensureInDB to not break transactions 2026-02-14 17:04:36 +00:00
ff1cd00c96
Ensure phone numbers are in the DB before adding pool 2026-02-14 05:05:31 +00:00
648e0ee567
Move emails to platform, make sure to create phone and email in DB 2026-02-10 04:07:59 +00:00
f20067b323
Actually update reports when a subscriber subscribes 2026-01-31 21:07:03 +00:00
1d7484ef4d
Confirm when a user confirms a phone number 2026-01-31 20:16:12 +00:00
a9b0a55f20
Create report platform layer
Rework phone subscription at the database layer so that we have a
seprate phone status and subscriptions to district communications.
2026-01-31 20:08:08 +00:00
e094ed3d0d
Move Twilio-specific parsing to twilio incoming API 2026-01-29 22:36:16 +00:00
ef5d8168f0
Actually handle incoming text messages from Voip.ms 2026-01-29 22:27:51 +00:00
981f444609
Add support for continuing background text jobs on subscription 2026-01-29 22:20:03 +00:00
d2d5f003d8
Get Voip.ms working again in the text system
Because we need it for the conference.
2026-01-29 21:53:49 +00:00
a42c5824af
Add district to LLM context, be more aggressive about trimming agent: 2026-01-27 23:25:51 +00:00
9914274d42
Wire in agent to the reporter texting system
Also rework the so the platform absorbs all the business logic that was
going in the wrong place.
2026-01-27 19:56:26 +00:00
Renamed from platform/text.go (Browse further)