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

Incorrectly fetches versions when initial_build_id is lower than earliest build #38

Open
jchesterpivotal opened this issue Oct 25, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jchesterpivotal
Copy link
Owner

Problem

If I set initial_build_id to 100, but the earliest global build number visible for a team/pipeline/job combination is 101, the resource will "hang" after fetching version 100. This is because I use since as my search parameter, which returns an empty array for build IDs that are below its range.

Solution

Use limit=1 and until=1 to find the earliest version visible for a given team/pipeline/job. If it is above initial_build_id, use that number instead.

@jchesterpivotal jchesterpivotal added the bug Something isn't working label Oct 25, 2018
@jchesterpivotal jchesterpivotal self-assigned this Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant