Skip to content

feat: Deserialize Priority in schedule Describe#2365

Open
brucearctor wants to merge 2 commits into
temporalio:mainfrom
brucearctor:feat/schedule-priority
Open

feat: Deserialize Priority in schedule Describe#2365
brucearctor wants to merge 2 commits into
temporalio:mainfrom
brucearctor:feat/schedule-priority

Conversation

@brucearctor

Copy link
Copy Markdown
Contributor

What

Fixes #2350

The Priority field was already serialized when creating/updating a schedule (convertToPBScheduleAction), but the deserialization path in convertFromPBScheduleAction was missing. This meant that ScheduleHandle.Describe() would always return a zero-value Priority, breaking the Describe→Modify→Update round-trip.

Changes

  • Add convertFromPBPriority call in convertFromPBScheduleAction (1 line)
  • Add WARNING: experimental tag to ScheduleWorkflowAction.Priority doc (consistent with StartChildWorkflowOptions.Priority in workflow.go)
  • Add TestConvertPriority / TestConvertPriorityNil — converter round-trip tests (mirrors TestConvertRetryPolicy)
  • Add TestCreateAndDescribeScheduleWithPriority — Create + Describe path
  • Add TestUpdateSchedulePreservesPriority — full Update lifecycle (Describe→Modify→Serialize)
  • Extract newDescribeResponseWithPriority test helper

Testing

go test -v -run 'TestConvertPriority|TestScheduleClientSuite' ./internal/...

All 15 suite tests pass, including 5 new ones.

Fixes temporalio#2350

The Priority field was already serialized when creating/updating a
schedule (convertToPBScheduleAction), but the deserialization path
in convertFromPBScheduleAction was missing. This meant that
ScheduleHandle.Describe() would always return a zero-value Priority,
breaking the Describe→Modify→Update round-trip.

Changes:
- Add convertFromPBPriority call in convertFromPBScheduleAction
- Add WARNING experimental tag to ScheduleWorkflowAction.Priority
  (consistent with StartChildWorkflowOptions.Priority in workflow.go)
- Add TestConvertPriority/TestConvertPriorityNil converter round-trips
- Add TestCreateAndDescribeScheduleWithPriority for Create+Describe
- Add TestUpdateSchedulePreservesPriority for Update lifecycle
- Extract newDescribeResponseWithPriority test helper to reduce
  protobuf mock duplication
@brucearctor brucearctor requested a review from a team as a code owner May 24, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement operator commands for Standalone Activities

1 participant