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

fix(app): fix excessive /runs network requests #14783

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Apr 2, 2024

Closes EXEC-255

Overview

Fixes useNotifyService to utilize hostname instead of the host object, preventing a pass by reference issue causing excessive requests sent to /runs that often occurs on the RobotDetails page. This fix is sufficient, since this is all we need from host anyway. Let's also ensure that if a robot loses connection while a component has passed a callback to appShellListener, we ensure we remove the correct callback from the store.

Current Behavior

Screen.Recording.2024-04-02.at.4.49.28.PM.mov

Fixed Bevahior

Screen.Recording.2024-04-02.at.4.48.41.PM.mov

Test Plan

  • Verify the fix by going to the Network tab and clicking on a robot in the Devices page.

Changelog

  • Fixed excessive network requests to /runs.

Risk assessment

low

Fixes useNotifyService to check hostname instead of the host object, preventing a pass by reference
issue causing excessive requests sent to /runs.
@mjhuff mjhuff requested review from a team April 2, 2024 20:54
@mjhuff mjhuff requested a review from a team as a code owner April 2, 2024 20:54
@mjhuff mjhuff requested review from TamarZanzouri and removed request for a team and TamarZanzouri April 2, 2024 20:54
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Yup, looks good to me.

@mjhuff mjhuff merged commit a845ad0 into edge Apr 3, 2024
26 checks passed
@mjhuff mjhuff deleted the app_fix-runs-requests branch April 3, 2024 14:38
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
Closes EXEC-255

UseNotifyService utilizes hostname instead of the host object, preventing a pass by reference issue causing excessive requests sent to /runs that often occurs on the RobotDetails page. Let's also ensure that if a robot loses connection while a component has passed a callback to appShellListener, we ensure we remove the correct callback from the store.
Carlos-fernandez pushed a commit that referenced this pull request Jun 3, 2024
Closes EXEC-255

UseNotifyService utilizes hostname instead of the host object, preventing a pass by reference issue causing excessive requests sent to /runs that often occurs on the RobotDetails page. Let's also ensure that if a robot loses connection while a component has passed a callback to appShellListener, we ensure we remove the correct callback from the store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants