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

Remove Room moderation feature flag #2678

Merged
merged 4 commits into from
Apr 9, 2024

Conversation

jmartinesp
Copy link
Contributor

@jmartinesp jmartinesp commented Apr 9, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Removes the feature flag for room moderation, to make this feature available to everyone.

Motivation and context

The feature is complete and validated.

Screenshots / GIFs

Tests

  • Open a room where you're and admin.
  • You should have access to room moderation.

Tested devices

  • Physical
  • Emulator
  • OS version(s): 14

Checklist

Copy link
Contributor

github-actions bot commented Apr 9, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/4UrdFz

Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 73.55%. Comparing base (46bb960) to head (44bd1ce).
Report is 2 commits behind head on develop.

Files Patch % Lines
.../features/roomdetails/impl/RoomDetailsPresenter.kt 0.00% 0 Missing and 1 partial ⚠️
...oderation/DefaultRoomMembersModerationPresenter.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2678      +/-   ##
===========================================
- Coverage    73.56%   73.55%   -0.02%     
===========================================
  Files         1458     1458              
  Lines        35222    35207      -15     
  Branches      6766     6765       -1     
===========================================
- Hits         25912    25897      -15     
+ Misses        5787     5786       -1     
- Partials      3523     3524       +1     

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

@jmartinesp jmartinesp marked this pull request as ready for review April 9, 2024 12:33
@jmartinesp jmartinesp requested a review from a team as a code owner April 9, 2024 12:33
@jmartinesp jmartinesp requested review from bmarty and removed request for a team April 9, 2024 12:33
@jmartinesp jmartinesp changed the title Enable Room moderation feature flag Remove Room moderation feature flag Apr 9, 2024
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, can you add a file for towncrier please?

val isDm = room.isDm && room.isEncrypted
return isRoomModerationEnabled && !isDm && (canBan() || canKick())
return !isDm && (canBan() || canKick())
Copy link
Member

Choose a reason for hiding this comment

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

Out of scope of this PR, but the condition room.isEncrypted above is a bit strange.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this point I'm not even sure what a DM should be. It started as a direct room with 2 users and encryption, but I'm not sure if we dropped the encryption check or we still use it...

@jmartinesp jmartinesp added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
@jmartinesp
Copy link
Contributor Author

Maestro died at the same point twice, it seems like the verification screen takes way too long to load...

@jmartinesp jmartinesp added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
@jmartinesp jmartinesp added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 9, 2024
Copy link

sonarcloud bot commented Apr 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jmartinesp jmartinesp merged commit d0f2677 into develop Apr 9, 2024
17 of 19 checks passed
@jmartinesp jmartinesp deleted the misc/jme/enable-room-moderation-feature-flag branch April 9, 2024 15:53
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

2 participants