Repository navigation
Sync the Go Standalone Activities quickstart code with Snipsync - #5803
Conversation
Replace the hand-typed Go in the quickstart's code={} props with
snippets from documentation-sdk-code-examples, matching the other SDK
quickstarts. Add steps for starting the Activity by type name and for
listing and counting Activities.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Snipsync coverageSDK code lines in
All sectionsAll languages: 53.5% (27,233 of 50,885 lines).
Compared with |
📖 Docs PR preview links
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Go Standalone Activities quickstart’s migration to Snipsync-managed samples.
No open issues 🎉
What changed in this PR
Migrates the Go Standalone Activities quickstart to Snipsync-managed, CI-tested samples, addressing the last quickstart with hand-written SDK code as part of #5105.
Changes:
- Replaces hand-written Go examples with synced snippets from
documentation-sdk-code-examples. - Updates clone/run instructions, the Go prerequisite, and the CLI timeout option to match the sample.
- Adds dedicated steps for execution by type name and listing/counting Activities, while preserving the existing execution anchor.
| File | Description |
|---|---|
docs/develop/go/activities/standalone-activities-quickstart.mdx |
Converts examples to Snipsync and aligns the walkthrough with the shared Go sample. |
Review effort: Balanced
What does this PR do?
Moves the Go Standalone Activities quickstart from hand-typed code to Snipsync. It was the last Quickstart (
SetupStep) page with hand-typed SDK code. Part of #5105.go-sandbox/activities/standalone/in documentation-sdk-code-examples, which compiles in CI. The three hand-typed Go files incode={}props are gone, along with the inline 4-lineExecuteActivityblock.go-sandbox, like the Python and TypeScript quickstarts. The page used to point at samples-go.go-standalone-activity-listand-countsnippets, run with-command listand-command count.--start-to-close-timeoutto match the sample. The Go prerequisite is now 1.26+, which the sample'sgo.modrequires.Notes to reviewers
main. Add Go Standalone Activities quickstart snippets documentation-sdk-code-examples#311 has merged. A Snipsync run against its merge commit (9aa18fb) leaves this page unchanged.#execute-activityanchor, whichencyclopedia/activities/activity-execution.mdxlinks to, is unchanged.temporal server start-dev: Worker,start,start-by-name,list,count, and the CLI command.vale --config .vale-ci.ini(clean),yarn check:snipsync-markers(clean) andyarn build(passes). I also looked at the built page: every step's code column shows the right snippets, each titled with its source link.yarn report:snipsync-coverage: develop/go 98.2% → 98.3%, with 70 more synced lines. The coverage report doesn't count code insidecode={}template literals, so the 84 hand-typed lines this removes never showed up as inline.