<?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>15388</bug_id>
          
          <creation_ts>2024-02-07 18:09:32 +0000</creation_ts>
          <short_desc>Pagination needs to be rewritten (e.g. Machine -&gt; Browse isn&apos;t paginated)</short_desc>
          <delta_ts>2026-02-20 17:45:26 +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>RESOLVED</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>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Piotr Buliński">piotr</assigned_to>
          <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>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98152</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-02-07 18:09:32 +0000</bug_when>
    <thetext>If I click Machines -&gt; Browse and end up at https://layers.openembedded.org/layerindex/branch/master/machines/?q=&amp;browse=1, I only see machines that start with &apos;a&apos; because the list isn&apos;t paginated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98159</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-02-08 16:05:45 +0000</bug_when>
    <thetext>We had to disable the existing pagination in:

e86a2c2 &quot;Drop django-bootstrap-pagination: incompatible&quot;
bd58fbe &quot;bootstrap_pagination: disable via comment&quot;

because https://pypi.org/project/django-bootstrap-pagination/ is not compatible with Django 3+ (and definitely not with Django 4+).

It was added in:
f527692 &quot;Replace custom pagination with django-bootstrap-pagination&quot;
but the prior code is probably also not what we want to do.

The code (templates/layerindex/machines.html and friends) will have to be rewritten.

A possible replacement candidate is concerning because it is marked as wanting a maintainer:
https://pypi.org/project/django-pagination-bootstrap/

Pagination was also added to Django itself, so perhaps we are better off using that and not being beholden to third party plugins:

https://docs.djangoproject.com/en/4.2/topics/pagination/

Related? Moving to newer bootstrap versions is also very tricky... updating to bootstrap4 was attempted but RRS was very hard to ferret out and bootstrap5 which dropped jquery usage, which is a major change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103952</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-01-16 19:53:38 +0000</bug_when>
    <thetext>As discussed with Piotr, transfering ownership for this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104133</commentid>
    <comment_count>3</comment_count>
    <who name="Piotr Buliński">piotr</who>
    <bug_when>2026-01-31 14:36:47 +0000</bug_when>
    <thetext>Patch https://lists.yoctoproject.org/g/yocto-patches/message/3155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104373</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-02-20 17:45:26 +0000</bug_when>
    <thetext>Merged:
https://git.yoctoproject.org/layerindex-web/commit/?id=836f1eb3443a537e4abb68cd07dde76c18c84c76</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>