AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

feat: initial github release version checker

Open Xazin opened this issue 1 year ago • 2 comments

Relates: #3639

This is a flawed version checker. It is based on GitHubs REST API, unauthenticated requests are rate limited to 60 requests per hour.

If for any reason the check should fail, eg. no network connection, hit rate limit, or similar, we silently fail and assume the application is up-to-date.

The check only happens once on application startup for now, in the future we can support manually checking for updates and storing the time of the last check.

For more information see: https://docs.github.com/en/rest/rate-limit/rate-limit?apiVersion=2022-11-28 https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release

Feature Preview

Screenshot 2024-03-01 at 23 15 33 Screenshot 2024-03-01 at 23 13 09

PR Checklist

  • [x] My code adheres to AppFlowy's Conventions
  • [x] I've listed at least one issue that this PR fixes in the description above.
  • [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • [x] All existing tests are passing.

Xazin avatar Mar 01 '24 22:03 Xazin

Note: the reason I keep pushing this, is because I need to do some design work and it's not a high-priority.

Xazin avatar Apr 12 '24 09:04 Xazin

I'll brush it up and finish it.

Xazin avatar May 17 '24 10:05 Xazin

Use this package to allow the user to get updates automatically. https://github.com/AppFlowy-IO/AppFlowy/issues/5432

LucasXu0 avatar May 30 '24 02:05 LucasXu0

Use this package to allow the user to get updates automatically. #5432

Perfect, I'll integrate it :+1:

Xazin avatar May 30 '24 11:05 Xazin

Use this package to allow the user to get updates automatically. #5432 Seems like Linux isn't supported for this one. I suppose we would need to implement the Linux aspect ourselves? Unless there could be a better alternative for it? 2024-07-03T14:35:04,387093296+02:00

rileyhawk1417 avatar Jul 03 '24 12:07 rileyhawk1417