-
Notifications
You must be signed in to change notification settings - Fork 428
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
Document GraphQL #3704
Document GraphQL #3704
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3704 +/- ##
==========================================
+ Coverage 82.10% 82.12% +0.01%
==========================================
Files 513 513
Lines 33644 33644
==========================================
+ Hits 27624 27630 +6
+ Misses 6020 6014 -6
Continue to review full report at Codecov.
|
This comment was marked as outdated.
This comment was marked as outdated.
192e624
to
8c5be47
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
8c5be47
to
ebb3317
Compare
This comment was marked as outdated.
This comment was marked as outdated.
ebb3317
to
a3611f4
Compare
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I added some minor comments.
small_tests_24 / small_tests / 8a0967f small_tests_25 / small_tests / 8a0967f dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 8a0967f ldap_mnesia_24 / ldap_mnesia / 8a0967f dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 8a0967f dynamic_domains_mysql_redis_25 / mysql_redis / 8a0967f ldap_mnesia_25 / ldap_mnesia / 8a0967f dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 8a0967f pgsql_mnesia_24 / pgsql_mnesia / 8a0967f internal_mnesia_25 / internal_mnesia / 8a0967f elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 8a0967f pgsql_mnesia_25 / pgsql_mnesia / 8a0967f mysql_redis_25 / mysql_redis / 8a0967f pubsub_SUITE:tree+node_config:send_last_published_item_test{error,{{badmatch,false},
[{pubsub_tools,check_response,2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,491}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,481}]},
{pubsub_tools,receive_subscribe_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,334}]},
{pubsub_SUITE,'-send_last_published_item_test/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
{line,937}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} riak_mnesia_24 / riak_mnesia / 8a0967f mssql_mnesia_25 / odbc_mssql_mnesia / 8a0967f pep_SUITE:pep_tests:delayed_receive{error,{{badmatch,[]},
[{pep_SUITE,'-delayed_receive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,276}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} pep_SUITE:pep_tests:h_ok_after_notify_test{error,{{assertion_failed,assert_many,false,
[is_roster_set,is_presence,is_presence],
[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,114}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl_1,3,[{file,"lists.erl"},{line,1355}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:publish_and_notify_test{error,{{assertion_failed,assert_many,false,[is_roster_set],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,117}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl_1,3,[{file,"lists.erl"},{line,1355}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:authorize_access_model{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"bob_authorize_access_model_2163@localhost/res1">>,
escalus_tcp,<0.3259.2>,
[{event_manager,<0.3214.2>},
{server,<<"localhost">>},
{username,<<"bOb_authorize_access_model_2163">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.3214.2>},
{server,<<"localhost">>},
{username,<<"bOb_authorize_access_model_2163">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"bob_authorize_access_model_2163">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"bOb_authorize_access_model_2163">>},
{server,<<"localhost">>},
{password,<<"makrolika">>},
{stream_id,<<"197f7d073a0aa185">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,480}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,471}]},
{pep_SUITE,'-authorize_access_model/1-fun-0-',2,
... pep_SUITE:pep_tests:send_caps_after_login_test{error,{{assertion_failed,assert_many,false,
[is_roster_set,is_presence,is_presence],
[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,114}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl_1,3,[{file,"lists.erl"},{line,1355}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_unsubscribe_after_presence_unsubscription_2165@localhost/res1">>,
escalus_tcp,<0.3258.2>,
[{event_manager,<0.3228.2>},
{server,<<"localhost">>},
{username,
<<"bOb_unsubscribe_after_presence_unsubscription_2165">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.3228.2>},
{server,<<"localhost">>},
{username,
<<"bOb_unsubscribe_after_presence_unsubscription_2165">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_unsubscribe_after_presence_unsubscription_2165">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bOb_unsubscribe_after_presence_unsubscription_2165">>},
{server,<<"localhost">>},
{password,<<"makrolika">>},
{stream_id,<<"4e820fbaa505dedd">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,480}]},
{pubsub_tools,receive_and_check_... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good in general, for some reason license link is incorrect: https://github.com/esl/MongooseIM/blob/master/COPYIN
small_tests_24 / small_tests / 85ef0f0 small_tests_25 / small_tests / 85ef0f0 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 85ef0f0 ldap_mnesia_24 / ldap_mnesia / 85ef0f0 dynamic_domains_mysql_redis_25 / mysql_redis / 85ef0f0 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 85ef0f0 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 85ef0f0 ldap_mnesia_25 / ldap_mnesia / 85ef0f0 pgsql_mnesia_24 / pgsql_mnesia / 85ef0f0 internal_mnesia_25 / internal_mnesia / 85ef0f0 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 85ef0f0 riak_mnesia_24 / riak_mnesia / 85ef0f0 mysql_redis_25 / mysql_redis / 85ef0f0 pgsql_mnesia_25 / pgsql_mnesia / 85ef0f0 mssql_mnesia_25 / odbc_mssql_mnesia / 85ef0f0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
This PR adds the documentation for the GraphQL HTTP handler and documents each endpoint type.
The
Bool
type in schemas was replaced with theBoolean
type becauseBoolean
is the correct type in GraphQL.I also updated the CircleCI
yml
config to build the GraphQL static documentation with the SpectaQL tool.