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

Put mod_disco opts in a map with defaults #3550

Merged
merged 5 commits into from
Feb 18, 2022
Merged

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Feb 17, 2022

Also:

  • Order default_mod_config alphabetically.
  • Add mod_config/2 helper
  • Minor fix in the docs
  • Removed the special case of undefined module treated as mod_disco - it was counter-intuitive.

@codecov
Copy link

codecov bot commented Feb 17, 2022

Codecov Report

Merging #3550 (c6cb0f0) into master (a89e2ec) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3550      +/-   ##
==========================================
- Coverage   79.26%   79.20%   -0.07%     
==========================================
  Files         420      420              
  Lines       32266    32263       -3     
==========================================
- Hits        25577    25555      -22     
- Misses       6689     6708      +19     
Impacted Files Coverage Δ
src/mongoose_disco.erl 94.82% <ø> (ø)
src/mod_caps.erl 75.57% <100.00%> (ø)
src/mod_disco.erl 87.61% <100.00%> (+0.58%) ⬆️
src/event_pusher/mod_event_pusher.erl 65.00% <0.00%> (-22.50%) ⬇️
...bal_distrib/mod_global_distrib_hosts_refresher.erl 71.69% <0.00%> (-1.89%) ⬇️
src/rdbms/mongoose_rdbms.erl 62.17% <0.00%> (-1.13%) ⬇️
src/mam/mod_mam_rdbms_arch_async.erl 96.62% <0.00%> (-1.13%) ⬇️
src/pubsub/mod_pubsub.erl 73.19% <0.00%> (-0.42%) ⬇️
src/ejabberd_sm.erl 84.59% <0.00%> (-0.33%) ⬇️
src/global_distrib/mod_global_distrib_receiver.erl 81.11% <0.00%> (+2.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a89e2ec...c6cb0f0. Read the comment docs.

The special case of 'undefined' treated as 'mod_disco' was counter-intuitive.
@chrzaszcz chrzaszcz force-pushed the mod-disco-config-map branch 2 times, most recently from e3bd9da to 6a3945f Compare February 17, 2022 15:21
@mongoose-im
Copy link
Collaborator

mongoose-im commented Feb 17, 2022

small_tests_23 / small_tests / c6cb0f0
Reports root / small


small_tests_24 / small_tests / c6cb0f0
Reports root / small


dynamic_domains_mysql_redis_24 / mysql_redis / c6cb0f0
Reports root/ big
OK: 2704 / Failed: 0 / User-skipped: 256 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / c6cb0f0
Reports root/ big
OK: 2721 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / c6cb0f0
Reports root/ big
OK: 2721 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / c6cb0f0
Reports root/ big
OK: 2721 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / c6cb0f0
Reports root/ big
OK: 1551 / Failed: 0 / User-skipped: 349 / Auto-skipped: 0


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / c6cb0f0
Reports root/ big
OK: 1685 / Failed: 0 / User-skipped: 369 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / c6cb0f0
Reports root/ big
OK: 1510 / Failed: 0 / User-skipped: 390 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / c6cb0f0
Reports root/ big
OK: 3090 / Failed: 0 / User-skipped: 253 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / c6cb0f0
Reports root/ big
OK: 3095 / Failed: 0 / User-skipped: 248 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / c6cb0f0
Reports root/ big
OK: 3095 / Failed: 0 / User-skipped: 248 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / c6cb0f0
Reports root/ big
OK: 3095 / Failed: 0 / User-skipped: 248 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / c6cb0f0
Reports root/ big
OK: 1690 / Failed: 0 / User-skipped: 364 / Auto-skipped: 0

@esl esl deleted a comment from mongoose-im Feb 17, 2022
@esl esl deleted a comment from mongoose-im Feb 17, 2022
@esl esl deleted a comment from mongoose-im Feb 17, 2022
@esl esl deleted a comment from mongoose-im Feb 17, 2022
@esl esl deleted a comment from mongoose-im Feb 17, 2022
@chrzaszcz chrzaszcz marked this pull request as ready for review February 17, 2022 16:12
Copy link
Contributor

@gustawlippa gustawlippa 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 👍

@gustawlippa gustawlippa merged commit f75ee4c into master Feb 18, 2022
@gustawlippa gustawlippa deleted the mod-disco-config-map branch February 18, 2022 10:12
@Premwoik Premwoik added this to the 5.1.0 milestone May 25, 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.

4 participants