temporalio / temporalio/sdk-rust

[Feature Request] Add information in visibility that distinguishes between a deprecated and non deprecated patch

Open
#658 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
523
Forks
161
Avg merge
1d 7h
Merged PRs (30d)
67

Description

Part of the design for the patched and deprecatePatch APIs included a method for users to verify when old code branches can be removed and when deprecated patches can be removed from workflow code.

It's safe to remove patches once there are only workflow histories that include the deprecated version of a patch.
Core adds the TemporalChangeVersion search attribute when emitting a patch marker but does not add information on the deprecation status of that patch.
Users can get around it by fetching all workflow histories and inspecting the patch markers but that's far from optimal.

Describe the solution you'd like

Have some method to distinguish between deprecated and non deprecated patches via visibility queries.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the patched and deprecatePatch APIs and how the TemporalChangeVersion search attribute is emitted. The work is done when visibility queries can distinguish deprecated patches from non-deprecated patches without fetching and inspecting all workflow histories.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.