Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Document SearchAttributes parsing

未关闭
#154 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #155 来自 @lorensr —— 已关闭,未合并

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
领域
api, documentation

调研方向

从 temporal/api/common/v1/message.proto 和 temporal/api/enums/v1/common.proto 中的 IndexedValueType 定义开始,然后跟踪 SearchAttributes 在 StartWorkflowExecution 中的使用方式。当一条注释解释每个 Payload 的 metadata.type 和 data 如何表示受支持的搜索属性类型时,工作即完成。

由索引模型根据 Issue 内容生成。

描述

enhancement
Is your feature request related to a problem? Please describe.

SearchAttributes:

https://github.com/temporalio/api/blob/148f6186cf063ddac5600aa53549ec8c0afe5eaa/temporal/api/common/v1/message.proto#L58-L62

I don't know from reading this proto how to specify search attribute types in StartWorkflowExecution. Possible types are:

https://github.com/temporalio/api/blob/df58bcd5eb85434a8dc5561d55e597d0ad031fc5/temporal/api/enums/v1/common.proto#L40-L48

image

https://docs.temporal.io/docs/concepts/what-is-a-search-attribute/#custom-search-attributes

Describe the solution you'd like

A comment explaining how the Payloads are parsed, for example:

// Each Payload has a metadata.type: IndexedValueType
// If payload.metata.type is INDEXED_VALUE_TYPE_DATETIME, payload.data should be an integer with milliseconds since epoch.

主要语言
Go
星标
134
派生
104
平均合并
9 小时 44 分钟
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

temporalio/api 的其他 Issue

查看 temporalio/api 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。