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
0cc0b57e33
Fix display of 'committing' files
2026-03-19 05:46:06 +00:00
dad867a356
Fix readme example use of watchexec
2026-03-19 05:45:54 +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
5fd85d7052
Show log when upload file is committed
2026-03-19 03:53:15 +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
c872cebb8f
Make pool condition colors more distinctive
2026-03-19 03:42:30 +00:00
5fa4dd2884
Fix error about redundant service area
2026-03-19 03:42:14 +00:00
c039c70e3e
Switch file upload page to not use map-libre-test
...
That libre test was something I built when doing the changeover to
stadia maps. It's now pretty well baked, so it's better to just use it.
2026-03-19 03:30:01 +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
d287fa44df
Create a log for impersonation activities
2026-03-19 03:19:03 +00:00
b2eb98a66c
Fix upload list page
2026-03-19 02:51:09 +00:00
732b123342
Auto-generate report IDs, join on public_id.
2026-03-18 20:36:58 +00:00
f66d40f28b
fix bad select in migration 112
2026-03-18 20:23:57 +00:00
15766d0f86
Fix build for staging
2026-03-18 19:59:42 +00:00
bf99e0ce2e
Fix display of types on comms page
2026-03-18 19:26:49 +00:00
d03ae73285
Fix setting address on marker drag of standing water page
2026-03-18 19:26:32 +00:00
c39837faba
Make 'minutes' a bit shorter.
...
To avoid some line wrapping
2026-03-18 19:26:06 +00:00
28714b06b8
Fix tracking report type through the system
2026-03-18 19:25:52 +00:00
5cfd16e6a0
Fix references to report organization ID
2026-03-18 19:00:40 +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
341c3ef6b9
Fix publicreport creation
...
The consistency is good, but I added some errors, like not using an enum
2026-03-18 18:45:18 +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
3a28151b09
Make structured and raw geocodes work for bulk geocoding
2026-03-16 03:51:14 +00:00
7a0fe04768
Fix references to structured geocode request
2026-03-16 01:49:41 +00:00
cc95c38ab5
Initial creation of endpoint to send messages to public reporters
2026-03-16 00:20:41 +00:00
9707e8793b
Fix display of notification area
2026-03-14 20:04:10 +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
a8f2c87e38
Fix display of reporter name on comms page
2026-03-14 18:14:46 +00:00
148454d392
Push update to public report event when reporter is saved
2026-03-14 18:14:30 +00:00
1075e35bca
Update communications list on event
2026-03-14 18:13:51 +00:00
94b2ff2e21
Only count publicreports that haven't been reviewed
2026-03-14 16:58:25 +00:00
a20c8918f8
Update mailer query based on changes to lead/site rel
2026-03-14 16:56:04 +00:00
f8193f7354
Default map to continental US
...
Because 0,0 is in the middle of the ocean
2026-03-14 16:55:40 +00:00
299b72eac3
Only show communications if we have a method to do them.
2026-03-14 16:23:09 +00:00
4c71cab973
Avoid error on photo modal without photos
2026-03-14 16:17:08 +00:00
70ebfa8ee0
Avoid making the images list null if there are no images
2026-03-14 16:13:08 +00:00
66e122f7e7
Fix notification counts being off
...
Double-counting water
2026-03-14 16:12:52 +00:00
1a9a72adc0
Create district catch-all, make organization on public reports not null
2026-03-14 15:53:16 +00:00
5d86da626b
Fix address input when user doesn't pick a suggestion or use geolocation
2026-03-14 02:01:48 +00:00
b29d172030
Add better support for extracting address from reverse geocode results
...
Stadia's API sucks. They don't really tell you what their response will
be in detail, just claim they are all the same, but they're not. Not
even a little.
2026-03-14 01:51:02 +00:00
e2af49a323
Make lead creation and invalidation for public reports work
...
The only thing wrong at this point that I can tell is that address
aren't being correctly populated when I reverse geocode.
2026-03-14 01:14:30 +00:00