Skip to content

Add godoc to workflow.EdgeConnection.Equal#748

Open
PratikDhanave wants to merge 1 commit into
microsoft:mainfrom
PratikDhanaveFork:docs-edgeconnection-equal-godoc
Open

Add godoc to workflow.EdgeConnection.Equal#748
PratikDhanave wants to merge 1 commit into
microsoft:mainfrom
PratikDhanaveFork:docs-edgeconnection-equal-godoc

Conversation

@PratikDhanave

Copy link
Copy Markdown
Contributor

What

Adds a godoc comment to the exported EdgeConnection.Equal method in workflow/edge.go.

Why

EdgeConnection.Equal was the only undocumented member of the workflow edge equality API: the sibling Edge.Equal already carries a godoc comment, and the EdgeConnection type itself is documented. Documenting all exported members keeps the API surface consistent and matches the .NET/Python graph model, where the edge-connection equality semantics (equality over the ordered source and sink collections) are explicit. The comment states exactly what the implementation does — slices.Equal on both the ordered SourceIDs and SinkIDs.

Testing

Docs-only change. Verified with:

  • go build ./...
  • go vet ./workflow/...
  • go test ./workflow/...
  • go doc ./workflow EdgeConnection.Equal renders the new comment.

@PratikDhanave
PratikDhanave requested a review from a team as a code owner July 24, 2026 04:12
Copilot AI review requested due to automatic review settings July 24, 2026 04:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds missing GoDoc documentation to the exported workflow.EdgeConnection.Equal method to make the workflow edge equality API consistently documented and to clarify the ordered source/sink equality semantics.

Changes:

  • Added a GoDoc comment to EdgeConnection.Equal describing that equality is based on ordered SourceIDs and SinkIDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the parity-approved Go API consistency review found no parity issues label Jul 24, 2026
Document the exported EdgeConnection.Equal method so the equality API is
fully documented alongside the already-documented Edge.Equal and the
EdgeConnection type. The comment states the actual comparison: equality of
the ordered SourceIDs and SinkIDs slices.
@PratikDhanave
PratikDhanave force-pushed the docs-edgeconnection-equal-godoc branch from 1bf9077 to 29e93e5 Compare July 24, 2026 09:30
@github-actions

Copy link
Copy Markdown
Contributor

Parity Review: ✅ No Issues

This PR adds a godoc comment to the already-exported workflow.EdgeConnection.Equal method. It is a documentation-only change — no exported API surface is added, removed, or modified, and no observable runtime behavior changes.

Scope determination: Out of scope for cross-repo parity concerns. The public-api-change label does not apply. The .NET and Python implementations document their edge equality semantics in analogous ways; this comment aligns the Go doc with that intent.

Result: parity-approved

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Go API Consistency Review Agent · 21.8 AIC · ⌖ 3.92 AIC · ⊞ 5.9K ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parity-approved Go API consistency review found no parity issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants