Commit Graph

18 Commits

Author SHA1 Message Date
Viktor Petersson
7001860dc4 Updates GitHub reference 2022-12-13 13:06:49 +00:00
Emyll Almonte
917b4b81a3 Update github.py 2022-11-29 13:36:38 -05:00
Emyll Almonte
d1b8b98dde Update github.py 2022-11-29 13:13:25 -05:00
Viktor Petersson
a93756353d Adds error handling 2022-09-20 16:37:46 +01:00
Viktor Petersson
5a727fe3ce Removes Mixpanel dependency 2022-09-20 16:34:56 +01:00
Nash Kaminski
a2cf9956bd Improve error handling when interacting with the Github API.
This change improves the error handling when interacting with the github
API by enforcing a 5 minute backoff on API call failures as well as
caches the remote branch presence/absence for 24 hours.

This prevents potential crashes when Internet connectivity is
unavailable, as well as from having one's IP address rate limited by Github
if the remote branch on the pi references a branch name that does not exist
under https://github.com/Screenly/screenly-ose/tree/

Prior to this change, this scenario causes the remote branch status to be
checked during every UI request.

Signed-off-by: Nash Kaminski <nashkaminski@kaminski.io>
2021-10-01 19:53:26 -05:00
Viktor Petersson
8587b18143 Updates dependency 2021-01-08 16:41:49 +00:00
Viktor Petersson
9540024fd2 More analytics. 2020-12-27 16:33:32 +00:00
Viktor Petersson
2b51bd3cf0 Slight improvements to logic 2020-12-22 07:22:54 +00:00
Viktor Petersson
fdca754ccb Adds cleanup and fixes missing string 2020-12-21 18:29:12 +00:00
Viktor Petersson
191e87b5bb Adds missing import 2020-12-21 18:17:25 +00:00
Viktor Petersson
2d81dc404e Moves some of the file based logic to redis 2020-12-21 15:25:24 +00:00
antonmolodykh
fc21374898 Fix for check_update 2018-02-07 19:19:46 +06:00
Viktor Petersson
83bb4a4328 Rename functions to support test structure. 2018-01-02 19:22:54 +00:00
Viktor Petersson
26322f8460 Fixes tests. 2018-01-02 19:00:39 +00:00
Viktor Petersson
6493f7b1ea Reverts previous commit 2018-01-02 18:45:55 +00:00
Viktor Petersson
eee6e457ee Adds master as the default branch. 2018-01-02 18:45:16 +00:00
Viktor Petersson
053572324c Switches update logic to query Github directly. 2018-01-01 22:10:20 +00:00