-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix(snapshot): consolidate to use hasWorkflowChanges check #3051
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile OverviewGreptile SummaryConsolidated workflow state normalization logic into a shared Key Changes
ImpactEnsures both snapshot deduplication and workflow change detection use identical normalization rules, eliminating potential inconsistencies where snapshots might be deduplicated but workflows show as changed (or vice versa). Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant SS as SnapshotService
participant NS as normalizeWorkflowState
participant HWC as hasWorkflowChanged
participant WS as WorkflowState
Note over SS,WS: Snapshot Creation Flow
SS->>SS: computeStateHash(state)
SS->>NS: normalizeWorkflowState(state)
NS->>NS: Filter runtime fields (nodes, distribution)
NS->>NS: Exclude system/trigger subBlocks
NS->>NS: Normalize edges, loops, parallels
NS-->>SS: NormalizedWorkflowState
SS->>SS: SHA-256 hash
SS-->>SS: stateHash
Note over SS,WS: Workflow Change Detection
HWC->>NS: normalizeWorkflowState(currentState)
NS-->>HWC: normalizedCurrent
HWC->>NS: normalizeWorkflowState(deployedState)
NS-->>HWC: normalizedDeployed
HWC->>HWC: Compare stringified states
HWC-->>HWC: hasChanged boolean
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, 1 comment
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Summary
Type of Change
Testing
Tested manually
Checklist