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
mgr/dashboard: stop polling when page is not visible #46370
Conversation
jenkins test dashboard cephadm |
jenkins test dashboard |
jenkins retest this please |
jenkins test dashboard cephadm |
src/pybind/mgr/dashboard/frontend/src/app/shared/services/page-visibility-helper.ts
Outdated
Show resolved
Hide resolved
45af282
to
fed4aaa
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.
LGTM! The cd-datatable component has its own polling. Have you checked if it's too complicate to include this there too?
I checked and it works with tab swtiching and minimizing the browser, but not when another app overlaps the browser 🤔
fed4aaa
to
07fcc30
Compare
e065547
to
5dd69fa
Compare
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts
Outdated
Show resolved
Hide resolved
5696949
to
f967727
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.
LGTM!
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts
Show resolved
Hide resolved
f967727
to
973feb1
Compare
jenkins test make check |
1 similar comment
jenkins test make check |
Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
973feb1
to
fa8a62f
Compare
jenkins test make check |
jenkins test dashboard |
jenkins test dashboard cephadm |
The |
Uses custom RxJS operator
whenPageVisible
(from here) to achieve this.Fixes: https://tracker.ceph.com/issues/50963
Signed-off-by: Sarthak0702 sarthak.dev.0702@gmail.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows