Skip to content

Add support for static and dynamic domain types in GraphQL schema and queries - #4606

Merged
chrzaszcz merged 1 commit into
masterfrom
tomasz/mim-2536-static-domains-graphql
Jan 9, 2026
Merged

chrzaszcz merged 1 commit into
masterfrom
tomasz/mim-2536-static-domains-graphql

Conversation

@tomaszwojcikowski

Copy link
Copy Markdown
Contributor

This PR addresses the enhancement of domain type handling in the GraphQL API.

  • Introduced support for both static and dynamic domain types in the GraphQL schema and queries.

@mongoose-im

This comment was marked as outdated.

@codecov

codecov Bot commented Dec 29, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.06%. Comparing base (9eea324) to head (516acfd).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4606   +/-   ##
=======================================
  Coverage   86.06%   86.06%           
=======================================
  Files         563      563           
  Lines       33732    33747   +15     
=======================================
+ Hits        29031    29045   +14     
- Misses       4701     4702    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomaszwojcikowski
tomaszwojcikowski marked this pull request as draft December 29, 2025 13:14
@mongoose-im

This comment was marked as outdated.

@tomaszwojcikowski
tomaszwojcikowski marked this pull request as ready for review December 30, 2025 09:42
Comment thread src/graphql/admin/mongoose_graphql_domain_admin_query.erl Outdated
Comment thread src/graphql/admin/mongoose_graphql_domain_admin_query.erl
@mongoose-im

mongoose-im commented Jan 8, 2026 •

Copy link
Copy Markdown
Collaborator

elasticsearch_and_cassandra_28 / elasticsearch_and_cassandra_mnesia / 7b2eb14
Reports root/ big
OK: 683 / Failed: 0 / User-skipped: 72 / Auto-skipped: 0


small_tests_27 / small_tests / 7b2eb14
Reports root / small


small_tests_28 / small_tests / 7b2eb14
Reports root / small


small_tests_28_arm64 / small_tests / 7b2eb14
Reports root / small


ldap_mnesia_27 / ldap_mnesia / 7b2eb14
Reports root/ big
OK: 2358 / Failed: 0 / User-skipped: 1378 / Auto-skipped: 0


ldap_mnesia_28 / ldap_mnesia / 7b2eb14
Reports root/ big
OK: 2358 / Failed: 0 / User-skipped: 1378 / Auto-skipped: 0


dynamic_domains_mysql_redis_28 / mysql_redis / 7b2eb14
Reports root/ big
OK: 5197 / Failed: 1 / User-skipped: 157 / Auto-skipped: 0

cets_disco_SUITE:rdbms:rdbms_backend
{error,{{badrpc,timeout},
    [{distributed_helper,rpc,
               [#{node => mongooseim2@localhost},
                mongoose_cets_discovery_rdbms,get_nodes,
                [#{cluster_name =>
                   <<"big_test_rdbms_backend_9e5509cc207a9ec2-0.3">>,
                 node_name_to_insert => <<"test2">>,
                 last_query_info => #{},
                 node_ip_binary => <<>>,address_pairs => #{},
                 expire_time => 3600}]],
               [{file,"/home/circleci/project/big_tests/../test/common/distributed_helper.erl"},
                {line,143}]},
     {cets_disco_SUITE,disco_get_nodes,2,
               [{file,"/home/circleci/project/big_tests/tests/cets_disco_SUITE.erl"},
              {line,281}]},
     {cets_disco_SUITE,get_nodes,4,
               [{file,"/home/circleci/project/big_tests/tests/cets_disco_SUITE.erl"},
              {line,270}]},
     {cets_disco_SUITE,rdbms_backend,1,
               [{file,"/home/circleci/project/big_tests/tests/cets_disco_SUITE.erl"},
              {line,99}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1796}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1305}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1237}]}]}}

Report log


dynamic_domains_pgsql_mnesia_27 / pgsql_mnesia / 7b2eb14
Reports root/ big
OK: 5233 / Failed: 0 / User-skipped: 122 / Auto-skipped: 0


internal_mnesia_28 / internal_mnesia / 7b2eb14
Reports root/ big
OK: 2506 / Failed: 0 / User-skipped: 1230 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_28 / pgsql_mnesia / 7b2eb14
Reports root/ big
OK: 5233 / Failed: 0 / User-skipped: 122 / Auto-skipped: 0


pgsql_cets_28 / pgsql_cets / 7b2eb14
Reports root/ big
OK: 5323 / Failed: 0 / User-skipped: 202 / Auto-skipped: 0


