[bitbake-devel] [PATCH 10/10] toaster: importlayer Remove description input field

Alex DAMIAN alexandru.damian at intel.com
Wed Feb 18 19:11:04 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

This wasn't required or working due to a typo and adds ambiguity between
the summary and description. The correct method for changing the description
or summary is via the layerdetails page.

[YOCTO #7190]

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/toastergui/static/js/importlayer.js   | 1 -
 lib/toaster/toastergui/templates/importlayer.html | 6 ------
 lib/toaster/toastergui/views.py                   | 3 ---
 3 files changed, 10 deletions(-)

diff --git a/lib/toaster/toastergui/static/js/importlayer.js b/lib/toaster/toastergui/static/js/importlayer.js
index e782bda..9d54286 100644
--- a/lib/toaster/toastergui/static/js/importlayer.js
+++ b/lib/toaster/toastergui/static/js/importlayer.js
@@ -136,7 +136,6 @@ function importLayerPageInit (ctx) {
         name: layerNameInput.val(),
         vcs_url: vcsURLInput.val(),
         git_ref: gitRefInput.val(),
-        summary:  $("#layer-summary").val(),
         dir_path: $("#layer-subdir").val(),
         project_id: ctx.projectId,
         layer_deps: layerDepsCsv,
diff --git a/lib/toaster/toastergui/templates/importlayer.html b/lib/toaster/toastergui/templates/importlayer.html
index a4d8ee1..1196e0c 100644
--- a/lib/toaster/toastergui/templates/importlayer.html
+++ b/lib/toaster/toastergui/templates/importlayer.html
@@ -84,12 +84,6 @@
                             </div>
                           </div>
 
-                          <label class="project-form" for="layer-description">Layer description
-                            <span class="muted">(optional)</span>
-                            <span class="icon-question-sign get-help" title="A short layer explanation" />
-                          </label>
-                          <textarea id="layer-description" class="input-xxlarge"></textarea>
-
                     </fieldset>
                     <fieldset class="air">
                         <legend>
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index bf148e2..be74c10 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2422,9 +2422,6 @@ if toastermain.settings.MANAGED:
             if layer_created:
                 layer.layer_source = layer_source
                 layer.vcs_url = post_data['vcs_url']
-                if post_data.has_key('summary'):
-                    layer.summary = layer.description = post_data['summary']
-
                 layer.up_date = timezone.now()
                 layer.save()
             else:
-- 
1.9.1




More information about the bitbake-devel mailing list