Closed sunwukonga closed 6 years ago
Thanks for this, and indeed all your other contributions.
I’ll try to get to reviewing this as soon as I may. Please forgive the lag—it’s the result of competing priorities, not lack of interest. On Fri, 22 Dec 2017 at 10:59, Paul Desmond Parker notifications@github.com wrote:
Add tests in ASTTests.hs:
- parses anonymous query documents
- changed previous test of same name to: parses shorthand syntax documents
- parses anonymous query with variables
Added tests in ValidationTests.hs:
- Treats anonymous queries as valid
- Treats anonymous queries with variables as valid
You can view, comment on, or merge this pull request online at:
https://github.com/jml/graphql-api/pull/139 Commit Summary
- Make Node instance of HasName. Implement getName
- Add Data.Text import and clean up unused imports.
- Fix error when single query is anonymous.
- Add tests for anonymous queries w|w/o variables
File Changes
- M src/GraphQL/Internal/Name.hs https://github.com/jml/graphql-api/pull/139/files#diff-0 (90)
- M src/GraphQL/Internal/Syntax/AST.hs https://github.com/jml/graphql-api/pull/139/files#diff-1 (78)
- M src/GraphQL/Internal/Syntax/Encoder.hs https://github.com/jml/graphql-api/pull/139/files#diff-2 (47)
- M src/GraphQL/Internal/Syntax/Parser.hs https://github.com/jml/graphql-api/pull/139/files#diff-3 (41)
- M tests/ASTTests.hs https://github.com/jml/graphql-api/pull/139/files#diff-4 (53)
- M tests/ValidationTests.hs https://github.com/jml/graphql-api/pull/139/files#diff-5 (40)
Patch Links:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jml/graphql-api/pull/139, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHq6lmOoAEdHl2Za0hmikHas7YgfDCbks5tC4uBgaJpZM4RK6eH .
I've commented on #137, which I think this depends on. Will take a look at this once #137 is merged.
I've just merged #137 (thanks again for your efforts and your patience!). Can you please hit whatever buttons are necessary to give this PR an up-to-date diff from master?
I already rebased this branch on the changes I made to #137. Is that what you mean @jml ? That's why the commit 61cc96b above failed it's tests (fixed by subsequent commit).
If that's insufficient, I'll pull master. Rebase this branch on master and then push again.
I just wanted to see a diff vs master. GH is currently showing changes that were made in #137
No worries though, since I created such a diff locally. Everything looks great. Thanks for the tests!
Add tests in ASTTests.hs:
Added tests in ValidationTests.hs: