Fix 6 tutorials with code snippets mismatched against actual source code#48
Merged
Fix 6 tutorials with code snippets mismatched against actual source code#48
Conversation
Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/d83b5f9e-d983-4b9c-874c-6ac2882c4f4e Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
devstress
April 5, 2026 12:49
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fresh new-developer audit of all 50 tutorials, cross-referencing every code snippet against the actual source. 44 passed; 6 had stale or incorrect API references that would confuse a mid-level dev following along.
Fixes
Tutorial 08 (Activities Pipeline) —
PipelineOptionsshowed non-existent properties (InputTopic,WorkerConcurrency,ProcessingTimeout); updated to actual (InboundSubject,NatsUrl,WorkflowTimeout, etc.). ChangedSubscribeAsync<object>→SubscribeAsync<JsonElement>.Tutorial 26 (Message Replay) —
IMessageReplayStoremethods showedCancellationToken ct = defaultbut actual interface requires the parameter (no default).Tutorial 29 (Throttle) — "What You'll Learn" listed wrong partition strategies (
Source, Recipient, CorrelationId) → actual API:TenantId, Queue, Endpoint.Tutorial 31 (Event Sourcing) — CancellationToken param named
ctin 5 snippets but source usescancellationTokenthroughoutIEventStore,TemporalQuery,ISnapshotStore.Tutorial 43 (Kubernetes) — Helm template listing showed
deployment.yaml,service.yaml,ingress.yamlwhich don't exist. Updated to actual service-specific manifests (admin-api.yaml,openclaw-web.yaml,workflow-temporal.yaml, etc.).Tutorial 49 (Testing) — Referenced non-existent
ITestWorkflowEnvironment/TestWorkflowEnvironment. Fixed toWorkflowEnvironment?/WorkflowEnvironmentwith the try-catch pattern used in the actual test suite.Example (Tutorial 08 before/after)