mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
bitbake: toastergui: views Standardise the fields project layer response
We need to keep consistent the field names of these objects so that we can use the object response from different calls. e.g. layer dependences or listing layers in the project. (Bitbake rev: 5c7004908f6916c0d279299c47b9dca3237148ec) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
951e40dd7d
commit
4d7944d6ad
@@ -2224,9 +2224,10 @@ if True:
|
||||
"id": x.layercommit.pk,
|
||||
"orderid": x.pk,
|
||||
"name" : x.layercommit.layer.name,
|
||||
"giturl": x.layercommit.layer.vcs_url,
|
||||
"vcs_url": x.layercommit.layer.vcs_url,
|
||||
"vcs_reference" : x.layercommit.get_vcs_reference(),
|
||||
"url": x.layercommit.layer.layer_index_url,
|
||||
"layerdetailurl": reverse("layerdetails", args=(prj.id, x.layercommit.pk,)),
|
||||
"layerdetailurl": x.layercommit.get_detailspage_url(prj.pk),
|
||||
# This branch name is actually the release
|
||||
"branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}},
|
||||
prj.projectlayer_set.all().order_by("id")),
|
||||
|
||||
Reference in New Issue
Block a user