toaster: orm Machines filter don't pass self in as parameter
PATCH 1/1 toaster: orm Machines filter don't pass self in as parameter
Fix typo don't pass self in as a parameter, this evaluated to true giving the wrong results meaning the machines typeahead did not return valid results.
--- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/orm/models.py +1 -1
@@ -229,7 +229,7 @@ class Project(models.Model): """ Returns QuerySet of all Machines which are provided by the Layers currently added to the Project """ queryset = Machine.objects.filter( - layer_version__in=self.get_project_layer_versions(self)) + layer_version__in=self.get_project_layer_versions()) return queryset
Signature · 1 line
2.1.4
Quoted 3 lines · On 29/09/2015 17:18, "[email protected] on behalf of Michael…
Fix typo don't pass self in as a parameter, this evaluated to true giving the wrong results meaning the machines typeahead did not return valid results.
I am not sure if it is connected to this problem, but I can only set machines if I select one of the type ahead suggestions. This is not the correct behaviour. Machines are like build targets: we can never be sure that Toaster knows of all valid options. Therefore, we need to allow free text entry.
Right now, if type some random string in the machine field then click 'save', Toaster reverts to the previous value and refuses to take the new one. This also means that, for a local project, where we don't have any information about machines, it is impossible to change the machine value.
Cheers,
Belén
Quoted 28 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/toaster/orm/models.py +1
-1@@ -229,7 +229,7 @@ class Project(models.Model): """ Returns QuerySet of all Machines which are provided by the Layers currently added to the Project """ queryset = Machine.objects.filter( - layer_version__in=self.get_project_layer_versions(self)) + layer_version__in=self.get_project_layer_versions()) return querysetSignature · 7 lines
2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
Quoted 5 lines · Belen
On 29/09/2015 17:18, "[email protected] on behalf of Michael Wood" <[email protected] on behalf of [email protected]> wrote:
Quoted 8 lines
Quoted 3 lines
Fix typo don't pass self in as a parameter, this evaluated to true giving the wrong results meaning the machines typeahead did not return valid results.
I am not sure if it is connected to this problem, but I can only set machines if I select one of the type ahead suggestions. This is not the correct behaviour. Machines are like build targets: we can never be sure that Toaster knows of all valid options. Therefore, we need to allow free text entry.
This is controlled by the project page so not related to this. Feel free to open a bug.
Quoted 36 lines
Right now, if type some random string in the machine field then click 'save', Toaster reverts to the previous value and refuses to take the new one. This also means that, for a local project, where we don't have any information about machines, it is impossible to change the machine value.
Cheers,
Belén
Quoted 27 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/toaster/orm/models.py +1
-1@@ -229,7 +229,7 @@ class Project(models.Model): """ Returns QuerySet of all Machines which are provided by the Layers currently added to the Project """ queryset = Machine.objects.filter( - layer_version__in=self.get_project_layer_versions(self)) + layer_version__in=self.get_project_layer_versions()) return querysetSignature · 7 lines
2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
Quoted 16 lines · Michael Wood
Quoted 8 lines · Belen
Quoted 3 lines · On 29/09/2015 17:18, "[email protected] on behalf of Michael…
Fix typo don't pass self in as a parameter, this evaluated to true giving the wrong results meaning the machines typeahead did not return valid results.
Quoted 6 lines
I am not sure if it is connected to this problem, but I can only set machines if I select one of the type ahead suggestions. This is not the correct behaviour. Machines are like build targets: we can never be sure that Toaster knows of all valid options. Therefore, we need to allow free
text entry.
Quoted 2 lines
This is controlled by the project page so not related to this. Feel free to open a bug.
Done
https://bugzilla.yoctoproject.org/show_bug.cgi?id=8418
Cheers
Belén
Quoted 41 lines
Quoted 40 lines
Right now, if type some random string in the machine field then click 'save', Toaster reverts to the previous value and refuses to take the new
one. This also means that, for a local project, where we don't have any information about machines, it is impossible to change the machine value.Cheers,
Belén
Quoted 27 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/toaster/orm/models.py +1
-1@@ -229,7 +229,7 @@ class Project(models.Model): """ Returns QuerySet of all Machines which are provided by the Layers currently added to the Project """ queryset = Machine.objects.filter( - layer_version__in=self.get_project_layer_versions(self)) + layer_version__in=self.get_project_layer_versions()) return querysetSignature · 7 lines
2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
upstreamed to bitbake and toaster-next.
-b
Quoted 80 lines · Belen
Quoted 16 lines · Michael Wood
Quoted 8 lines · Belen
Quoted 3 lines · On 29/09/2015 17:18, "[email protected] on behalf of Michael…
Fix typo don't pass self in as a parameter, this evaluated to true giving the wrong results meaning the machines typeahead did not return valid results.
Quoted 6 lines
I am not sure if it is connected to this problem, but I can only set machines if I select one of the type ahead suggestions. This is not the correct behaviour. Machines are like build targets: we can never be sure that Toaster knows of all valid options. Therefore, we need to allow free
text entry.Quoted 2 lines
This is controlled by the project page so not related to this. Feel free to open a bug.
Done
https://bugzilla.yoctoproject.org/show_bug.cgi?id=8418
Cheers
Belén
Quoted 32 lines
Quoted 32 lines
Right now, if type some random string in the machine field then click 'save', Toaster reverts to the previous value and refuses to take the new
one. This also means that, for a local project, where we don't have any information about machines, it is impossible to change the machine value.Cheers,
Belén
Quoted 19 lines
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/orm/models.py| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/toaster/orm/models.py +1
-1@@ -229,7 +229,7 @@ class Project(models.Model): """ Returns QuerySet of all Machines which are provided by the Layers currently added to the Project """ queryset = Machine.objects.filter( - layer_version__in=self.get_project_layer_versions(self)) + layer_version__in=self.get_project_layer_versions()) return querysetQuoted 9 lines
Quoted 8 lines
Quoted 8 lines
--
2.1.4--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster