feat: add @message_handler() decorator
The decorator supports event handler functions that process message events (currently GCP Pub/Sub messages, wrapped in CloudEvents). The functions receive messages as instances of a data type they choose, that represents the parsed payload of the message events they subscribe to. This decorator allows event handler functions to accept message data as a type representing the decoded payload of a message event. For example, a Pydantic model representing a JSON payload. - Validating incoming message metadata envelope - Parsing/validating the message payload - Recording the message envelope metadata in the function's `ExecutionInfo` result Handler functions can focus on processing decoded message data payloads, without needing to do their own parsing and validation or event metadata logging/reporting.
-
mentioned in merge request uis/devops/gsuite/management-functions!38
-
mentioned in merge request uis/devops/iam/activate-account/account-data-manager!2
-
mentioned in merge request uis/devops/iam/activate-account/entra-event-handler!26
-
mentioned in merge request uis/devops/devhub/lookup-gitlab-sync/faas!35
-
mentioned in merge request uis/devops/iam/ibis/institution-mapping-tool!13
-
mentioned in merge request uis/devops/infra/terraform/ucam-faas-long!82 (merged)
-
mentioned in merge request uis/devops/infra/terraform/ucam-faas!130 (merged)
-
mentioned in merge request uis/devops/gsuite/management-functions!49
-
mentioned in merge request uis/devops/devhub/lookup-gitlab-sync/faas!57
-
mentioned in merge request uis/devops/iam/activate-account/account-data-manager!64
-
mentioned in merge request uis/devops/iam/activate-account/entra-event-handler!47