<?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>7798</bug_id>
          
          <creation_ts>2015-05-21 09:47:51 +0000</creation_ts>
          <short_desc>Intelligent matching of new error report to existing reports</short_desc>
          <delta_ts>2015-09-07 11:52:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Error Reporting tool</product>
          <component>Error Reporting Tool</component>
          <version>unspecified</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>enhancement</bug_severity>
          <target_milestone>1.9 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>randy.macleod</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51178</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-05-21 09:47:51 +0000</bug_when>
    <thetext>It would be useful to recognise when a new error report is similar to or represents the same underlying issue as a report that already exists in the database. Users should still be able to see all instances of a submitted error. We could start small, by showing the number of instances for a certain error and link to a list of such instances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51200</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2015-05-21 14:57:38 +0000</bug_when>
    <thetext>Michael, 

If you have some ideas on how to implement this feature, please add your notes here since I hear that you are busy with toaster. I might find someone at Wind River to work on it depending on the complexity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51267</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-05-26 17:54:16 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Michael, 
&gt; 
&gt; If you have some ideas on how to implement this feature, please add your
&gt; notes here since I hear that you are busy with toaster. I might find someone
&gt; at Wind River to work on it depending on the complexity.

Currently I&apos;ve got this working in a local branch using a Levenshtien distance on a prime error (the first in the database).

So the flow goes like this:

New data comes in -&gt; Calculate levenshtien distance from the first error in the database  -&gt; store that in the record for this error.

Then when you wish to find existing similar reports we just query the column for the Levenshtien distance where it&apos;s = this report&apos;s distance +/- some tolerance value.

This means that the lookup is trivial which is the bit that will happen very frequently. The problem I have is that calculating the distance can take seconds to several minutes on standard hardware, as the size of the log being compared varies greatly. This means we wouldn&apos;t be able to send immediate feedback on a duplicates/similar errors existing. 

I&apos;m not sure if that&apos;s important or not, I think at some point we&apos;re going to have to do a fair bit of computation so it&apos;s just a matter of where in the flow that is acceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51533</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-06-05 17:06:49 +0000</bug_when>
    <thetext>This feature has now been added and available as of

69ee069a6a49d4ed9a37d22fdb7600d7f1555be2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53776</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-07 11:52:46 +0000</bug_when>
    <thetext>feature implemented</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>