cockroachdb_cets_28 / cockroachdb_cets / 7b2eb14
Reports root/ big
OK: 5330 / Failed: 5 / User-skipped: 202 / Auto-skipped: 0

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3695@localhost/res1">>,
          escalus_tcp,<0.115566.0>,
          [{event_manager,<0.115553.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3695">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.115553.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3695">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3695">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3695">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"482649ad0c93ed0f">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3699@localhost/res1">>,
          escalus_tcp,<0.115643.0>,
          [{event_manager,<0.115640.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3699">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.115640.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3699">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3699">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3699">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"9fae6032922e3205">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3702@localhost/res1">>,
          escalus_tcp,<0.115718.0>,
          [{event_manager,<0.115716.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3702">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.115716.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3702">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3702">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3702">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"f60cc5f24317620c">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3704@localhost/res1">>,
          escalus_tcp,<0.115797.0>,
          [{event_manager,<0.115786.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3704">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.115786.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3704">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3704">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3704">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"7a306470e0d069e9">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3708@localhost/res1">>,
          escalus_tcp,<0.115874.0>,
          [{event_manager,<0.115872.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3708">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.115872.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3708">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3708">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3708">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"d47d78924bda74d8">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log


mysql_redis_28 / mysql_redis / 7b2eb14
Reports root/ big
OK: 5619 / Failed: 0 / User-skipped: 149 / Auto-skipped: 0


pgsql_mnesia_27 / pgsql_mnesia / 7b2eb14
Reports root/ big
OK: 5626 / Failed: 0 / User-skipped: 142 / Auto-skipped: 0


pgsql_mnesia_28 / pgsql_mnesia / 7b2eb14
Reports root/ big
OK: 5626 / Failed: 0 / User-skipped: 142 / Auto-skipped: 0


dynamic_domains_mysql_redis_28 / mysql_redis / 7b2eb14
Reports root/ big
OK: 5198 / Failed: 0 / User-skipped: 157 / Auto-skipped: 0


cockroachdb_cets_28 / cockroachdb_cets / 7b2eb14
Reports root/ big
OK: 5323 / Failed: 0 / User-skipped: 202 / Auto-skipped: 0

@tomaszwojcikowski
tomaszwojcikowski force-pushed the tomasz/mim-2536-static-domains-graphql branch from 7b2eb14 to 516acfd Compare January 8, 2026 12:40
@mongoose-im

mongoose-im commented Jan 8, 2026 •

Copy link
Copy Markdown
Collaborator

elasticsearch_and_cassandra_28 / elasticsearch_and_cassandra_mnesia / 516acfd
Reports root/ big
OK: 683 / Failed: 0 / User-skipped: 72 / Auto-skipped: 0


small_tests_27 / small_tests / 516acfd
Reports root / small


small_tests_28 / small_tests / 516acfd
Reports root / small


small_tests_28_arm64 / small_tests / 516acfd
Reports root / small


ldap_mnesia_27 / ldap_mnesia / 516acfd
Reports root/ big
OK: 2358 / Failed: 0 / User-skipped: 1378 / Auto-skipped: 0


ldap_mnesia_28 / ldap_mnesia / 516acfd
Reports root/ big
OK: 2358 / Failed: 0 / User-skipped: 1378 / Auto-skipped: 0


dynamic_domains_mysql_redis_28 / mysql_redis / 516acfd
Reports root/ big
OK: 5198 / Failed: 0 / User-skipped: 157 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_27 / pgsql_mnesia / 516acfd
Reports root/ big
OK: 5233 / Failed: 0 / User-skipped: 122 / Auto-skipped: 0


internal_mnesia_28 / internal_mnesia / 516acfd
Reports root/ big
OK: 2506 / Failed: 0 / User-skipped: 1230 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_28 / pgsql_mnesia / 516acfd
Reports root/ big
OK: 5233 / Failed: 0 / User-skipped: 122 / Auto-skipped: 0


pgsql_cets_28 / pgsql_cets / 516acfd
Reports root/ big
OK: 5323 / Failed: 0 / User-skipped: 202 / Auto-skipped: 0


mysql_redis_28 / mysql_redis / 516acfd
Reports root/ big
OK: 5619 / Failed: 0 / User-skipped: 149 / Auto-skipped: 0


pgsql_mnesia_27 / pgsql_mnesia / 516acfd
Reports root/ big
OK: 5626 / Failed: 0 / User-skipped: 142 / Auto-skipped: 0


cockroachdb_cets_28 / cockroachdb_cets / 516acfd
Reports root/ big
OK: 5325 / Failed: 1 / User-skipped: 202 / Auto-skipped: 0

pubsub_SUITE:dag+last_item_cache:send_last_published_item_no_items_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_send_last_published_item_no_items_test_3659@localhost/res1">>,
          escalus_tcp,<0.116406.0>,
          [{event_manager,<0.116404.0>},
           {server,<<"localhost">>},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3659">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.116404.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_send_last_published_item_no_items_test_3659">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alice_send_last_published_item_no_items_test_3659">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,fun escalus_auth:auth_plain/2},
           {wspath,undefined},
           {username,
             <<"alicE_send_last_published_item_no_items_test_3659">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"764c65913b09781a">>}]},
        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,444}]},
     {pubsub_tools,receive_and_c...

Report log


pgsql_mnesia_28 / pgsql_mnesia / 516acfd
Reports root/ big
OK: 5626 / Failed: 0 / User-skipped: 142 / Auto-skipped: 0

@chrzaszcz chrzaszcz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@chrzaszcz
chrzaszcz merged commit 1def664 into master Jan 9, 2026
4 checks passed
@chrzaszcz
chrzaszcz deleted the tomasz/mim-2536-static-domains-graphql branch January 9, 2026 10:42
@chrzaszcz chrzaszcz added this to the 6.6.0 milestone Mar 16, 2026
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.

4 participants