Commit graph

24 commits

Author SHA1 Message Date
44c4f17f32
Massive rework of platform layer user/organization
The goal of this rework is to make it so I can pass around platform.User
instead of a pair of models.Organization and models.User. This is useful
for reason I kind of forget now, but it started with working on
notifications and ballooned massively from there into refactoring a
number of things that were bugging me.

This also includes a tiny amount of work on server-side events (SSE).

 * background stuff lives inside the platform now, which I need for
   having it push updates through SSE
 * userfile now lives in the platform, under file, so other platform
   functions can safely use it
 * oauth is broken into pieces and inside platform because other stuff
   was calling it already, but badly.
 * notifications go into the platform as well
2026-03-12 23:49:16 +00:00
bee8097546
Stop creating oauth token debug files 2026-03-04 14:53:11 +00:00
89eda187be
Get map images working 2026-03-01 20:33:16 +00:00
d4d9749431
Rework arcgis integration for arcgis-go changes and table changes 2026-02-28 23:26:08 +00:00
7d33354acb
Don't panic if we don't have a FieldseekerURL 2026-02-17 07:05:10 +00:00
76f4613320
Keep track of rows that are outside of the district 2026-02-14 04:08:22 +00:00
8932f46900
Fix bug where I stopped initiating the background processes 2026-02-13 21:46:20 +00:00
bdd862e649
Show actual information on oauth integration setting page 2026-02-13 21:14:46 +00:00
62c724b5c2
Update to latest arcgis-go interfacets 2026-02-13 19:19:39 +00:00
8e68230f4a
Handle changes to arcgis-go 2026-02-12 21:05:51 +00:00
c136ff102b
Update to passing newly required context to arcgis-go 2026-02-10 21:30:58 +00:00
a92cb52eb5
Gracefully handle lack of permissions on webhook and permission 2026-02-10 18:54:47 +00:00
63193c5324
Add test for doing geocoding directly from esri
It works at this point.
2026-02-09 21:40:24 +00:00
39e0d9d9f3
Remove chatty oauth debug message about no ouath
Floods my dev setup log
2026-02-06 15:40:25 +00:00
a68b8781e7
Add ability to make LLM agent forget the conversation history
This is extremely useful for testing.

In order to do this I needed to actually deploy the migration to a bob
fork so I could start to add support for behaviors I really want.
Specifically the ability to search for ids in a slice.
2026-01-27 18:44:02 +00:00
61d8d14fc2
Bunch of work around assigning reports to districts
I added some DB schema to track logos and to relate reports to
organizations. I reworked how GPS data comes from EXIF data on images
because it wasn't working for JPEGs. I might have broken PNGs in the
process. Also made the config options for domain names more
standardized.
2026-01-22 03:27:32 +00:00
f4a88623af
Overhaul system for handling text messaging
Move away from "SMS" as the operative word - we're going RCS.
Move all comms processing to a separate goroutine
Rename the DB tables
2026-01-21 03:30:03 +00:00
079d20c086
Extract EXIF data from images
This required a schema change and actually dumps all existing photo data
from the public reports page. That's probably fine since it's not
deployed to any customers so all data is currently test data.
2026-01-16 20:16:58 +00:00
06140a9062
Remove bob submodule, add arcgis.user
I had to remove the submodule because of the go bug at
https://github.com/golang/go/issues/77196
I found the bug because of a bug in bob itself
https://github.com/stephenafamo/bob/issues/610
This was because I'm trying to save data about the Arcgis user for use
in determining if I can set up hooks to avoid the polling for data
changes.
2026-01-15 19:20:39 +00:00
d46d988b4d
Make aggregate layers clean up, add service request aggregate 2026-01-15 04:10:54 +00:00
248cffd323
Rework arcgis oauth flow logic
This is several changes after the demo with Ben
 * When a user adds their oauth and they get an arcgis ID for an
   organization that exits they are added to that organization. The
   previous org isn't removed
 * All layer processing is done in a single large pool. This makes it
   much faster in aggregate
 * Some queries are done more directly instead of through custom sql
2026-01-15 01:05:21 +00:00
cd22818240
Actually exit early on empty aggregate
Previous attempt was subtly wrong.
2026-01-14 21:52:36 +00:00
21a8f9622a
Avoid empty insert statement when there are no aggregations 2026-01-14 21:36:58 +00:00
572b8a9de9 Rip apart several new packages for inter-dependence
This will help make it clear what depends on what for rendering html
pages
2026-01-07 16:07:51 +00:00
Renamed from arcgis.go (Browse further)