Matt Baer
d17e82d34c
Prevent update check from slowing app init
Previously, we'd wait for a response before finishing app
initialization, meaning an overall slower startup. This fixes that.
Ref T572
4 лет назад
Matt Baer
987c74c93a
Add logging around automated update checks
Logs requests when --debug enabled, and always logs errors from the
check.
Ref T572
4 лет назад
Matt Baer
37b7755c08
Tell admin that automated check failed when necessary
This keeps track when automated update check fails, and displays a
relevant message to the admin on /admin/updates
Ref T572
4 лет назад
Matt Baer
c2ece926e0
Show update notification in admin nav bar
When a WriteFreely update is available, indicate this on the "Updates"
navigation item
Ref T572
4 лет назад
Matt Baer
389dc8b9db
Show functional Updates page when checks are disabled
Ref T572
4 лет назад
Matt Baer
a06bb457de
Change copy and design on WF Updates page
- Tweak the copy
- Include link to download latest release
- Change the version status design a bit
- Restyle some text
4 лет назад
Matt Baer
0d79057bae
Rename ReleaseURL() to ReleaseNotesURL()
4 лет назад
Rob Loranger
908f009248
clean up and add tests for updates cache
- removes the parameter for newVersionCheck as was not being used
- changes newUpdatesCache to take expiry parameter for possible future
configuration option
- adds basic test quite to verify all cache fucntions work as expected
4 лет назад
Rob Loranger
2a7a8298e1
strings.ReplaceAll is not in go 1.11
4 лет назад
Rob Loranger
eae4097677
add update checks
includes cache of latest version and page to view if updates are
available with a link to the latest update's release notes and a link to
check for the latest update now, refreshing the cache manually.
4 лет назад