Commit graph

169 commits

Author SHA1 Message Date
747544bb58
Get file upload working
Even though the UI doesn't do anything with it yet.
2026-03-27 08:39:38 -07:00
d7c07fc65f
Move all POST endpoints to the API 2026-03-27 06:08:55 -07:00
ef412b28ec
Make upload GET an API request 2026-03-25 21:46:23 -07:00
69eabe4e85
Use publicreport card component on planning page 2026-03-24 09:06:42 -07:00
0289bf5756
Fix retrieval of reports by ID 2026-03-24 09:06:42 -07:00
761af13270
coalesce to a valid country value 2026-03-24 09:06:42 -07:00
7360a9d2e1
Don't crash if the signal hos no address 2026-03-24 09:06:42 -07:00
32f00afa8a
Fix creation of new user organizations 2026-03-24 09:06:42 -07:00
9eb7022336
Provide the raw address value for public reports 2026-03-24 05:53:05 +00:00
b152cf9c36
Break apart the planning columns 2026-03-22 09:58:25 +00:00
21180816be
Start providing organization info and URLs is user/self
The new frontend needs it to do its work.
2026-03-22 01:22:44 +00:00
9b6cacda0e
Make signals include the object they are attached to (pool, report)
This means pushing the types into the common types module, which
required a refactor of a bunch of other libraries.
2026-03-21 01:19:36 +00:00
2cdcbb3784
When pool are green or murky, immediately create signal from them. 2026-03-20 22:11:36 +00:00
c4359a3c81
Fix signals getting saved with correct location 2026-03-20 20:37:16 +00:00
aa94cce2ad
Fix creation of signal from a communication report
I had broken this when altering the signal model to always require a
location
2026-03-20 18:03:32 +00:00
313dacd956
Remove chatty debug logs 2026-03-20 16:38:01 +00:00
6fcaf7fb5d
Avoid crashing when oauth is null 2026-03-20 15:47:45 +00:00
29e66327ee
Stop adding users to organizations based on Arcgis Account 2026-03-20 06:04:30 +00:00
a87904f2ff
Handle photo data including NaN for location 2026-03-20 05:48:59 +00:00
42d9d2372d
Add initial user selector for impersonation page 2026-03-20 05:20:37 +00:00
cb34c43ef4
Improve error messages on notify failures 2026-03-19 21:29:55 +00:00
6042e7d337
Emit events on note creation 2026-03-19 21:29:55 +00:00
fdab54a775
Fix saving note images and transcoding 2026-03-19 20:49:17 +00:00
ba03bf9d4f
Fix audio transcode copy-paste error 2026-03-19 20:14:23 +00:00
17fb3dcdb5
Fix saving notes from Nidus
Wow, that's a serious break.
2026-03-19 20:13:53 +00:00
429b724cf2
Emit a created event on signal creation 2026-03-19 19:17:00 +00:00
2c4e7c4f96
Handle nuisance reports without location data 2026-03-19 19:16:39 +00:00
2f1b612e9e
Move signal creation inside platform layer
This allows us to emit events with it.
2026-03-19 19:00:44 +00:00
908ac4faea
Make signals, not leads, from public reports. 2026-03-19 17:41:56 +00:00
ee61b6d24b
Move review actions into the platform, emit events on change
Still not seeing updates in the sidebar, however.
2026-03-19 16:55:49 +00:00
954a4330ee
Add notifications for review tasks 2026-03-19 16:01:44 +00:00
786a6c16a3
Fix up upload by ID
Show the street number as well as the rest of the address, emit an event
when the upload is processed, actually check if pools are existing, etc.
2026-03-19 15:31:04 +00:00
97c9269215
Update file status to committed when commit completes 2026-03-19 05:53:43 +00:00
ab5840dd54
Fix references to org ID using platform org
I broke these a while ago and didn't realize because the compiler
doesn't catch them.
2026-03-19 03:57:38 +00:00
544f99c09b
Check error state on update sql 2026-03-19 03:52:56 +00:00
6338d9f3f3
Remove chatty debug log 2026-03-19 03:52:40 +00:00
45643e8369
fix redundant log message 2026-03-19 03:52:28 +00:00
434746aa99
Allow the catch-all district to do uploads 2026-03-19 03:25:36 +00:00
2f61b224de
Prevent creating CSV uploads without a service area 2026-03-19 03:19:58 +00:00
f2ea1367e2
Allow the transaction to commit on failure in CSV processing 2026-03-19 03:19:17 +00:00
b2eb98a66c
Fix upload list page 2026-03-19 02:51:09 +00:00
15766d0f86
Fix build for staging 2026-03-18 19:59:42 +00:00
28714b06b8
Fix tracking report type through the system 2026-03-18 19:25:52 +00:00
685b7456b6
Return logs on comms public reports
...and start to display them. A bit.
2026-03-18 18:56:51 +00:00
21e8b9880d
Remove report_location view, add lat lng to report table 2026-03-18 18:55:50 +00:00
1d2570c912
Add DB model for publicreport logs
It's just way easier to track that deriving the data every time an API
request is made.
2026-03-18 17:32:06 +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
70d3aef8b3
Re-select selected communication on fetch
This makes it so the UI updates with any changes we pull down.
2026-03-14 20:03:46 +00:00