-
Notifications
You must be signed in to change notification settings - Fork 261
feat(news)_: hook News settings to the newsFeedManager and its polling #6540
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
Conversation
Jenkins BuildsClick to see older builds (48)
|
5f0ed7b
to
b439b63
Compare
e62ea86
to
d913c62
Compare
b439b63
to
9afcb94
Compare
d913c62
to
f96b3da
Compare
@igor-sirotin @osmaczko @seanstrom friendly reminder to review |
9afcb94
to
93c1e0c
Compare
f96b3da
to
1902207
Compare
93c1e0c
to
09fbe78
Compare
1902207
to
a89604d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get why we need both NewsFeedEnabled
and NewsRSSEnabled
, but I guess I'm missing some context about it.
handler FeedHandler | ||
fetchFrom time.Time | ||
pollingInterval time.Duration | ||
polling bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need the manager, if we're not polling? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it would be simpler to start the polling (when the setting is set back up) if the manager is already set up.
Same thing for stopping it.
It just seems like more complex to delete and initialize the whole manager than just stopping the polling.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6540 +/- ##
===========================================
+ Coverage 60.38% 60.43% +0.04%
===========================================
Files 832 832
Lines 103699 103771 +72
===========================================
+ Hits 62623 62712 +89
- Misses 33536 33537 +1
+ Partials 7540 7522 -18
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@igor-sirotin Quick context: Since the RSS comes from a "3rd party", we make sure users can turn it off for privacy reasons. Hence the
In the future, when we'll use Waku instead (using a bot), we'll get rid of the |
a89604d
to
055d25c
Compare
Needed for status-im/status-desktop#17811 Adds the NewsRSSEnabled setting that is going to be used in the Privacy settings of the clients. Adds API methods to toggle the NewsFeedEnabled and NewsRSSEnabled settings. By doing so, it will trigger the NewsFeedManager polling if both settings are set to true. Conversely, if one of them is disabled, it stops the polling.
055d25c
to
8e95282
Compare
Fixes #6533
Needed for status-im/status-desktop#17811
Base on top of #6534
Adds the NewsRSSEnabled setting that is going to be used in the Privacy settings of the clients.
Adds API methods to toggle the NewsFeedEnabled and NewsRSSEnabled settings.
By doing so, it will trigger the NewsFeedManager polling if both settings are set to true.
Conversely, if one of them is disabled, it stops the polling.