<?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>6515</bug_id>
          
          <creation_ts>2014-07-09 05:15:17 +0000</creation_ts>
          <short_desc>Ability to add custom layer directory sources for Toaster</short_desc>
          <delta_ts>2015-05-27 07:41:34 +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.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.8 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>cristiana.voicu</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</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>44389</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-07-09 05:15:17 +0000</bug_when>
    <thetext>In the new project creation design for Toaster, there is the ability to select and add layers from the known YP layer directory sources.

We however also need the ability to specify additional custom layer directory sources from which Toaster can select from.

This is necessary because (a) for customers we have strongly encouraged the use of layers to add their custom content, and (b) for commercialization partners they wish to expose their value-add layers for use by the customer.

Ideally the Toaster interface would provide a setup page where such extra layer directories can be added and managed. As a minimal solution there should be a way in the Toaster set up files to specify such a list (much like one would set a remote database path).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44975</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-08-06 09:37:04 +0000</bug_when>
    <thetext>This is assigned to me, but on the first go the configuration of layer sources will probably be done via editing directly the Toaster settings and configuration files. 

Changing assignee to Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45335</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-08-29 16:48:10 +0000</bug_when>
    <thetext>Implemented the &quot;Local&quot; layer source, with layers URLs set to localhost directories.

The layer sources are managed through the admin interface.

The layers can be imported as local layer sources through the layer import functionality.

A project with local layers can only be built on the localhost build environment, and it cannot be exported (implementation in progress).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46189</commentid>
    <comment_count>3</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-08 12:08:11 +0000</bug_when>
    <thetext>I tried to add a new layer in the admin page and that worked and the backend table orm_layersource was populated with the manual added layer:

select * from orm_layersource;
        id = 1
      name = Local Poky
sourcetype = 0
    apiurl = /home/ionut/work/weekly/poky/

        id = 2
      name = meta-selftest
sourcetype = 0
    apiurl = /home/ionut/work/weekly/poky/meta-selftest

The only thing for which I cannot validate this feature as Verified Fixed is that I cannot see/add the layer in the &quot;New project page&quot;.

Is there another way to check that the manually added layer will be taken into consideration for the next build ?

Cheers,
Ionut</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46190</commentid>
    <comment_count>4</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-08 12:08:43 +0000</bug_when>
    <thetext>See above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47375</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-04 16:32:50 +0000</bug_when>
    <thetext>According to Alex this is a duplicate of 6595. When it comes time to test that, Michael or Alex can explain how to verify the layer has been added from the backend (although I would have thought the best way to test it would be to actually run the build.)

*** This bug has been marked as a duplicate of bug 6595 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47747</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-06 14:17:25 +0000</bug_when>
    <thetext>According to Belen this is not in fact a duplicate of 6595. Her comments:

&quot;[This bug] is about providing Toaster administrators with a way of creating their own layer sources, a process
which involves 2 steps:

1. Create and populate your own instance of the layer index
2. Configure Toaster to pull information from that layer index

Bug 6595 is about providing &quot;normal&quot; Toaster users (i.e. not administrators) a
way of importing a layer. The import layer page does this.

So these are not duplicates, and the ability to configure a custom layer
source in Toaster should be tested.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47753</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-01-06 17:03:55 +0000</bug_when>
    <thetext>Sorry for the confusion. This bug is fixed, as it is possible to add custom layer sources through the Django admin interface. 

The layer sources do not appear in the &quot;New Project&quot; page. The proper way to test this functionality is:

1. Install a local copy of the layerindex application
2. Add a particular layer info in this layer index application instance
3. Add the layer index instance as a new layer source inside Toaster
4. Perform &quot;lsupdates&quot; comman in toaster manage.py and verify that it completes
5. Verify the layer added at 2. is available in &quot;All layers&quot; list in Toaster.

Pay attention to the branch names used at step 2 - they need to match with the release names used at step 5.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>