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

Automatic poll rules sync (PSG-1135) #7335

Merged
merged 17 commits into from
Feb 3, 2023

Conversation

alfogrillo
Copy link
Contributor

Description

This PR adds logic to update poll push rules when don't match the ones of normal messages (see the table below).
The check is triggered the first time the matrix session is ready and when the app enters the foreground.

table

Result

poc

@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Base: 11.99% // Head: 12.09% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (3972da8) compared to base (223224c).
Patch coverage: 42.02% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7335      +/-   ##
===========================================
+ Coverage    11.99%   12.09%   +0.09%     
===========================================
  Files         1630     1637       +7     
  Lines       161492   161830     +338     
  Branches     66249    66429     +180     
===========================================
+ Hits         19377    19566     +189     
- Misses      141471   141618     +147     
- Partials       644      646       +2     
Flag Coverage Δ
uitests 55.37% <53.97%> (+<0.01%) ⬆️
unittests 5.97% <16.75%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Config/BuildSettings.swift 43.07% <ø> (ø)
Riot/Categories/Publisher+Riot.swift 36.36% <0.00%> (-30.31%) ⬇️
...ot/Modules/Room/RoomInfo/RoomInfoCoordinator.swift 0.00% <0.00%> (ø)
.../RoomInfo/RoomInfoCoordinatorBridgePresenter.swift 0.00% <0.00%> (ø)
...Info/RoomInfoList/RoomInfoListViewController.swift 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomViewController.m 0.00% <0.00%> (ø)
.../Spaces/SpaceRoomList/ExploreRoomCoordinator.swift 0.00% <0.00%> (ø)
...llHistory/Coordinator/PollHistoryCoordinator.swift 0.00% <0.00%> (ø)
...ail/Coordinator/PollHistoryDetailCoordinator.swift 0.00% <0.00%> (ø)
...I/Modules/Room/PollHistory/PollHistoryModels.swift 100.00% <ø> (ø)
... and 32 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.

@alfogrillo alfogrillo force-pushed the alfogrillo/automatic_poll_rules_sync branch from e68c071 to a2b1177 Compare February 2, 2023 18:12
@alfogrillo alfogrillo force-pushed the alfogrillo/automatic_poll_rules_sync branch from 1c4f000 to 6c25dca Compare February 2, 2023 21:48
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

a few comments inline, looks good to me otherwise 👍

Riot/Modules/Application/AppCoordinator.swift Outdated Show resolved Hide resolved
Riot/Managers/PushRulesUpdater/PushRulesUpdater.swift Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Feb 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

2 participants