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 unnecessary polling of statistics endpoint #4913

Open
Dinika opened this issue Apr 30, 2024 · 0 comments
Open

Remove unnecessary polling of statistics endpoint #4913

Dinika opened this issue Apr 30, 2024 · 0 comments
Labels

Comments

@Dinika
Copy link
Contributor

Dinika commented Apr 30, 2024

When I go to a project page like this one and open network panel I see requests made to /statistics endpoint every 3 seconds.

These requests are made even when the indexing has completed. When I go to "Statistics" tab, the user does not even see any information (perhaps because they don't have access to the project) but the polling keeps going.

Screenshot from 2024-04-30 11-14-43.png

Furthermore, in some cases, switching back from "Statistics" tab to "Browse" tab, triggers extra ~10 requests right away without 3 seonds wait (I saw this on this project, but not on this isocortext project).

The polling of statistics endpoint should stop (or reduce) in following cases:

  • When user switches from statistics tab to browse tab
  • When user does not have access to the project (and can therefore not see any statistics info on screen)
  • When indexing has completed
@Dinika Dinika added the fusion label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant