Bug 5225

Summary: [webhob-poky/master] in package_dependencies API, depends_on_id sometimes returns package version
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, jessica.zhang
Version: 1.5   
Target Milestone: 1.6 M1   
Hardware: All   
OS: Multiple   
Whiteboard: oecore, toasterui
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 5565    
Bug Blocks:    

Description Belen Barros Pena 2013-09-18 09:50:15 UTC
Most of the times this API call returns a package name:

{\"pk\": 16770, \"model\": \"orm.build_package_dependency\", \"fields\": {\"depends_on\": \"packagegroup-base-nfs-dev\", \"dep_type\": 2, \"package\": 8359}}

However, there are instances where it is returning the package version. A couple of examples below:

{\"pk\": 16781, \"model\": \"orm.build_package_dependency\", \"fields\": {\"depends_on\": \"0.1+git0+afd4e228c6-r15)\", \"dep_type\": 0, \"package\": 8409}}

{\"pk\": 186, \"model\": \"orm.build_package_dependency\", \"fields\": {\"depends_on\": \"1.0.9)\", \"dep_type\": 0, \"package\": 133}},
Comment 1 Alexandru Damian 2013-11-20 13:49:22 UTC
This is root-caused by an issue in the REST API implementation, and is not a data collection bug.

This should be solved by the bugs on which depends - 
changing the REST API and the package tables will fix this issue.
Comment 2 Alexandru Damian 2013-12-02 14:07:13 UTC
In review poky-contrib: toaster/master. 
Package dependency mechanism is now rewritten, this bug is no longer applicable.
Comment 3 Belen Barros Pena 2013-12-23 16:27:22 UTC
merged to master
Comment 4 Belen Barros Pena 2013-12-23 16:27:49 UTC
verified in master:3ada51f7aa26fc95d5f9ba4498c0ea54acc6e42e