<?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>9485</bug_id>
          
          <creation_ts>2016-04-19 10:26:40 +0000</creation_ts>
          <short_desc>Fix typeaheads for Bootstrap 3</short_desc>
          <delta_ts>2023-12-14 04:20:43 +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>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>   </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliot Smith">elliot.smith</reporter>
          <assigned_to name="Toaster default assignee">toaster</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>stanciux.mihail</cc>
          
          
          <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>61384</commentid>
    <comment_count>0</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-04-19 10:26:40 +0000</bug_when>
    <thetext>The typeahead.js library used in the Bootstrap 3 branch of Toaster (michaelw/toaster/bootstrap3) doesn&apos;t work correctly with a &quot;source&quot; which only delivers results asynchronously. We have a work-around in the branch to deal with this at the moment (commit http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=michaelw/toaster/bootstrap3&amp;id=4cf3d05e9585b3f941446abe517193f0985fb69e), which effectively makes async data fetches behave like synchronous ones.

We need to fix this properly by providing a source which returns results both synchronously (locally caching JSON by query) and asynchronously (getting JSON over HTTP for new queries). Bloodhound (https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md) provides a framework for doing this and might be the simplest solution, as it integrates with typeahead.js.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61975</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-05-05 09:18:41 +0000</bug_when>
    <thetext>As part of this, we should make sure that the layers typeahead displays only the branch name (i.e. remove the repository uri from the typeahead).

Also, when you navigate the typeahead options with the keyboard, so should see the option in focus selected in the input text field, but also focused in the typeahead (right now, the latter doesn&apos;t happen).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68193</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2016-11-09 16:38:08 +0000</bug_when>
    <thetext>Moving this to Future since the workaround is currently sufficient.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>