Add missing documentation for exposed structs in internal package#2232
Add missing documentation for exposed structs in internal package#2232brucearctor wants to merge 6 commits intotemporalio:mainfrom
Conversation
yuandrew
left a comment
There was a problem hiding this comment.
Thanks for the contribution, left a few comments to address
| ActivityType ActivityType | ||
| // TaskQueue is the name of the task queue that the activity needs to be scheduled on. | ||
| TaskQueue string | ||
| Namespace string // Namespace of this activity. |
There was a problem hiding this comment.
Looks like some of these got missed due to having inline comments. Can we make sure the tool flags these to have doc comments, even if they have existing inline comments?
| WorkflowServiceClient workflowservice.WorkflowServiceClient | ||
| // Namespace is the namespace for the replay. | ||
| Namespace string | ||
| // OriginalExecution is the execution used to start the replay. |
There was a problem hiding this comment.
Misleading comment, this is the original workflow execution being replayed, not "used to start the replay."
Co-authored-by: Andrew Yuan <theandrewyuan@gmail.com>
| type GetWorkerBuildIdCompatibilityOptions struct { | ||
| // TaskQueue is the task queue to query. | ||
| TaskQueue string | ||
| // MaxSets is the maximum number of sets to return. |
There was a problem hiding this comment.
seems singular.
thanks for thorough review. I believe I addressed these! |
- Convert inline-only comments to proper doc comments (activity.go, workflow.go) - Remove duplicate inline comments where doc comments exist (activity.go, workflow.go) - Fix Chinese character in HeartbeatTimeout comment (session.go) - Fix plural grammar: Args/Options/Details 'is' to 'are' (interceptor.go) - Add operation context to WorkflowID/RunID comments (interceptor.go) - Capitalize cpu to CPU in comments (resource_tuner.go) - Expand PID: P=Proportional, I=Integral, D=Derivative (resource_tuner.go) - Fix misleading Input comment per reviewer suggestion (error.go) - Fix misleading OriginalExecution comment (plugin.go) - Fix ID/RunID comment convention in WorkflowExecution (workflow.go) - Simplify checkInternalDocs: skip anonymous fields, check field.Doc only (doclink.go)
| // CpuOutputThreshold is the CPU output threshold limit. | ||
| CpuOutputThreshold float64 | ||
|
|
||
| // MemPGain is the memory P gain limit threshold. |
There was a problem hiding this comment.
Wasn't sure whether to capitalize to P/I/D. Can lowercase if preferred.
| // Memo can be decoded using data converter (defaultDataConverter, or custom one if set). | ||
| Memo *commonpb.Memo | ||
| // Deprecated: use [Workflow.GetTypedSearchAttributes] instead. | ||
| SearchAttributes *commonpb.SearchAttributes // Value can be decoded using defaultDataConverter. |
There was a problem hiding this comment.
hmm, seem to have lost this comment
Fixes #2177