History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3867
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Steve Luo
Reporter: Marcin W
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

[Restful][changes] Not getting SCM Changes for some builds via /rest/changes

Created: 21/Jun/22 01:33 PM   Updated: 23/Jun/22 10:58 AM
Component/s: None
Affects Version/s: 12.0.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

 Description  « Hide
For some builds that have SCM Changes visible in web GUI I'm not getting any changes via rest API:

But this request works fine and returns the expected changes:

These builds have finished a few weeks ago and I don't see any obvious differences between them and the ones that work fine.

 All   Comments   Work Log   Change History      Sort Order:
Steve Luo [23/Jun/22 10:58 AM]
Yes, it's my fault, the URL /rest/changes/123?build=456 should also work. The difference between /rest/changes/123?build=456 and /rest/changes/commits/build/456 is that, the former reads changes from configuration stats database, while the latter reads changes from build database directly. So, maybe, sometimes the two databases are not synchronous correctly. But I don't know the root cause here. If you want to read changes for a specified build, the latter URL (/rest/changes/commits/build/456) may be a better choice.

I'm not very clear what kind of way you are looking for, besides "from_build" and "to_build", you can use "from_date" and "to_date" as filter.

For disabled tab, I also have no idea on this as we don't receive such report so far. Please let me know more details on this.

Marcin W [23/Jun/22 08:38 AM]
I understand, but why is this URL invalid?
I should be able to use this API with parameter 'build' or parameters 'from_build' and 'to_build':
/rest/changes/{configuration: .*}
And it works for most of the cases, but as I mentioned, I'm not getting only some of the changes via this API.
My main goal is getting changes in range of builds by specifying 'from_build' and 'to_build', but I cannot see other way to do this.
Also, I've heard that SCM Changes tab was disabled on our QB for some time, but I'm not sure if this is related.

Steve Luo [23/Jun/22 02:32 AM]
URL below is not valid:


and, yes, below URL is the correct one for fetching changes from a specific build:

By default, /rest/changes/123 only returns the last 50 commits. You need paging search or specify the size of the result. See more details by visiting below URL:


Marcin W [21/Jun/22 01:41 PM]
Also, I don't see these changes when I'm trying to get all of the changes from this configuration: