-
Notifications
You must be signed in to change notification settings - Fork 4
Add reload updates for main components #90
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
Conversation
Add /reload_updates endpoint which refreshes updates of the main components only (OS, Supervisor, Core and Plug-ins).
sairon
left a comment
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.
A simple test case (like test_refresh_updates) should be added here as well.
aiohasupervisor/root.py
Outdated
| """Refresh updates (discouraged).""" | ||
| """Refresh updates. | ||
| Discouraged. Use the `reload_updates()` and `store.reload()` instead. |
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.
I'd say something about why it is discouraged.
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.
Updated. Not sure if that is a good reason really, but it is why I plan to not use the endpoint from Core side anymore. With that, this endpoint likely has no users at all, so I'd rather prefer to remove it at one point.
Proposed Changes
Add /reload_updates endpoint which refreshes updates of the main components only (OS, Supervisor, Core and Plug-ins).