Skip to content

Conversation

@vsuaste
Copy link

@vsuaste vsuaste commented Dec 9, 2020

  • Modify schema and models to handle direct access to nodes in type Connection queries.
  • Unit test fixed
  • Added integration test

@asishallab
Copy link
Member

If you merge, please make sure that the following issues are also taken care of:

  • Any other storage type, e.g. Cassandra, should work with this new helper, too
  • In case of empty foreign key arrays, make sure an empty helper is returned, too.
  • Write integration tests to ensure the above

.testenv.json Outdated
"name": "gql_science_db_graphql_server1",
"template": "https://github.com/Zendro-dev/graphql-server.git",
"branch": "master",
"branch": "issue-148-connection-helper",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to master

.testenv.json Outdated
"name": "gql_science_db_graphql_server2",
"template": "https://github.com/Zendro-dev/graphql-server.git",
"branch": "master",
"branch": "issue-148-connection-helper",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to master

don't push  package-lock.json file to master branch
Comment on lines 3140 to 3142
res = itHelpers.request_graph_ql_post_instance2('mutation{addSq_author(id:"remote_a2" name:"n2" addBooks:["remote_b1"]){id}}');
expect(res.statusCode).to.equal(200);
res = itHelpers.request_graph_ql_post_instance2('mutation{addSq_author(id:"local_a2" name:"n2" addBooks:[ "local_b1"]){id}}');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add bookConnection for the test

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same observation as above.

Comment on lines +3130 to +3132
res = itHelpers.request_graph_ql_post('mutation{addAuthor(id:"remote_a1" name:"n1" addBooks:["remote_b1","remote_b2"]){id }}');
expect(res.statusCode).to.equal(200);
res = itHelpers.request_graph_ql_post('mutation{addAuthor(id:"remote_a2" name:"n2" addBooks:["remote_b1"]){id}}');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add booksConnection for the test

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the test, this is only the setup for the test, which is below.

Copy link
Member

@wunderbarr wunderbarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the integration tests for empty foreign key arrays with "short cut access" are missing

@vsuaste vsuaste merged commit 4f7e241 into master Apr 13, 2021
@wunderbarr wunderbarr deleted the issue-148-connection-helper branch October 5, 2021 07:06
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