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

fix slow version resolution #54

Merged
merged 2 commits into from
May 17, 2018
Merged

fix slow version resolution #54

merged 2 commits into from
May 17, 2018

Conversation

benwaffle
Copy link
Contributor

we were making 100 calls to apibuilder and 100 subprocesses of git describe

we were making 100 calls to apibuilder and 100 subprocesses of `git describe`
bin/apibuilder Outdated
end
end
found
versions = client.versions.get_by_application_key(org, application, limit: 100).map { |v| v.version }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the api says:

The latest version is the first result returned.

https://app.apibuilder.io/apicollective/apibuilder-api/latest

so I think we can just limit 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are actually hitting this endpoint: https://app.apibuilder.io/apicollective/apibuilder-api/latest#resource-version

and I don't think we can do limit=1 because what if there are new versions in apibuilder that you don't have locally?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

@mbryzek mbryzek requested a review from rlmartin May 17, 2018 20:05
Copy link
Collaborator

@mbryzek mbryzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's merge - ryan can review post merge

@mbryzek mbryzek merged commit 3a5323d into apicollective:master May 17, 2018
@benwaffle benwaffle deleted the fast branch May 17, 2018 21:03
Copy link

@ryan-martin-zocdoc ryan-martin-zocdoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. What's happening here? Just lots of change to the codebase with no changes to the API document?

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

Successfully merging this pull request may close these issues.

3 participants