Skip to content

Make sql trigger func modular so they do not interfere with one another#11

Merged
spwoodcock merged 1 commit intomainfrom
fix/modular-trigger-sql
Jun 19, 2025
Merged

Make sql trigger func modular so they do not interfere with one another#11
spwoodcock merged 1 commit intomainfrom
fix/modular-trigger-sql

Conversation

@spwoodcock
Copy link
Copy Markdown
Member

Fixes hotosm/field-tm#2569

Makes the SQL trigger function construction modular, only enabling the CASE / WHEN for each event, if they are specified in the webhook URLs.

Workaround to ensure trigger works for all entity updates and submission reviews, even if the submission XML is large (avoids running submission create trigger). Until #9 is fixed.

@renatocava this doesn't fix the issue for using the submission.create event, but it will prevent the webhook breaking if the submission XML is large and you are using submission.update or entity.update events, so it's a partial fix 👍

@spwoodcock spwoodcock self-assigned this Jun 18, 2025
@spwoodcock spwoodcock added the enhancement New feature or request label Jun 18, 2025
@github-actions github-actions bot added the bug Something isn't working label Jun 18, 2025
@spwoodcock spwoodcock merged commit 2081e56 into main Jun 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix and update central-webhook service to handle very large surveys

1 participant