fix(cli): count workflow states/transitions from linked files#2413
Merged
fix(cli): count workflow states/transitions from linked files#2413
Conversation
e0ad704 to
a177754
Compare
Instead of looking for inline arrays (ems__Workflow_states) which don't exist in our architecture, scan all .md files for ems__WorkflowState and ems__WorkflowTransition that reference the workflow UID via ems__WorkflowState_workflow property.
a177754 to
497892e
Compare
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.
Summary
Fix
workflow listcommand to correctly count states and transitions by scanning linked.mdfiles instead of looking for non-existent inline arrays.Before: States/Transitions always showed 0 (looked for
ems__Workflow_statesarray in workflow file)After: Scans vault for
ems__WorkflowState/ems__WorkflowTransitionfiles that reference the workflow UIDTest plan
workflow listshows correct counts for Simple Kanban Workflow (3 states, 3 transitions)