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

Add PATH to field match log. #16

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Add PATH to field match log. #16

merged 1 commit into from
Feb 4, 2022

Conversation

justlevine
Copy link
Contributor

Adds PATH data to log output from doesFieldMatch() and doesFieldMatchGroup.

This way the printed debug logs are immediately useful so you don't need to figure out which field is failing (or passing when it shouldnt be.

Before

  {
      "WANTED_VALUE": false,
      "ACTUAL_DATA": false
  }
  {
      "WANTED_VALUE": true,
      "ACTUAL_DATA": true
  }
  {
      "WANTED_VALUE": null,
      "ACTUAL_DATA": null
  }
  {
      "WANTED_VALUE": null,
      "ACTUAL_DATA": null
  }

After

  {
      "PATH": "data.gfEntry.formFields.nodes.0.isRequired",
      "WANTED_VALUE": false,
      "ACTUAL_DATA": false
  }
  {
      "PATH": "data.gfEntry.formFields.nodes.0.shouldCopyValuesOption",
      "WANTED_VALUE": true,
      "ACTUAL_DATA": true
  }
  {
      "PATH": "data.gfEntry.formFields.nodes.0.copyValuesOptionFieldId",
      "WANTED_VALUE": null,
      "ACTUAL_DATA": null
  }
  {
      "PATH": "data.gfEntry.formFields.nodes.0.copyValuesOptionLabel",
      "WANTED_VALUE": null,
      "ACTUAL_DATA": null
  }

Adds `PATH` data to log output from `doesFieldMatch()` and `doesFieldMatchGroup`.
@jasonbahl jasonbahl merged commit 92eedc0 into wp-graphql:develop Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants