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

feat: cache responses from firmware update service and queue requests #5030

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Sep 9, 2022

To do so, we switched to got instead of axios (hoping that they eventually upgrade cacheable-request, so we can cache POST requests using built-in methods). By queueing and caching requests we should be able to avoid a lot of unnecessary requests. Caching is controlled by the firmware update service, but the cache kept in memory, so it is evicted by restarts.

@AlCalzone AlCalzone merged commit 932e5c3 into master Sep 9, 2022
@AlCalzone AlCalzone deleted the cache-firmware-updates branch September 9, 2022 12:11
AlCalzone added a commit that referenced this pull request Sep 9, 2022
### Features
* Cache responses from firmware update service and queue requests (#5030)
* Make user agent configurable and pass it to firmware update service (#5031)

### Bugfixes
* Fixed an issue where `ThermostatModeCC` would save its values twice (#5019)
* Ensure value ID received from outside code is valid and normalized before passing through (#5036)
* Merge notification metadata for variables with multiple states (#5037)

### Changes under the hood
* Added a test to ensure that `SupervisionCCReport` with status `Success` is always final, even if `more updates follow` is incorrectly set to `true` (#4963)
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.

None yet

1 participant