nidus-sync/platform
Eli Ribble 393836a86a
Fix notification of job happening before transaction is closed
This is kind of a wild one. Turns out that the triggers I was using
actually fire before the transaction is closed and I was primarily
getting lucky that the job was present on the other side of the
connection rather than having things built correctly.

I've fixed this by removing the trigger entirely and instead manually
triggering as part of the transaction. This makes the NOTIFY call happen
as soon as the transaction closes, just at the cost of making my
application be in charge of ensuring the NOTIFY gets called. Seems like
a win.

Part of doing this is porting the existing job creation code over to use
Jet. It's something I want to do anyway, so it's a win all around.
2026-05-22 23:34:38 +00:00
..
address Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
background Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
csv lint: log errors when adding errors from flyover uploads 2026-05-21 13:56:48 +00:00
email Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
event Fix populating water report from ID, make ContactSimple 2026-05-21 03:23:10 +00:00
fieldseeker Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
file Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
geocode Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
geom Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
mailer Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
oauth Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
pdf Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
publicreport Move properties of phones to the phone, not contact_phone 2026-05-22 20:56:22 +00:00
subprocess Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
text Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
types Move properties of phones to the phone, not contact_phone 2026-05-22 20:56:22 +00:00
address.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
arcgis.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
audio.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
avatar.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
client.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
communication.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
compliance.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
contact.go Move properties of phones to the phone, not contact_phone 2026-05-22 20:56:22 +00:00
district.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
empty-tile.png Massive rework of platform layer user/organization 2026-03-12 23:49:16 +00:00
error.go Move review actions into the platform, emit events on change 2026-03-19 16:55:49 +00:00
event.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
feature.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
fieldseeker.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
general.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
image.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
impersonation.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
ios.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
label_studio.go lint: remove unused code from platform/label_studio, email, dashboard, sync 2026-05-09 20:14:38 +00:00
latlng.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
lead.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
mailer.go lint: Remove unused mailerQuery 2026-05-19 23:02:01 +00:00
note.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
notification.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
oauth.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
organization.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
parcel.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
point.go Massive rework of platform layer user/organization 2026-03-12 23:49:16 +00:00
pool.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
publicreport.go Update storage of reporter in contact 2026-05-21 23:12:36 +00:00
publicreport_notification.go Update storage of reporter in contact 2026-05-21 23:12:36 +00:00
review.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
service_request.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
session.go Add some missing files from previous commits 2026-04-02 14:23:16 +00:00
signal.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
site.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
start.go Disable fieldseeker data sync 2026-05-19 20:33:02 +00:00
sync.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
tile.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
trap.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
treatment.go Massive rework of platform layer user/organization 2026-03-12 23:49:16 +00:00
upload.go Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
user.go remove log spam for getting user information 2026-05-19 22:07:52 +00:00
water.go Overhaul publicreport storage layer, create unified tables 2026-03-18 15:36:20 +00:00