<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5917</bug_id>
          
          <creation_ts>2014-03-06 05:33:02 +0000</creation_ts>
          <short_desc>Task Detail page needs support for &quot;Empty&quot; outcome</short_desc>
          <delta_ts>2014-08-01 15:06:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40906</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-06 05:33:02 +0000</bug_when>
    <thetext>In the “task.html” page, there is the value “task.outcome_help”, but that no longer appears to be in the database. It that the case and intent? What should we use instead?

  159:     &lt;i class=&quot;icon-question-sign get-help heading-help&quot; title=&quot;&quot; data-original-title=&quot;{{task.outcome_help}}&quot;&gt;&lt;/i&gt;

What is really weird, I do not get a Django error unless I open a task with the “Empty” outcome, even though this code would seem to execute for all outcomes.

  KeyError at /gui/build/13/task/23748
    Exception Location: 	/home/abc/toaster_1_6/poky/bitbake/lib/toaster/orm/models.py in outcome_help, line 159
      &lt;i class=&quot;icon-question-sign get-help heading-help&quot; title=&quot;&quot; data-original-title=&quot;{{task.outcome_help}}&quot;&gt;&lt;/i&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40912</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-03-06 10:07:28 +0000</bug_when>
    <thetext>outcome_help is a method in the Task class, at least on toaster/master. 
I would&apos;ve named it get_outcome_help, but such is life.

def outcome_help(self):
        return Task.TASK_OUTCOME_HELP[self.outcome]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40913</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-06 10:32:13 +0000</bug_when>
    <thetext>I found this problem earlier this week and fixed it here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/front-end-050414&amp;id=f82e49c5142309dd09d6bcc1f9c67f63141c3175</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40914</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-06 10:38:54 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I found this problem earlier this week and fixed it here:
&gt; 
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/
&gt; front-end-050414&amp;id=f82e49c5142309dd09d6bcc1f9c67f63141c3175

Sorry, forget that: it no longer works after rebasing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40934</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-06 17:33:01 +0000</bug_when>
    <thetext>Well, I do have a fix for this now:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/front-end-050414&amp;id=d20034c9be9094af31cf63fc9ce56e19cfa87c82</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40954</commentid>
    <comment_count>5</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-07 02:13:34 +0000</bug_when>
    <thetext>There are three places in tasks that need update in the GUI for the &quot;Empty&quot; outcome.

  1. In the &quot;TASK_OUTCOME_HELP&quot; structure in the model, missing the string mapping for OUTCOME_EMPTY.

  2. In the tasks view for sorting on Empty.

  3. In the format of the Task detail page when Empty, missing the &quot;This task is empty because ...&quot; message.

The patch from Belen &quot;2014-03-06 17:33:01 UTC &quot; does not address these issues, so I will prepare a patch for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41266</commentid>
    <comment_count>6</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-17 05:47:53 +0000</bug_when>
    <thetext>commit 324791a729d29b929dd2c78489f2564d5e01ad92

Test Instructions:

  1) In the tasks page, you can now sort by &quot;Empty&quot;

  2) In the task detail page for &quot;Empty&quot; tasks, the help icon now has the text &quot;This task has no executable content&quot;

  3) In the task detail page for &quot;Empty&quot; tasks, you now have the &lt;div&gt; for &quot;empty&quot; outcomes of:

     &quot;This task is empty because it has the &lt;code&gt;noexec&lt;/code&gt; flag set to &lt;code&gt;1&lt;/code&gt;, or the task function is empty&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44930</commentid>
    <comment_count>7</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-08-01 15:06:57 +0000</bug_when>
    <thetext>Verified on master: 2d1660112e54653f7bb763939d0416472c49fe01</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>