Skip to content
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

Inbox/full pagination xep #3844

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Inbox/full pagination xep #3844

merged 1 commit into from
Nov 9, 2022

Conversation

NelsonVides
Copy link
Collaborator

We simply choose to omit exposing total counts and pagination by index, it would complicate code too much, it is not that useful, and also MAM already showed that that doesn't scale.

@NelsonVides NelsonVides changed the base branch from master to inbox_total_count_unread November 7, 2022 19:18
@NelsonVides NelsonVides changed the base branch from inbox_total_count_unread to inbox/unique_pagination_ids November 7, 2022 19:18
@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Base: 83.02% // Head: 83.07% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (7b0cacb) compared to base (7d84d79).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@                       Coverage Diff                       @@
##           inbox/unique_pagination_ids    #3844      +/-   ##
===============================================================
+ Coverage                        83.02%   83.07%   +0.05%     
===============================================================
  Files                              529      529              
  Lines                            33919    33920       +1     
===============================================================
+ Hits                             28161    28180      +19     
+ Misses                            5758     5740      -18     
Impacted Files Coverage Δ
src/inbox/mod_inbox.erl 87.05% <100.00%> (+0.05%) ⬆️
src/ejabberd.erl 45.00% <0.00%> (-10.00%) ⬇️
src/muc_light/mod_muc_light_db_mnesia.erl 91.57% <0.00%> (-1.06%) ⬇️
src/ejabberd_c2s.erl 88.95% <0.00%> (+0.22%) ⬆️
src/mod_roster.erl 79.18% <0.00%> (+0.47%) ⬆️
src/mod_roster_riak.erl 98.46% <0.00%> (+1.53%) ⬆️
src/mam/mod_mam_elasticsearch_arch.erl 88.39% <0.00%> (+1.78%) ⬆️
src/domain/service_domain_db.erl 85.41% <0.00%> (+2.08%) ⬆️
...bal_distrib/mod_global_distrib_hosts_refresher.erl 71.11% <0.00%> (+2.22%) ⬆️
src/mam/mod_mam_muc_rdbms_arch_async.erl 85.71% <0.00%> (+2.85%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Nov 8, 2022

small_tests_24 / small_tests / 7b0cacb
Reports root / small


small_tests_25 / small_tests / 7b0cacb
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 7b0cacb
Reports root/ big
OK: 3997 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 7b0cacb
Reports root/ big
OK: 2099 / Failed: 0 / User-skipped: 783 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 7b0cacb
Reports root/ big
OK: 3997 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 7b0cacb
Reports root/ big
OK: 2099 / Failed: 0 / User-skipped: 783 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 7b0cacb
Reports root/ big
OK: 4371 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 7b0cacb
Reports root/ big
OK: 2235 / Failed: 0 / User-skipped: 647 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 7b0cacb
Reports root/ big
OK: 3997 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 7b0cacb
Reports root/ big
OK: 2577 / Failed: 0 / User-skipped: 640 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 7b0cacb
Reports root/ big
OK: 3970 / Failed: 1 / User-skipped: 114 / Auto-skipped: 0

metrics_api_SUITE:global:session_counters
{error,{{assertEqual,[{module,metrics_api_SUITE},
            {line,404},
            {comment,[{counter,totalSessionCount}]},
            {expression,"ValueList"},
            {expected,2},
            {value,3}]},
    [{metrics_api_SUITE,fetch_global_gauge_value,2,
              [{file,"/home/circleci/project/big_tests/tests/metrics_api_SUITE.erl"},
               {line,404}]},
     {metrics_api_SUITE,'-session_counters/1-fun-3-',4,
              [{file,"/home/circleci/project/big_tests/tests/metrics_api_SUITE.erl"},
               {line,226}]},
     {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}]}]}}

Report log


riak_mnesia_24 / riak_mnesia / 7b0cacb
Reports root/ big
OK: 2423 / Failed: 0 / User-skipped: 626 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 7b0cacb
Reports root/ big
OK: 4371 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 7b0cacb
Reports root/ big
OK: 4360 / Failed: 1 / User-skipped: 111 / Auto-skipped: 0

mod_event_pusher_rabbit_SUITE:group_chat_message_publish:group_chat_message_received_event_properly_formatted
{error,
  {{assertMatch,
     [{module,mod_event_pusher_rabbit_SUITE},
      {line,422},
      {expression,
        "get_decoded_message_from_rabbit ( AliceGroupChatMsgRecvRK )"},
      {pattern,
        "# { << \"from_user_id\" >> := BobRoomJID , << \"to_user_id\" >> := AliceFullJID , << \"message\" >> := Message }"},
      {value,
        #{<<"from_user_id">> => <<"muc_publish@muc.localhost">>,
        <<"message">> => <<>>,
        <<"to_user_id">> =>
          <<"alice_unnamed_2172@localhost/res1">>}}]},
   [{mod_event_pusher_rabbit_SUITE,
      '-group_chat_message_received_event_properly_formatted/1-fun-1-',3,
      [{file,
         "/home/circleci/project/big_tests/tests/mod_event_pusher_rabbit_SUITE.erl"},
       {line,422}]},
    {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}]}]}}

Report log


mssql_mnesia_25 / odbc_mssql_mnesia / 7b0cacb
Reports root/ big
OK: 4371 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 7b0cacb
Reports root/ big
OK: 3970 / Failed: 1 / User-skipped: 114 / Auto-skipped: 0

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4394}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4130}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4126}]},
     {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}]}]}}

Report log


dynamic_domains_mysql_redis_25 / mysql_redis / 7b0cacb
Reports root/ big
OK: 3971 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0

@NelsonVides NelsonVides marked this pull request as ready for review November 8, 2022 13:06
Base automatically changed from inbox/unique_pagination_ids to master November 9, 2022 15:01
Copy link
Member

@chrzaszcz chrzaszcz left a comment

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 c5cd29b into master Nov 9, 2022
@chrzaszcz chrzaszcz deleted the inbox/full_pagination_xep branch November 9, 2022 15:02
@chrzaszcz chrzaszcz added this to the 6.0.0 milestone Dec 12, 2022
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.

None yet

3 participants