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

BigDiffy should report nested unordered keys that are compared #329

Open
idreeskhan opened this issue Oct 5, 2020 · 0 comments
Open

BigDiffy should report nested unordered keys that are compared #329

idreeskhan opened this issue Oct 5, 2020 · 0 comments

Comments

@idreeskhan
Copy link
Contributor

If you have a record that contains multiple nested unordered fields, it can be difficult when looking at the output to triage and trace which specific nested keys caused differences. We should provide this in the output report.

For example if your record looks something like:

{
  "name": "Artist"
  "fields": [
    {"name": "gid", "type": "string"}
    {
      "name": "Albums"
      "type": "array", "items": [{
        "type": "record"
        "name": "Album"
        "fields": [
           {"name": "gid", "type": "string"}
           {"name": "tracks", "type": {"type": "array", "items": [{
            "type": "record"
            "name": Track"
            "fields": [
             {"name": "gid", "type": "string"}
             {"name": "name", "type": "string"] 
           ] 
          }]
        ]
      }]
    }
  ]
}

Right now if you were to diff Artist1 and Artist2 and a diff was found in the track names the only Key that would be output is the root key (artist gid) but its useful for debugging further evaluating a diff if all of the keys would be provided. In this case the album gid and track gid as well.

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

No branches or pull requests

1 participant