You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
radeksimko
changed the title
Consider using new releases API instead of Checkpoint
releases: Consider using new Releases API instead of Checkpoint
May 10, 2022
I think we could try to move releases package from the static JSON to the API as the first step, without having to make any decisions about Checkpoint yet.
However I'd like to explore the possibility of the API exposing version constraint resolution endpoint, so that we don't have to keep looping over all versions to pick just one.
@jukie Not yet, but we did discuss a potential addition of a new endpoint to the API, ideally prior to the implementation. Specifically one that would allow us to resolve product version based on constraint, i.e. something similar to https://releases.hashicorp.com/docs/api/v1/#operation/getReleaseV1 where one can pass constraint such as <= 1.0 and get the latest matching version.
This would allow us to more easily/efficiently re-implement releases.LatestVersion{}, in particular the Constraints field.
Currently the querying is pretty inefficient in that we have to pull all versions and range over every single one until we find the one that matches the constraints, so having such an endpoint would then be a great motivation to migrate to that API.
More research needed.
The text was updated successfully, but these errors were encountered: