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

C2s/merge master #3790

Merged
merged 157 commits into from
Oct 7, 2022
Merged

C2s/merge master #3790

merged 157 commits into from
Oct 7, 2022

Conversation

NelsonVides
Copy link
Collaborator

No description provided.

chrzaszcz and others added 30 commits June 30, 2022 09:39
Motivation:
  This is the only mongoose_client_api_* module, which used
  mongoose_commands, and we are moving away from this solution
  towards a GraphQL-oriented one.
  Thus, the (soon to be deprecated) REST API needs to be simplified
  and use the *_api modules directly.

Main changes:
  - Added direct calls to mod_roster_api to mongoose_client_api_contacts
  - Added type specs for request-handling functions
  - Disabled client contacts API in mod_commands
mongoose_api_client was replaced by mongoose_client_api,
but it was still possible to configure both, confusing the user.

The only functionality lost by this change is the 'cahnge_password'
command, which was undocumented anyway.
We can readd it as 'mongoose_client_api_accounts' if needed.
Do not use mongoose_commands in the Client REST API
Added tests for domain admin in graphql_roster_SUITE. The tests are similar to those for a global admin, but they also check for permissions.
There is two new interfaces: one simply broadcasts a new value given a
key to all workers. The other, broadcasts new important data that should
be aggregated to all available keys. This is useful if we need to modify
whatever tasks are pending.
Implement broadcasts in async pools
Extend aggregator requests and fix stall-after-error bug
This module will delegate Admin REST API calls to the handler modules,
just like mongoose_client_api is doing for client API requests.
Also: fix types in mod_roster_api
Also: fix types in mongoose_stanza_api

Marked missing error handling as TO DO - it will be done in a separate task.
Also: fix types and whitespace in mod_inbox_api
Also: fix types in mod_muc_api
Also: fix types and typos (sic!) in MUC Light modules
- Update expected messages
- Actually test message errors for MUC (invites were tested instead)
- Remove tests for listing commands and adding mongoose_commands
  Command listing will be possible only with GraphQL, and
  mongoose_commands will be removed in a follow-up PR.

Also: remove test repeat
Also: reorganize tests for easier management
@mongoose-im

This comment was marked as outdated.

Refactored hook handler in mod_global_distrib_disco module
@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

chrzaszcz and others added 8 commits October 5, 2022 16:48
They are documented, and the user could define them
with different values if necessary.
There is an issue with the overriding logic in relx:
included vars override previously defined ones, but there is no simple
way of overriding the included vars other than including another file.
This way making the dev releases resulted in incorrect vars.
Big tests succeeded because they had their own overriding logic.

It seems that we could do without overriding entirely,
and this change shows that the resulting files are actually more
straightforward.
Don't override included overlay vars
@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 7, 2022

small_tests_24 / small_tests / 01bc480
Reports root / small


small_tests_25 / small_tests / 01bc480
Reports root / small


ldap_mnesia_24 / ldap_mnesia / 01bc480
Reports root/ big
OK: 1460 / Failed: 0 / User-skipped: 686 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 01bc480
Reports root/ big
OK: 1460 / Failed: 0 / User-skipped: 686 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 01bc480
Reports root/ big
OK: 3454 / Failed: 0 / User-skipped: 78 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 01bc480
Reports root/ big
OK: 1549 / Failed: 0 / User-skipped: 597 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 01bc480
Reports root/ big
OK: 3635 / Failed: 0 / User-skipped: 89 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 01bc480
Reports root/ big
OK: 1883 / Failed: 0 / User-skipped: 598 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 01bc480
Reports root/ big
OK: 1723 / Failed: 0 / User-skipped: 590 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 01bc480
Reports root/ big
OK: 3635 / Failed: 0 / User-skipped: 89 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 01bc480
Reports root/ big
OK: 3454 / Failed: 0 / User-skipped: 78 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 01bc480
Reports root/ big
OK: 3621 / Failed: 0 / User-skipped: 103 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 01bc480
Reports root/ big
OK: 3635 / Failed: 0 / User-skipped: 89 / Auto-skipped: 0

@NelsonVides NelsonVides marked this pull request as ready for review October 7, 2022 13:45
Copy link

@kamilwaz kamilwaz 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 to me 👍

@kamilwaz kamilwaz merged commit 636aa93 into feature/mongoose_c2s Oct 7, 2022
@kamilwaz kamilwaz deleted the c2s/merge_master branch October 7, 2022 14:11
@jacekwegr jacekwegr added this to the 6.1.0 milestone Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants