[API] previous_successful_build giving 2nd most recent build info

api

#1

Versions:

  • platform: 2.0
  • api: 1.1

Repro:
Make any API call that returns build info, including previous_successful_build.
e.g. GET: /project/:vcs-type/:username/:project/:build_num

Expected:
previous_successful_build includes information about the most recent, previous, successful build.

Actual:
previous_successful_build includes information about the 2nd most recent, previous, successful build.


This is most obvious when requesting info for a successful build whose previous build was also successful.
In this case, previous.build_num should equal previous_successful_build.build_num. But this isn’t the case.


#2

Any updates on this? It looks like previous_successful_build is returning wrong data.


#3

Any links you can provide (or DM me)? Just tested this on our docs repo and previous_successful_build is correct.


#4

Sorry for the delay, I’ve been away for a while.
I’m not seeing this behavior anymore, feel free to close this.


#5