Skip to content

add support for OGC API Publish-Subscribe Workflow - Part 1: Core (#2146)#2220

Merged
tomkralidis merged 10 commits intomasterfrom
ogcapi-pubsub
Jan 29, 2026
Merged

add support for OGC API Publish-Subscribe Workflow - Part 1: Core (#2146)#2220
tomkralidis merged 10 commits intomasterfrom
ogcapi-pubsub

Conversation

@tomkralidis
Copy link
Copy Markdown
Member

@tomkralidis tomkralidis commented Jan 28, 2026

Overview

This PR adds support for OGC API Publish-Subscribe Workflow - Part 1: Core by adding Pub/Sub support (MQTT, HTTP) triggered by item transactions and process execution.

This PR additionally fixes issues found as part of testing (see #2223).

Related Issue / discussion

Fixes #2146
Fixes #2223

Additional information

This implementation is put forth as part of OSGeo contributions to the 2026 Joint OGC – OSGeo – ASF Code Sprint

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

@tomkralidis tomkralidis added this to the 0.23.0 milestone Jan 28, 2026
@tomkralidis tomkralidis added enhancement New feature or request OGC API - Publish-Subscribe Workflow OGC API - Publish-Subscribe Workflow labels Jan 28, 2026
@tomkralidis tomkralidis changed the title [WIP] add support for OGC API Publish-Subscribe Workflow - Part 1: Core (#2146) add support for OGC API Publish-Subscribe Workflow - Part 1: Core (#2146) Jan 28, 2026
@tomkralidis tomkralidis requested a review from a team January 28, 2026 17:20
@tomkralidis tomkralidis marked this pull request as ready for review January 28, 2026 17:20
Copy link
Copy Markdown
Member

@webb-ben webb-ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assume further configuration and tests will come with time

Copy link
Copy Markdown
Member

@webb-ben webb-ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
Tested against OAProc and received the following from my MQTT broker

Image

@tomkralidis note i continue to receive notifications even if no action happens
image

@tomkralidis
Copy link
Copy Markdown
Member Author

+1 Tested against OAProc and received the following from my MQTT broker

Image @tomkralidis note i continue to receive notifications even if no action happens image

Looks like we are not testing for 404s in the underlying repository at the API level. I've put forth a issue in #2223 and associated fix in this PR, including a test in the PostgreSQL provider.

Copy link
Copy Markdown
Contributor

@doublebyte1 doublebyte1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for this. I left some comments, but hope to be able to do more tests

@kalxas kalxas self-requested a review January 28, 2026 23:06
@doublebyte1 doublebyte1 self-requested a review January 29, 2026 13:36
Copy link
Copy Markdown
Contributor

@doublebyte1 doublebyte1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the AsyncAPI support. It works perfectly 👍🏽

Image Image

@tomkralidis tomkralidis merged commit 6457233 into master Jan 29, 2026
6 checks passed
@tomkralidis tomkralidis deleted the ogcapi-pubsub branch January 29, 2026 16:10
mdearos pushed a commit to mdearos/pygeoapi that referenced this pull request Feb 2, 2026
…opython#2146) (geopython#2220)

* add support for OGC API Publish-Subscribe Workflow - Part 1: Core (geopython#2146)

* update docs

* update docs

* fix API deletion on not found items in backend

* fix ref

* fix docs

* add AsyncAPI support

* fix tests

* add exception handling

* update docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request OGC API - Publish-Subscribe Workflow OGC API - Publish-Subscribe Workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix API transaction DELETE handling to return 404 on non-existing item add support for OGC API Publish-Subscribe Workflow - Part 1: Core

4 participants