WoTTsecurity / api

API and Dashboard
https://dash.wott.io
MIT License
0 stars 2 forks source link

[BUG] AutoUpdatesAction should rely on Device.auto_upgrades_enabled #789

Open rptrchv opened 4 years ago

a-martynovich commented 4 years ago

The problem is that Device.auto_upgrades does not contain enough info, that's why we have Device.auto_upgrades_enabled() which makes the final decision. @rptrchv I believe it would be easier to either fix this in agent or to make the final decision during generate_recommended_actions() or even during ping, store it in Device.auto_upgrades and drop Device.auto_upgrades_enabled().