Bug 5225 - [webhob-poky/master] in package_dependencies API, depends_on_id sometimes returns package version
Summary: [webhob-poky/master] in package_dependencies API, depends_on_id sometimes ret...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.5
Hardware: All Multiple
: Medium normal
Target Milestone: 1.6 M1
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard: oecore, toasterui
Depends on: 5565
Blocks:
  Show dependency tree
 
Reported: 2013-09-18 09:50 UTC by Belen Barros Pena
Modified: 2013-12-23 16:27 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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