-
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
GraphQL - extend permissions checking #3442
GraphQL - extend permissions checking #3442
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## feature/graphql #3442 +/- ##
===================================================
+ Coverage 80.80% 80.84% +0.04%
===================================================
Files 424 424
Lines 32510 32529 +19
===================================================
+ Hits 26269 26298 +29
+ Misses 6241 6231 -10
Continue to review full report at Codecov.
|
1fd84b3
to
32fb174
Compare
small_tests_24 / small_tests / 32fb174 small_tests_23 / small_tests / 32fb174 dynamic_domains_mysql_redis_24 / mysql_redis / 32fb174 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 32fb174 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 32fb174 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 32fb174 ldap_mnesia_23 / ldap_mnesia / 32fb174 ldap_mnesia_24 / ldap_mnesia / 32fb174 internal_mnesia_24 / internal_mnesia / 32fb174 mysql_redis_24 / mysql_redis / 32fb174 pgsql_mnesia_24 / pgsql_mnesia / 32fb174 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 32fb174 mssql_mnesia_24 / odbc_mssql_mnesia / 32fb174 pgsql_mnesia_23 / pgsql_mnesia / 32fb174 riak_mnesia_24 / riak_mnesia / 32fb174 |
32fb174
to
46d288d
Compare
This comment has been minimized.
This comment has been minimized.
46d288d
to
14e2a26
Compare
small_tests_24 / small_tests / 14e2a26 small_tests_23 / small_tests / 14e2a26 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 14e2a26 dynamic_domains_mysql_redis_24 / mysql_redis / 14e2a26 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 14e2a26 ldap_mnesia_23 / ldap_mnesia / 14e2a26 ldap_mnesia_24 / ldap_mnesia / 14e2a26 internal_mnesia_24 / internal_mnesia / 14e2a26 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 14e2a26 pgsql_mnesia_24 / pgsql_mnesia / 14e2a26 pgsql_mnesia_23 / pgsql_mnesia / 14e2a26 mssql_mnesia_24 / odbc_mssql_mnesia / 14e2a26 mysql_redis_24 / mysql_redis / 14e2a26 riak_mnesia_24 / riak_mnesia / 14e2a26 |
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!
small_tests_24 / small_tests / f491972 small_tests_23 / small_tests / f491972 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / f491972 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / f491972 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / f491972 ldap_mnesia_23 / ldap_mnesia / f491972 dynamic_domains_mysql_redis_24 / mysql_redis / f491972 internal_mnesia_24 / internal_mnesia / f491972 ldap_mnesia_24 / ldap_mnesia / f491972 sm_SUITE:parallel:messages_are_properly_flushed_during_resumption{error,
{{badmatch,
{error,
{connection_step_failed,
{#Fun<sm_SUITE.11.68776247>,
{client,
<<"alicE_messages_are_properly_flushed_during_resumption_1385@localhost">>,
escalus_tcp,<0.18507.1>,undefined,
[{username,
<<"alicE_messages_are_properly_flushed_during_resumption_1385">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_management,true},
{host,<<"localhost">>},
{stream_id,<<"fc482322bbc32bea">>}]},
[{compression,[<<"zlib">>]},
{starttls,true},
{stream_management,true},
{advanced_message_processing,true},
{client_state_indication,false},
{sasl_mechanisms,[<<"PLAIN">>]},
{caps,undefined}]},
{timeout,get_resumed}}}},
[{sm_SUITE,'-messages_are_properly_flushed_during_resumption/1-fun-1-',
3,
[{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
{line,1226}]},
{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,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} sm_SUITE:parallel:messages_are_properly_flushed_during_resumption_p1_fsm_old{error,
{{badmatch,
{error,
{connection_step_failed,
{#Fun<sm_SUITE.11.68776247>,
{client,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1387@localhost">>,
escalus_tcp,<0.18509.1>,undefined,
[{username,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1387">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_management,true},
{host,<<"localhost">>},
{stream_id,<<"418f5f56d1849940">>}]},
[{compression,[<<"zlib">>]},
{starttls,true},
{stream_management,true},
{advanced_message_processing,true},
{client_state_indication,false},
{sasl_mechanisms,[<<"PLAIN">>]},
{caps,undefined}]},
{timeout,get_resumed}}}},
[{sm_SUITE,
'-messages_are_properly_flushed_during_resumption_p1_fsm_old/1-fun-1-',
3,
[{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
{line,1270}]},
{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,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} sm_SUITE:parallel:messages_are_properly_flushed_during_resumption_p1_fsm_old{error,
{{badmatch,
{error,
{connection_step_failed,
{#Fun<sm_SUITE.11.68776247>,
{client,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1430@localhost">>,
escalus_tcp,<0.19088.1>,undefined,
[{username,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1430">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_management,true},
{host,<<"localhost">>},
{stream_id,<<"4f9576c602643e4d">>}]},
[{compression,[<<"zlib">>]},
{starttls,true},
{stream_management,true},
{advanced_message_processing,true},
{client_state_indication,false},
{sasl_mechanisms,[<<"PLAIN">>]},
{caps,undefined}]},
{timeout,get_resumed}}}},
[{sm_SUITE,
'-messages_are_properly_flushed_during_resumption_p1_fsm_old/1-fun-1-',
3,
[{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
{line,1270}]},
{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,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} sm_SUITE:parallel:messages_are_properly_flushed_during_resumption_p1_fsm_old{error,
{{badmatch,
{error,
{connection_step_failed,
{#Fun<sm_SUITE.11.68776247>,
{client,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1474@localhost">>,
escalus_tcp,<0.19605.1>,undefined,
[{username,
<<"alicE_messages_are_properly_flushed_during_resumption_p1_fsm_old_1474">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_management,true},
{host,<<"localhost">>},
{stream_id,<<"a1689a6ae260382e">>}]},
[{compression,[<<"zlib">>]},
{starttls,true},
{stream_management,true},
{advanced_message_processing,true},
{client_state_indication,false},
{sasl_mechanisms,[<<"PLAIN">>]},
{caps,undefined}]},
{timeout,get_resumed}}}},
[{sm_SUITE,
'-messages_are_properly_flushed_during_resumption_p1_fsm_old/1-fun-1-',
3,
[{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
{line,1270}]},
{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,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} pgsql_mnesia_23 / pgsql_mnesia / f491972 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / f491972 pgsql_mnesia_24 / pgsql_mnesia / f491972 mysql_redis_24 / mysql_redis / f491972 mssql_mnesia_24 / odbc_mssql_mnesia / f491972 muc_SUITE:register:user_changes_nick{error,
{{assertion_failed,assert,is_iq_result,
[{xmlel,<<"iq">>,
[{<<"type">>,<<"set">>},
{<<"id">>,<<"fe27104ad32912191c7e0579f33c9773">>},
{<<"to">>,<<"muc.localhost">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:register">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"type">>,<<"hidden">>},
{<<"var">>,<<"FORM_TYPE">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,<<"jabber:iq:register">>}]}]},
{xmlel,<<"field">>,
[{<<"type">>,<<"text-single">>},
{<<"var">>,<<"nick">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,
<<"thirdwitch1room-e4bc6fa49d">>}]}]}]}]}]}],
{xmlel,<<"iq">>,
[{<<"from">>,<<"muc.localhost">>},
{<<"to">>,<<"alicE_user_changes_nick_1801@localhost/res1">>},
{<<"type">>,<<"error">>},
{<<"xml:lang">>,<<"en">>},
{<<"id">>,<<"fe27104ad32912191c7e0579f33c9773">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:register">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"type">>,<<"hidden">>},
{<<"var">>,<<"FORM_TYPE">>}],
[{xmlel,<<"value">>,... riak_mnesia_24 / riak_mnesia / f491972 small_tests_24 / small_tests / f491972 small_tests_23 / small_tests / f491972 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / f491972 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / f491972 dynamic_domains_mysql_redis_24 / mysql_redis / f491972 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / f491972 ldap_mnesia_23 / ldap_mnesia / f491972 ldap_mnesia_24 / ldap_mnesia / f491972 internal_mnesia_24 / internal_mnesia / f491972 pgsql_mnesia_23 / pgsql_mnesia / f491972 pgsql_mnesia_24 / pgsql_mnesia / f491972 mysql_redis_24 / mysql_redis / f491972 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / f491972 mssql_mnesia_24 / odbc_mssql_mnesia / f491972 riak_mnesia_24 / riak_mnesia / f491972 sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_stop_c2s{error,{thrown,{timeout,msg}}} |
This PR addresses MIM-1554 and extends the
mongoose_graphql_permissions
module to support fields, interfaces and to check deeper.