Skip to content

Add testing helper to safe message handlers sample#423

Merged
yuandrew merged 3 commits intotemporalio:mainfrom
yuandrew:safe-message-maxHistoryLength
Jun 30, 2025
Merged

Add testing helper to safe message handlers sample#423
yuandrew merged 3 commits intotemporalio:mainfrom
yuandrew:safe-message-maxHistoryLength

Conversation

@yuandrew
Copy link
Copy Markdown
Contributor

What was changed

Added maxHistoryLength to safe message handlers sample

Why?

All of the other SDK samples have this and new docs point to it, we want this for consistency.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@yuandrew yuandrew requested a review from a team as a code owner June 24, 2025 22:15
state: ClusterManagerState;
seenJobs: Set<string>;
nodesMutex: Mutex;
private maxHistoryLength: number | null;
Copy link
Copy Markdown
Contributor

@dandavison dandavison Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maxHistoryLength: number? would be appropriate rather than | null?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, clearly someone who's not the most familiar with TS writing TS (I also blame cursor 😊)

@yuandrew yuandrew force-pushed the safe-message-maxHistoryLength branch from 5af7fa5 to 427630a Compare June 24, 2025 22:21
@yuandrew yuandrew merged commit cc1a3ee into temporalio:main Jun 30, 2025
86 of 95 checks passed
@yuandrew yuandrew deleted the safe-message-maxHistoryLength branch June 30, 2025 17:46
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.

3 participants