Skip to content

Conversation

robmyersrobmyers
Copy link
Contributor

@robmyersrobmyers robmyersrobmyers commented Apr 24, 2025

This PR adds column information to errors on string output to alleviate one reason for OPA to maintain an internal fork of gqlparser.
I'd wait to see how the OPA folks respond before merging this change.

I have:

  • Added tests covering the bug / feature
  • Updated any relevant documentation - I don't think there is any relevant documentation on this.

Related test cases were updated to expect the column information.
@coveralls
Copy link

Coverage Status

coverage: 87.649% (+0.005%) from 87.644%
when pulling c67c9da on robmyersrobmyers:add_error_column
into 539d990 on vektah:master.

@StevenACoffman StevenACoffman changed the title Add column information to errors Add column information to errors string output Apr 24, 2025
@StevenACoffman
Copy link
Collaborator

Honestly, this seems like column output here was just an oversight on my part a long time ago. I recognize that some test output will change for some folks, (which is annoying, sure!) but adding this output isn't breaking anything in anyone's production system and it's honestly valuable to many folks to have it output.

@StevenACoffman StevenACoffman merged commit af38134 into vektah:master Apr 24, 2025
7 checks passed
@robmyersrobmyers robmyersrobmyers deleted the add_error_column branch May 6, 2025 08:55
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.

3 participants