Skip to content

[backport/1.4] frontend: Gate network and platform polling by FetchType - #4066

Open
joaoantoniocardoso wants to merge 1 commit into
bluerobotics:1.4-devfrom
joaoantoniocardoso:backports/1.4/gate-network-platform-polling
Open

[backport/1.4] frontend: Gate network and platform polling by FetchType#4066
joaoantoniocardoso wants to merge 1 commit into
bluerobotics:1.4-devfrom
joaoantoniocardoso:backports/1.4/gate-network-platform-polling

Conversation

@joaoantoniocardoso

Copy link
Copy Markdown
Member

This is a backport of #4049 into 1.4.

Refcount SystemNetworkType and PlatformType like other system-info
polls, subscribe from Networking widgets / Network tab / HealthTray, and
keep a stable iface-name list so App tray widgets do not rebuild on
every speed update.
@github-actions

Copy link
Copy Markdown

Automated PR Review

0. Summary

  • Verdict: LGTM :shipit:

Straight backport of #4049 into 1.4-dev. Refcounts SystemNetworkType and PlatformType polling: drops the always-on fetchSystemNetworkTask (2 s) and gates fetchPlatformTask (5 s) behind subscribers, adds a stable network_interface_names list so the App tray widgets don't rebuild every 2 s, and adds subscribe/unsubscribe pairs to DevicePathHelper, HealthTrayMenu, VehicleInfo, Network.vue, and the Networking widget. File list, additions (96), and deletions (48) match the merged upstream PR exactly. Spot-checked consumers: every reader of system_information.platform (DevicePathHelper, HealthTrayMenu, VehicleInfo) and of system_information.system.network (Network.vue, widgets/Networking.vue) subscribes to the corresponding FetchType in mounted and unsubscribes in beforeDestroy.

No further comments, nice job 👍

Generated by PR Review Bot. This is advisory, a human reviewer must still approve.

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.

1 participant