Skip to content

Releases: hotosm/central-webhook

1.1.0

02 Mar 00:28

Choose a tag to compare

What's Changed

  • Added missing 'install' flag in ENTRYPOINT and added local build for docker image by @JoacoG in #19
  • Fixes based on feedback in #16

New Contributors

Full Changelog: 1.0.2...1.1.0

1.0.2

18 Dec 15:47

Choose a tag to compare

  • Fix small memory leak due to shared var in SQL trigger function.

Full Changelog: 1.0.1...1.0.2

1.0.1

18 Dec 04:21

Choose a tag to compare

What's Changed

  • Fixed duplicate webhook trigger for submission.update event #15.

Full Changelog: 1.0.0...1.0.1

1.0.0

17 Dec 13:11

Choose a tag to compare

Breaking Change

  • Replaced the pg_notify approach entirely with pgsql-http extension #14.

Note

The pgsql-http extension must be installed and enabled in your database.
See: https://github.com/hotosm/central-webhook#prerequisites

If you tested a previous version, it would be best to remove the trigger first, before testing this out:

./centralwebhook uninstall \
    -db 'postgresql://{user}:{password}@{hostname}/{db}?sslmode=disable'

Full Changelog: 0.3.0...1.0.0

0.3.0

25 Jun 18:24

Choose a tag to compare

  • Add ca-certs to call remote APIs with valid SSL certs!

Full Changelog: 0.2.0...0.3.0

0.2.0

19 Jun 12:20
2081e56

Choose a tag to compare

What's Changed

  • Make sql trigger func modular so they do not interfere with one another by @spwoodcock in #11

Full Changelog: 0.1.1...0.2.0

0.1.1

24 May 18:32

Choose a tag to compare

  • Minor tweak to 0.1.0: adding the pg_notify truncation logic to submission.create (the important one) and entity.update (just in case).

Full Changelog: 0.1.0...0.1.1

0.1.0

11 May 10:29
e467a7c

Choose a tag to compare

  • There are a couple of small bugs to fix, but they don't impact the main workflow too much: #2 & #9
  • Overall, this is pretty stable and has been working well in production for a good 4 months now.

What's Changed

  • Fix sending large payloads via pg_notify with truncated content for now by @spwoodcock in #10

Full Changelog: 0.0.0...0.1.0

0.1.0-rc

29 Jan 21:37

Choose a tag to compare

  • Adding ability to use CENTRAL_WEBHOOK_API_KEY environment variable to configure API key.

Full Changelog: 0.1.0-beta...0.1.0-rc

0.1.0-beta

29 Jan 19:25

Choose a tag to compare

  • Most functionality should be working now, with three webhook triggers:
    • -updateEntityUrl: when properties of Entities are updated.
    • -newSubmissionUrl: when a new submission is made.
    • -reviewSubmissionUrl: when a submission review state is updated.
  • An -apiKey flag is also supported for passing a X-API-Key header in the request to the receiving server.
Usage of ./centralwebhook:
  -apiKey string
        X-API-Key header value, for autenticating with webhook API
  -db string
        DB host (postgresql://{user}:{password}@{hostname}/{db}?sslmode=disable)
  -debug
        Enable debug logging
  -newSubmissionUrl string
        Webhook URL for new submission events
  -reviewSubmissionUrl string
        Webhook URL for review submission events
  -updateEntityUrl string
        Webhook URL for update entity events

Full Changelog: 0.0.0...0.1.0-beta