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

Add endpoint to get the latest revision #880

Open
hatched opened this issue May 24, 2019 · 2 comments
Open

Add endpoint to get the latest revision #880

hatched opened this issue May 24, 2019 · 2 comments
Assignees

Comments

@hatched
Copy link

hatched commented May 24, 2019

In the UI for jaas.ai we display a link to the latest revision in the active channel (stable) if you're viewing an old revision. This is determined by us requesting all revisions and then picking the latest. This is a bit overkill and can cause timeouts on charmstore for larger entities.

@mhilton
Copy link
Contributor

mhilton commented Jun 3, 2019

@urosj please decide if/when we should do this.

@urosj
Copy link
Contributor

urosj commented Aug 12, 2019

@hatched This does not require a call to revision-info at all. Just make a /meta/id-revision to the charm without specifying the revision in the URL and you'll get the latest revision directly.

Also, the latest revision in the revision-info might not be the latest on the same channel or even the one that is set by the charmer to be used. Hence use /meta/id-revision endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants