Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Fixing augmentation testing with related issues #369 & #370 #371

Merged
merged 5 commits into from
Jan 5, 2020
Merged

Fixing augmentation testing with related issues #369 & #370 #371

merged 5 commits into from
Jan 5, 2020

Conversation

michaeldgraham
Copy link
Collaborator

The compareSchema function used in test/augmentSchemaTest.test.js had an issue that prevented it from checking for the existence of some generated types. The function and the expected schema for the augmentation test has been updated. Upon the discovery of this issue, I also discovered and tried to resolve two issues in the augmentation process, #369 and #370.

Upstream merge
removed location _asc and _desc from _MovieOrdeing given the blocking of ordering support for Point type fields

Added generated types missing from previous augmentation test updates

Updated compareSchema to fix it incorrectly iterating through the definitions arrays from the two schemas being compared
The augmentation process was generating output types for relationship update mutations even when that relationship has no properties to update. Some logic was previously added to prevent the generation of such an update mutation field, but the same logic was not yet applied to the generation of associated output types.
There is no intended support for translating `_asc` or `_desc` ordering arguments for `Point` type fields. Initial support for the `Point` type Query API was meant to prevent the generation of such values, but did not.
@codecov-io
Copy link

codecov-io commented Jan 3, 2020

Codecov Report

Merging #371 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #371   +/-   ##
======================================
  Coverage    96.3%   96.3%           
======================================
  Files          24      24           
  Lines        2844    2844           
======================================
  Hits         2739    2739           
  Misses        105     105
Impacted Files Coverage Δ
src/augment/types/relationship/mutation.js 100% <ø> (ø) ⬆️
src/augment/input-values.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0297649...ff9a341. Read the comment docs.

@johnymontana johnymontana merged commit dff73a9 into neo4j-graphql:master Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants