refresh ethernet interfaces immediately after write actions#3926
refresh ethernet interfaces immediately after write actions#3926nicoschmdt wants to merge 3 commits intobluerobotics:masterfrom
Conversation
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- There’s a lot of repeated
setUpdatingInterfaces(true)/refreshInterfaces/setUpdatingInterfaces(false)logic across actions; consider extracting a small helper or wrapper action to centralize this pattern and reduce duplication. - Now that
setInterfacesno longer togglesupdating_interfaces, it would be good to verify every path that triggers an interface refresh explicitly sets and clearsupdating_interfacesin the corresponding actions to avoid inconsistent spinner behavior.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- There’s a lot of repeated `setUpdatingInterfaces(true)` / `refreshInterfaces` / `setUpdatingInterfaces(false)` logic across actions; consider extracting a small helper or wrapper action to centralize this pattern and reduce duplication.
- Now that `setInterfaces` no longer toggles `updating_interfaces`, it would be good to verify every path that triggers an interface refresh explicitly sets and clears `updating_interfaces` in the corresponding actions to avoid inconsistent spinner behavior.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Automated PR Review0. Summary
Removes the 10 s cache on the cable_guy 1. Correctness & Implementation Bugs
4. Performance
6. Code Quality & Style
7. Tests
Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
6cc69e7 to
a9284dd
Compare
This behavior was already present in the code so this seems a little out of scope to me |
fix #3076
Summary by Sourcery
Refresh ethernet interfaces immediately after configuration changes and improve UI loading behavior for ethernet management.
Bug Fixes:
Enhancements:
Chores: