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

JKAN should check if updates are available #89

Open
timwis opened this issue Apr 10, 2016 · 1 comment
Open

JKAN should check if updates are available #89

timwis opened this issue Apr 10, 2016 · 1 comment

Comments

@timwis
Copy link
Owner

timwis commented Apr 10, 2016

#51 added a Check for updates button to the /admin/ page that takes you to a pull request page on github.com:

https://github.com/<repo_owner>/<repo_name>/compare/gh-pages...timwis:gh-pages?expand=1
There's an API call for it as well:
https://api.github.com/repos/<repo_owner>/<repo_name>/compare/gh-pages...timwis:gh-pages?expand=1 (example)

We could check if ahead_by is greater than 0 and show the Upgrade button if it is, even an alert when an administrator logs in that updates are available. But how do we check if it can be a clean merge?

Ideally, we'd check to see if there's a new release available. But how does JKAN know what release it's currently running?

@timwis
Copy link
Owner Author

timwis commented Apr 16, 2016

Looks like we can check if a new release is available by checking the releases on the current repo and comparing them to the releases on the upstream repo using github's releases api

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

No branches or pull requests

1 participant