Skip to contentSkip to conversation

toastergui: Set default columns in recipes tables

PATCH In review Belen Barros Pena 2 participants 2 messages Oct 2, 2015 – Oct 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toastergui: Set default columns in recipes tables

From: Belen Barros Pena <[email protected]>

The compatible image recipes and software recipes tables show pretty much all their columsn by default. That's a bit too many columns. The default columns in both tables should
be: recipe, version, description, layer and build.

This patch sets the above as the default columns. It also changes the table heading 'Recipe Version' to just 'Version', which is shorter and self-explanatory.

[YOCTO #8421]

---
 bitbake/lib/toaster/toastergui/tables.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +5 -2
index 5cc04a2..a676ffa 100644
@@ -345,8 +345,8 @@ class RecipesTable(ToasterTable, ProjectFiltersMixin):
 
     def setup_columns(self, *args, **kwargs):
 
-        self.add_column(title="Recipe Version",
-                        hidden=True,
+        self.add_column(title="Version",
+                        hidden=False,
                         field_name="version")
 
         self.add_column(title="Description",
@@ -367,6 +367,7 @@ class RecipesTable(ToasterTable, ProjectFiltersMixin):
 
         self.add_column(title="Section",
                         help_text="The section in which recipes should be categorized",
+                        hidden=True,
                         orderable=True,
                         field_name="section")
 
@@ -383,10 +384,12 @@ class RecipesTable(ToasterTable, ProjectFiltersMixin):
 
         self.add_column(title="License",
                         help_text="The list of source licenses for the recipe. Multiple license names separated by the pipe character indicates a choice between licenses. Multiple license names separated by the ampersand character indicates multiple licenses exist that cover different parts of the source",
+                        hidden=True,
                         orderable=True,
                         field_name="license")
 
         self.add_column(title="Revision",
+                        hidden=True,
                         field_name="layer_version__get_vcs_reference")
 
 
Signature · 1 line
2.3.8 (Apple Git-58)
#1 lore raw
Quoted 9 lines · Belen Barros Pena

The compatible image recipes and software recipes tables show pretty much all their columsn by default. That's a bit too many columns. The default columns in both tables should
be: recipe, version, description, layer and build.

This patch sets the above as the default columns. It also changes the table heading 'Recipe Version' to just 'Version', which is shorter and self-explanatory.

Tested, works fine, automated tests OK, sent upstream to bitbake-devel, added to toaster-next.

Elliot

Quoted 60 lines

[YOCTO #8421]

---
 bitbake/lib/toaster/toastergui/tables.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +3 -2
index 5cc04a2..a676ffa 100644
@@ -345,8 +345,8 @@ class RecipesTable(ToasterTable, ProjectFiltersMixin):
 
     def setup_columns(self, *args, **kwargs):
 
-        self.add_column(title="Recipe Version",
-                        hidden=True,
+        self.add_column(title="Version",
+                        hidden=False,
                         field_name="version")
 
         self.add_column(title="Description",
@@ -367,6 +367,7 @@ class RecipesTable(ToasterTable, ProjectFiltersMixin):
 
         self.add_column(title="Section",
                         help_text="The section in which recipes should be
 categorized",
+                        hidden=True,
                         orderable=True,
                         field_name="section")
@@ -383,10 +384,12 @@ class RecipesTable(ToasterTable,

ProjectFiltersMixin):

self.add_column(title="License",
help_text="The list of source licenses for the
recipe. Multiple license names separated by the pipe character indicates a choice between licenses. Multiple license names separated by the ampersand character indicates multiple licenses exist that cover different parts of the source",

bitbake/lib/toaster/toastergui/tables.py +2 -1
+                        hidden=True,
                         orderable=True,
                         field_name="license")
 
         self.add_column(title="Revision",
+                        hidden=True,
                         field_name="layer_version__get_vcs_reference")
 
 
--

2.3.8 (Apple Git-58)

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre