-
Notifications
You must be signed in to change notification settings - Fork 141
chore: remove method from key for consistency #3764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove method from key for consistency #3764
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: Remove method from key for consistencySummaryThis PR removes the actor_id() getter method from WorkflowIdKey and makes the actor_id field public instead. The change improves consistency with how similar key structs in the codebase expose their fields. Positives
Observations
RecommendationThe change is functionally correct and improves the code. However, consider one of these approaches for maximum consistency: Option A (Recommended): Keep the field private and access it directly in the same way as other key structs
Option B: Accept this as-is, recognizing that public field access is appropriate when external code needs to read the ID Given that the workflow code needs to read the actor_id for logic at lines 167 and 171, Option B (accepting this PR as-is) is actually the pragmatic choice. The public field enables clean, direct access for legitimate use cases. ApprovalThis PR is approved. The change is correct, improves code clarity, and maintains consistency with the codebase patterns for key structs that need external field access. Minor suggestion: Fix the typo in the PR title if possible. Review generated by Claude Code |
63497dc to
ed662df
Compare
39a5303 to
33639ab
Compare
Merge activity
|

No description provided.