Skip to content
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

Sorted diff tool with fully qualified paths #5

Open
m30-css opened this issue Mar 17, 2021 · 0 comments
Open

Sorted diff tool with fully qualified paths #5

m30-css opened this issue Mar 17, 2021 · 0 comments
Labels
architecture Design decisions pertaining to m30pm

Comments

@m30-css
Copy link

m30-css commented Mar 17, 2021

For larger yaml files, it can be helpful to look at differences between versions in sorted order. For example, if a block was moved, a standard diff may make it hard to understand the differences.

Additionally, with diffs of larger yaml files, the full path to the key/value on a line can be cumbersome to extract. For example, if each parent has 10+ children on average, and the difference is in a child 6 or 7 levels deep. It can be much worse when there are levels that have 100's' of children.

To alleviate some of these issues, create a tool that can sort and/or explode the keys.

For example,

a:
  d:
    c: 1
    x: 5
  b:
    y: 'r'
    c: 2

Would become

a.b.x: 2
a.b.y: 'r'
a.d.c: 1
a.d.x: 5

When both exploded and sorted.

@capsulecorplab capsulecorplab added the architecture Design decisions pertaining to m30pm label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Design decisions pertaining to m30pm
Projects
None yet
Development

No branches or pull requests

2 participants