uber-go / cadence-client

Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
https://cadenceworkflow.io
MIT License
339 stars 128 forks source link

Add `__query_types` query type #1295

Closed arzonus closed 7 months ago

arzonus commented 7 months ago

What changed?

A new built-in query type __query_type has been added. A result of the processing of the query type must be an array of strings. The list must contain all built-in query types (included this one) and all custom query types of the workflow.

Why? The changes are required to implement the task, so it allows users to retrieve the list of available query types.

How did you test it? The changes were tested locally. TestProcessQuery_KnownQueryTypes was added.

Potential risks There are no expected risks. The worst potential risk is the query functionality will not work.

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.