9308097ff0
Working logic to call a saved function and parse some results
2025-12-03 21:50:36 +00:00
04ba2e5df2
Switch sync stats to uints, save partial work on new export logic.
2025-12-03 16:27:35 +00:00
41291f07b3
Pass function parameters into string formatting.
2025-12-02 23:02:41 +00:00
b488730177
Use a prepared function and get a result
2025-12-02 22:44:51 +00:00
eac240af51
Properly read prepared functions from the embedded FS
...
Yeah, reading that wrong was bad.
2025-12-02 22:28:10 +00:00
97ec2c767d
Big checkpoint on new schema work
...
I have to checkpoint this because I'm trying to get a very complicated
multi-layered SQL query for inserting version history into the database
and I need to improve it iteratively
I've got a new binary that I can use to directly test complex stored
procedures. This is to shorted my testing loop.
2025-12-02 22:12:43 +00:00
49148fc66a
Convert notification.go to use zerolog
2025-12-02 00:30:46 +00:00
ff7c5cdb6b
Save a copy of the Fieldseeker schema on oauth connect
...
This will make it easier to debug when we get a new customer which
schema elements are in common and which are specific to Delta.
2025-12-02 00:30:08 +00:00
7c4fb02908
Move to latest bobgen, add fieldseeker schema references
...
This is an intermediate step between shifting from the old fs_* prefixed
table names to an entire fieldseeker schema. At this point we have both,
and we aren't doing much with the new schema but compiling.
2025-12-02 00:28:14 +00:00
683c5134df
Migrate auth to zerolog
2025-11-24 19:49:19 +00:00
fa43c58607
Use zerolog logger for incoming requests
...
Got this mostly from
https://github.com/ironstar-io/chizerolog
with some edits to handle X-Forwarded-For
2025-11-24 19:45:37 +00:00
07ccce6512
Add missing query source file
2025-11-24 18:09:28 +00:00
df3a171b0d
Avoid crashing when getting oauth with an expired user
2025-11-24 18:09:06 +00:00
41587c3694
Move database logic into separate subdirectory
...
I'm trying to see if this speeds up builds a bit. May not without a
module boundary, but for now it's nice organization to have as the
program grows.
2025-11-24 18:08:31 +00:00
338f90708e
Now with proper vendor hash updates
2025-11-21 18:04:24 +00:00
00e4b8a09b
Use new v2 release of go-geojson2h3
2025-11-21 17:44:29 +00:00
5c8e016b1c
Update the summary tables after export
2025-11-21 17:28:05 +00:00
009dc29e5d
Calculate treatment cadence by year
2025-11-21 17:26:49 +00:00
689cc0319d
Fix bad JS for marker rendering
2025-11-21 16:41:24 +00:00
54d9ce616d
Avoid wrapping all the info label columns
2025-11-21 16:37:04 +00:00
b7318ae973
Only get the latest 10 trap collections
...
Otherwise the page gets really swamped
2025-11-21 16:28:03 +00:00
d3b9d34bd2
Add basic average cadence calculation to treatments
2025-11-21 05:46:31 +00:00
3a1db11e47
Make more space for the trap tables
2025-11-20 21:11:12 +00:00
e7ece52c8c
Add trap count data to source page
...
It's...way too many rows, now that I have the actual data. It needs to
be reworked.
2025-11-20 20:59:28 +00:00
26ee3efcc8
Make navbar links go somwhere or go nowhere
2025-11-20 15:25:13 +00:00
9e3d12ae2a
Add treatment and inspection history to a source
2025-11-20 15:24:54 +00:00
f599d831c8
Add breeding source detail page
...
A bunch of it is currently placeholders, but I got the map marker
working so I'm saving it.
2025-11-20 14:56:34 +00:00
6dca03fd0a
Order rows in the data tables
2025-11-19 22:36:19 +00:00
216c91ed10
Add links to source-specific details page
2025-11-19 22:34:07 +00:00
aab9bd0c44
Add inspections to cell page
2025-11-19 22:30:01 +00:00
7b13b4b1ad
Add treatments information to cell debug page
2025-11-19 16:32:56 +00:00
782b13c6a0
Add basic query for breeding sources
...
Still a lot of placeholders.
2025-11-19 15:59:51 +00:00
c0b527c9a3
Add cell debug page.
...
This makes it much easier to troubleshoot information related to a cell
by showing detailed data about a single cell. At this point much is a
placeholder, but we at least get the cell boundary coordinates and a
map.
This also starts to make some code common around doing things like
mapping.
2025-11-19 15:21:06 +00:00
7c2d7eef25
Create separate signin page, make auth redirect there.
2025-11-19 15:19:42 +00:00
60a1eba2eb
Detect clicks on hexes in the map display.
...
This will allow us to focus on a single region.
2025-11-17 22:13:02 +00:00
ec1a4cc6fa
Add the organization ID to the Tegola URL
...
We'll eventually want this provided through the template, but for now
the direct coding proves that it works.
2025-11-16 21:25:54 +00:00
930906dba3
Filter vector tiles by resolution
...
This is not really efficient - we're pulling across high-resolution data
then throwing it away on the frontend. But it proves the important
thing: that we're loading the data correctly.
2025-11-15 22:02:50 +00:00
a14249710d
Add geometry info to h3 aggregation table
...
This makes it possible to use Tegola to show vector tiles.
2025-11-15 21:33:01 +00:00
6f6af23578
Convert endpoint.go to use zerolog
...
Yay, consistency.
2025-11-14 23:09:27 +00:00
0614a768c3
Remove redundant API error type, use arcgis
...
That's what the library is supposed to be for.
Errors still aren't working quite right.
2025-11-14 23:08:26 +00:00
e48abb09c0
Go to h3 v4, Add initial h3 aggregation work
...
This calculates the summary information of data in h3 nodes and puts it
in the database for fast lookup.
2025-11-13 23:49:12 +00:00
7919f0da66
Wrap errors. Don't emit crash message on no oauth tokens.
2025-11-13 20:53:20 +00:00
8e71542c3f
Convert arcgis.go to use zerolog
2025-11-13 20:34:48 +00:00
968a934df7
Convert database.go to use zerolog
2025-11-13 20:16:23 +00:00
0dce12b059
Begin switch to nice colorized zerolog
...
Makes it easier to read
2025-11-13 20:11:00 +00:00
134dcd7444
Push an H3 cell to javascript and render it
...
A proof-of-concept.
2025-11-13 20:01:15 +00:00
b6c078f04c
Make heatmap fit inside the page layout.
2025-11-13 17:55:44 +00:00
bc60be3b48
Add logging to catch specific error type on double notification insert
2025-11-13 17:48:56 +00:00
a6fe8f9027
Add basic MapBox integration.
...
It's just a demo at this point.
2025-11-13 17:48:38 +00:00
fc40309dd0
Make it possible to resolve notifications
2025-11-13 16:48:23 +00:00