Commit graph

298 commits

Author SHA1 Message Date
fe2041f22b
Add an evidence field to compliance reports
This allows us to show a page with information about what the district
is concerned about when asking the user to fill a report.
2026-04-21 21:35:40 +00:00
0b005c3e76
Add debug logs around exiting goroutines
I'm debugging our clean shutdown
2026-04-21 19:37:58 +00:00
4a214b099e
Disallow login or sessions from inactive users 2026-04-21 19:37:26 +00:00
eb27af7d90
Add mailer API and initial mailer view 2026-04-21 19:19:59 +00:00
bcea3c6bdf
Gracefully exit listenForJobs when context ends 2026-04-21 14:59:52 +00:00
f927b0a911
Split out ComplianceDistrict view for creating new compliance reports
The idea here is that we'll make compliance reports two different ways,
The first is if the user navigates to /district/:slug/compliance, the
second if they open a QR code from a mailer. In both cases we create the
report then feed them into a flow for updating the data on that report.
2026-04-21 14:35:13 +00:00
e929118349
Reduce log spam on user login error 2026-04-20 22:34:10 +00:00
8387cf667b
Add company filter to Lob list addresses
...even though I never made it actually work.
2026-04-20 22:33:20 +00:00
ffd424df12
Save the organization with the compliance report on creation
This avoids the problem of having to assign the compliance report later
when we get location data and image data.
2026-04-20 16:21:08 +00:00
ade629ecf5
Rework background jobs to make transactions much shorter
I ended up with minutes-long open transactions in the database in prod
which was causing outtages. This is because I thought transactions were
basically free, which is a terrible thing to think. Instead we'll just
open them when we need them.
2026-04-17 22:53:23 +00:00
efd6f59fca
Populate ComplianceReportRequest on site review page 2026-04-17 21:40:04 +00:00
a6ca30fdb1
Add application name to transaction
Trying to find what's getting locked
2026-04-17 21:27:30 +00:00
3196b73a80
fix setting up compliance map 2026-04-17 20:58:21 +00:00
abbe80b1f0
Don't fail to process background jobs because one failed 2026-04-17 20:51:24 +00:00
ac552be7e7
Send compliance report data with lead data 2026-04-17 20:51:07 +00:00
0e777568fb
Add sublogging for job work for debugging 2026-04-17 20:25:25 +00:00
be9065354d
Detect when we fail to get tile service 2026-04-17 19:43:57 +00:00
fa675f293d
Add initial work on getting compliance data for leads 2026-04-17 19:43:40 +00:00
21587493c0
Stop swamping the server on reboot 2026-04-17 18:36:05 +00:00
4625dd39d0
Default sort sites by created date 2026-04-17 18:25:04 +00:00
fd662721bb
Fix non-rolled-back transactions 2026-04-17 18:19:13 +00:00
4a8c0d2e60
defer rollback rather than guard returns
I'm trying to make sure we close transactions on the database
2026-04-17 18:00:26 +00:00
b6e1bffd79
Add support for satellite tiles, with caching 2026-04-17 17:47:38 +00:00
61351dabf1
Update UI when a compliance letter is sent 2026-04-17 15:20:17 +00:00
bf156eaf7f
Slim down chrome requirements for the server 2026-04-17 14:51:24 +00:00
bff81eb6e3
Add basic lead type 2026-04-17 02:59:22 +00:00
617631063f
Add quick'n'dirty interface for leads and features 2026-04-17 02:59:01 +00:00
09fe773987
Use the correct URL for generating pdfs 2026-04-17 02:31:57 +00:00
dc3cce0b8a
Switch to multipart upload of PDF to lob, move backend to using that. 2026-04-17 02:22:05 +00:00
2ddf015a68
Skip pools without an address 2026-04-17 00:11:47 +00:00
fde9539191
Don't attempt to find the parcel if our address ID is nil
That's because the address doesn't have location data, so we can't find
a parcel.
2026-04-16 23:54:18 +00:00
6945b9f9ed
Drop to a single worker in the geocode pool
I'm sharing transactions incorrectly, and until I fix that I need
correctness, not speed.
2026-04-16 23:50:19 +00:00
1aba99f732
Remove chatty debug logs 2026-04-16 22:51:00 +00:00
c0935c848b
Default required fields to empty strings
So the insertion doesn't fail
2026-04-16 22:32:48 +00:00
a2271a2ce8
Add more debug info about user login 2026-04-16 22:08:28 +00:00
83c013785f
Fix swizzled email args 2026-04-16 21:58:41 +00:00
59bf360937
Try to get more debug info on lob 420 error 2026-04-16 21:00:24 +00:00
f1890332ae
Get proper cached images from the tile server 2026-04-16 20:51:17 +00:00
b3a89d9c68
More protections for oauth being expired 2026-04-16 20:43:40 +00:00
a922196f20
Add mailer file utilities 2026-04-16 20:41:13 +00:00
89a2cb30e6
Save the type from the database on feature 2026-04-16 20:40:55 +00:00
1bc452bc09
Avoid crashing when getting Fieldseeker client 2026-04-16 20:40:37 +00:00
ee2254281c
Fix erasing feature locations 2026-04-16 20:39:30 +00:00
a6f9396760
Add first draft of mailer integration
This adds a bunch of stuff, including setting the organization's Lob
sender address ID, inserting mailer/compliance_report relationships,
adding external id from Lob (or maybe some other provider) and
attempting to load up the pool feature for a site.
2026-04-16 19:49:18 +00:00
d047c460ed
Add missing files in last two commits 2026-04-16 17:15:44 +00:00
81e057b900
Add initial work for backgrounding mailer job 2026-04-16 17:15:20 +00:00
7b95cfe833
Actually commit the transaction 2026-04-16 10:49:06 +00:00
6b90edf053
Fix creation of signal for mailer 2026-04-16 10:47:13 +00:00
2ea47f03f4
Start wiring together request for a mailer to database 2026-04-16 10:15:28 +00:00
74e24b7de3
Add feature to site data 2026-04-16 09:04:25 +00:00