<?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>12922</bug_id>
          
          <creation_ts>2018-09-13 02:19:38 +0000</creation_ts>
          <short_desc>Remove layerbranch automatically when conf/layer.conf is gone ?</short_desc>
          <delta_ts>2026-02-17 19:05:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>unspecified</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>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>brian.avery</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
    
    <cc>william.lyu</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</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>81540</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2018-09-13 02:19:38 +0000</bug_when>
    <thetext>Can we make update.py remove layerbranch automatically when conf/layer.conf is gone ? It would make the workflow simple, otherwise, the layer owner has to notify layerindex administer to remove it manually. Maybe we ca add a conf like:
AUTO_REMOVE_LAYERBRANCH = True/False</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96656</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-10-07 17:31:32 +0000</bug_when>
    <thetext>Related to this, we need an ability to turn off updates for a LayerBranch. Currently we can only turn off ALL updates for a Layer or a Branch. Heavy hammers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96658</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-10-07 17:43:05 +0000</bug_when>
    <thetext>UI for LayerBranch is in https://bugzilla.yoctoproject.org/show_bug.cgi?id=8008</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96669</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-10 18:43:01 +0000</bug_when>
    <thetext>Set target to 5.99. 
It was set to 0.0 from 4.99 when last changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98136</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-02-06 02:34:21 +0000</bug_when>
    <thetext>What do we really mean by &quot;remove the layer&quot;?

We now have at least two contexts, more likely three, for this:

(1) LayerItem is marked as &quot;No Update&quot; so no branch will ever be attempted to be updated ever again
(2) LayerBranch is marked as False for &quot;Enable Updates&quot;, so this particular branch will never be attempted to be updated
(3) The layer is no longer displayed

For 3 we really do not have a way to implement that. We can DELETE the LayerItem or the LayerBranch objects. More likely there are cases where we want a layer to still be displayed for older stable branches, but no longer be displayed for &quot;master&quot; branch. Currently we can only create a LayerNote if the &quot;master&quot; branch still exists. We probably want to be able to create a LayerBranchNote which has 
LayerBranch specific information (such as &quot;This layer is no longer being updated&quot;). We might also want a &quot;simple&quot; &apos;do not display this layer anymore&apos; setting for &quot;master&quot; for the layers that are ONLY applicable to prior releases. If we DELETE the &quot;master&quot; LayerBranch for a layer, it will simply be created again as long as the LayerItem exists and a &quot;master&quot; branch exists on the git repository.

Once we implement enforced LAYERSERIES_COMPAT for layers, we will absolutely need to indicate when a layer is not compatible with e.g. scarthgap/nanbield, but is marked as compatible with mickledore. Layers have a lag in updates (and some only support the LTS releases, even on &quot;master&quot; such as meta-agl*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104335</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-02-17 19:05:57 +0000</bug_when>
    <thetext>Still valid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>