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

Handle remove_domain in mod_muc_light #3107

Merged
merged 5 commits into from
May 4, 2021

Conversation

arcusfelis
Copy link
Contributor

@arcusfelis arcusfelis commented Apr 29, 2021

This PR addresses "Domain removal"

Proposed changes include:

  • Handling of hook in RDBMS

TODO:

  • Test that config, blocking tables are actually erased.

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #3107 (bce86cf) into master (48039c1) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3107      +/-   ##
==========================================
+ Coverage   79.15%   79.20%   +0.04%     
==========================================
  Files         387      387              
  Lines       31832    31853      +21     
==========================================
+ Hits        25196    25228      +32     
+ Misses       6636     6625      -11     
Impacted Files Coverage Δ
src/muc_light/mod_muc_light.erl 84.54% <100.00%> (+0.26%) ⬆️
src/muc_light/mod_muc_light_db_mnesia.erl 89.58% <100.00%> (+0.10%) ⬆️
src/muc_light/mod_muc_light_db_rdbms.erl 92.21% <100.00%> (+0.51%) ⬆️
src/ejabberd.erl 45.00% <0.00%> (-10.00%) ⬇️
src/elasticsearch/mongoose_elasticsearch.erl 76.92% <0.00%> (-7.70%) ⬇️
src/mam/mod_mam_elasticsearch_arch.erl 86.60% <0.00%> (-1.79%) ⬇️
src/ejabberd_sm.erl 82.37% <0.00%> (-0.34%) ⬇️
src/mod_muc_log.erl 77.72% <0.00%> (ø)
src/ejabberd_c2s.erl 89.43% <0.00%> (+0.07%) ⬆️
src/wpool/mongoose_wpool.erl 85.00% <0.00%> (+1.00%) ⬆️
... and 3 more

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 48039c1...bce86cf. Read the comment docs.

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!

@@ -131,6 +132,10 @@ remove_user(UserUS, Version) ->
{atomic, Res} = mnesia:transaction(fun remove_user_transaction/2, [UserUS, Version]),
Res.

-spec remove_domain(mongooseim:host_type(), jid:lserver(), jid:lserver()) -> ok.
remove_domain(_HostType, _RoomS, _LServer) ->
ok.
Copy link
Member

Choose a reason for hiding this comment

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

Just a note: we might mark Mnesia support as TODO somewhere not to forget about it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will not forget :D

@chrzaszcz chrzaszcz merged commit d4ac0d3 into master May 4, 2021
@chrzaszcz chrzaszcz deleted the mu-delete-domain-fast-muclight branch May 4, 2021 11:43
@Premwoik Premwoik added this to the 5.0.0 milestone Oct 5, 2021
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.

3 participants