toaster: models List only have the specified project's imported layers
PATCH 1/1 toaster: models List only have the specified project's imported layers
When returning the compatible layers make sure that we are only
listing: All the layers which are for this release && configuration layers (i.e. aren't part of the build history) and which aren't an imported layer OR are this project's imported layer(s).
[YOCTO #8944]
--- bitbake/lib/toaster/orm/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
bitbake/lib/toaster/orm/models.py +4 -2
@@ -259,8 +259,10 @@ class Project(models.Model): """ Returns Queryset of all Layer_Versions which are compatible with this project""" queryset = Layer_Version.objects.filter( - (Q(up_branch__name=self.release.branch_name) & Q(build=None)) - | Q(project=self)) + (Q(up_branch__name=self.release.branch_name) & + Q(build=None) & + Q(project=None)) | + Q(project=self)) return queryset
Signature · 1 line
2.1.4
Quoted 6 lines · On 16/02/2016 11:25, "[email protected] on behalf of Michael…
When returning the compatible layers make sure that we are only
listing: All the layers which are for this release && configuration layers (i.e. aren't part of the build history) and which aren't an imported layer OR are this project's imported layer(s).[YOCTO #8944]
I can no longer reproduce the problem in 8944 with this patch, and I can happily import a layer with the same name to a different project.
Thanks!
Belén
Quoted 33 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)bitbake/lib/toaster/orm/models.py +0
-0@@ -259,8 +259,10 @@ class Project(models.Model): """ Returns Queryset of all Layer_Versions which are compatiblewith
this project""" queryset = Layer_Version.objects.filter(bitbake/lib/toaster/orm/models.py +4
-2- (Q(up_branch__name=self.release.branch_name) & Q(build=None)) - | Q(project=self)) + (Q(up_branch__name=self.release.branch_name) & + Q(build=None) & + Q(project=None)) | + Q(project=self)) return querysetSignature · 8 lines
-- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
Don't think this has been upstreamed yet
Quoted 50 lines · Belen
Quoted 6 lines · On 16/02/2016 11:25, "[email protected] on behalf of Michael…
When returning the compatible layers make sure that we are only
listing: All the layers which are for this release && configuration layers (i.e. aren't part of the build history) and which aren't an imported layer OR are this project's imported layer(s).[YOCTO #8944]
I can no longer reproduce the problem in 8944 with this patch, and I can happily import a layer with the same name to a different project.
Thanks!
Belén
Quoted 32 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)bitbake/lib/toaster/orm/models.py +0
-0@@ -259,8 +259,10 @@ class Project(models.Model): """ Returns Queryset of all Layer_Versions which are compatiblewith
this project""" queryset = Layer_Version.objects.filter(bitbake/lib/toaster/orm/models.py +4
-2- (Q(up_branch__name=self.release.branch_name) & Q(build=None)) - | Q(project=self)) + (Q(up_branch__name=self.release.branch_name) & + Q(build=None) & + Q(project=None)) | + Q(project=self)) return querysetSignature · 8 lines
-- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
Tested (as per https://bugzilla.yoctoproject.org/show_bug.cgi?id=8944#c0),
sent to bitbake-devel, and added to toaster-next.
Elliot
Quoted 64 lines · Michael Wood
Don't think this has been upstreamed yet
Quoted 47 lines · Belen
On 16/02/2016 11:25, "[email protected] on behalf of Michael Wood" <[email protected] on behalf of [email protected]> wrote:
When returning the compatible layers make sure that we are only
Quoted 6 lines
listing: All the layers which are for this release && configuration layers (i.e. aren't part of the build history) and which aren't an imported layer OR are this project's imported layer(s).
[YOCTO #8944]
I can no longer reproduce the problem in 8944 with this patch, and I can happily import a layer with the same name to a different project.
Thanks!
Belén
Signed-off-by Michael Wood <[email protected]>Quoted 27 lines
---
bitbake/lib/toaster/orm/models.py| 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)bitbake/lib/toaster/orm/models.py +0
-0@@ -259,8 +259,10 @@ class Project(models.Model): """ Returns Queryset of all Layer_Versions which are compatiblewith
this project""" queryset = Layer_Version.objects.filter(- (
Q(up_branch__name=self.release.branch_name)&
Q(build=None))bitbake/lib/toaster/orm/models.py +4
-2- | Q(project=self)) + (Q(up_branch__name=self.release.branch_name) & + Q(build=None) & + Q(project=None)) | + Q(project=self)) return queryset --2.1.4
Quoted 7 lines
Quoted 6 lines
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre