Group diff output by process group#76
Open
sfc-gh-pvillard wants to merge 1 commit into
Open
Conversation
Resolves #75. Diffs are now organised under a bold header per process group path (e.g. **`Root > SubGroup`** — N changes) instead of a single flat list. Parameter-context-level diffs (value changes, adds, removes inside a context) are collected under a synthetic **`(Parameter Contexts)`** section printed last. - Register snapshot A process groups alongside B's so removed components whose group no longer exists in B still get a named path. - Add buildProcessGroupPath() and getGroupPathForDiff() helpers. - Refactor executeFlowDiffForOneFlow() into two phases: collect (bundles + visual-only handled as before; rest grouped by path) then print (group header + inner switch per group). - Add test fixtures with nested process groups and four new tests.
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.
Closes #75.
Summary
**\Root > SubGroup`** — N changes` header, making it immediately clear which group a change belongs to. Groups are sorted alphabetically; the root group comes first, nested groups in path order.(Parameter Contexts)section: parameter-context-level diffs (value changes, parameter adds/removes inside a context) are collected in a dedicated section printed last, separate from structural process group changes.has been added in Process Group Xsuffix was removed from the controller service added message.Example output
Test plan
mvn test)testNestedGroupsHaveSeparateSections— verifies the raw diff set contains expected diff types when using the new nested-PG fixturestestGroupedOutputContainsGroupHeaders— verifies group headers appear in the correct order and changes are placed under the right grouptestSingleGroupOutputHasGroupHeader— verifies single-group flows still produce a group header and no spurious(Parameter Contexts)section