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

mgr/dashboard: stop polling when page is not visible #46370

Merged
merged 1 commit into from Jun 14, 2022

Conversation

Sarthak0702
Copy link
Member

@Sarthak0702 Sarthak0702 commented May 23, 2022

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

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@Sarthak0702 Sarthak0702 requested a review from a team as a code owner May 23, 2022 16:02
@Sarthak0702 Sarthak0702 requested review from avanthakkar and epuertat and removed request for a team May 23, 2022 16:02
@Sarthak0702 Sarthak0702 added this to In progress in Dashboard via automation May 23, 2022
@Sarthak0702
Copy link
Member Author

jenkins test dashboard cephadm

@Sarthak0702
Copy link
Member Author

jenkins test dashboard

@djgalloway djgalloway changed the base branch from master to main May 25, 2022 19:57
@Sarthak0702
Copy link
Member Author

jenkins retest this please

@Sarthak0702
Copy link
Member Author

jenkins test dashboard cephadm

Copy link
Member

@epuertat epuertat left a 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 🤔

Dashboard automation moved this from In progress to Reviewer approved May 30, 2022
@epuertat epuertat removed the request for review from aaSharma14 June 3, 2022 09:20
@Sarthak0702 Sarthak0702 force-pushed the stop-poll-page-inactive branch 2 times, most recently from e065547 to 5dd69fa Compare June 5, 2022 08:07
@Sarthak0702 Sarthak0702 force-pushed the stop-poll-page-inactive branch 2 times, most recently from 5696949 to f967727 Compare June 8, 2022 07:33
Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

LGTM!

@Sarthak0702 Sarthak0702 moved this from Reviewer approved to Ready-to-merge in Dashboard Jun 8, 2022
@Sarthak0702
Copy link
Member Author

jenkins test make check

1 similar comment
@avanthakkar
Copy link
Contributor

jenkins test make check

Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
@Sarthak0702
Copy link
Member Author

jenkins test make check

@Sarthak0702
Copy link
Member Author

jenkins test dashboard

@Sarthak0702
Copy link
Member Author

jenkins test dashboard cephadm

@Sarthak0702
Copy link
Member Author

The ceph dashboard cephadm e2e tests failure is unrelated to this PR and is known issue. @epuertat this can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
3 participants