Page MenuHomePhabricator

Change polling rate when document not visible
Open, MediumPublic

Description

Now, we poll for the count of notifications after some fixed amount of time and change the count of notification on the header icons.
When the tab is not visible i.e. document.hidden is true then should we

  1. poll at a slower rate
  2. not poll at all
  3. poll at the same rate

Details

Related Gerrit Patches:
mediawiki/extensions/Echo : masterChange polling rate when document not visible

Related Objects

StatusAssignedTask
ResolvedNone
OpenNone
InvalidWikinaut
OpenNone
OpenNone
Resolveddemon
DuplicateNone
DeclinedQuiddity
ResolvedNone
ResolvedGalorefitz
DeclinedNone
OpenNone
OpenNone
OpenShivanshbindal9
StalledNone
OpenShivanshbindal9
ResolvedShivanshbindal9
OpenShivanshbindal9

Event Timeline

Restricted Application added a project: Growth-Team. · View Herald TranscriptJul 8 2019, 4:57 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Shivanshbindal9 renamed this task from Change polling rate when document not visib to Change polling rate when document not visible.Jul 8 2019, 5:02 PM
Shivanshbindal9 triaged this task as Medium priority.
Shivanshbindal9 updated the task description. (Show Details)
Shivanshbindal9 updated the task description. (Show Details)
Shivanshbindal9 added subscribers: kostajh, Catrope, Mooeypoo.

My initial reaction is that we should slow down polling. I don't know if the slowed down rate should be based on the wgEchoPollingRate or should be a fixed number. Another consideration is that the user may have multiple tabs open, which I don't have a great answer to, but would make me think that we err on the side of polling less frequently.

JTannerWMF moved this task from Inbox to External on the Growth-Team board.Jul 9 2019, 7:18 PM
JTannerWMF added a subscriber: JTannerWMF.

Moving to external since this is a GSOC task

Change 522592 had a related patch set uploaded (by Shivanshbindal9; owner: shivanshbindal9):
[mediawiki/extensions/Echo@master] Change polling rate when document not visible

https://gerrit.wikimedia.org/r/522592

Change 522592 merged by jenkins-bot:
[mediawiki/extensions/Echo@master] Change polling rate when document not visible

https://gerrit.wikimedia.org/r/522592