<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/20/19 12:17 PM, Brian Bouterse
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAcvrTEjL+kkytLbNPLZJWb3BPu3L1G1aDzp8Sk4bXLSd_E6Jw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Recently with pulp_ansible, users were interested in using
          pagination with LimitOffsetPagination [0]. Pulp currently
          defaults to PageNumberPagination. I looked at our current DRF
          defaults, and I noticed two things.</div>
        <div><br>
        </div>
        <div>1. We default to the not-as-common PageNumberPagination
          based on examples in the drf docs.<br>
        </div>
        <div>2. We customize it here [1] in various ways.</div>
        <div><br>
        </div>
        <div>Can someone help me remember why these pagination style
          choices were made or where the requirements came from?</div>
        <div>Would our bindings work with a LimitOffsetPagination style?</div>
        <div>What use cases drove the use and customization in this
          area?<br>
        </div>
        <div><br>
        </div>
        <div>Also, @katello how would a pagination style change (like
          switching to LimitOffsetPagination) affect you?<br>
        </div>
      </div>
    </blockquote>
    <p>Speaking for katello, we'd have to change a few lines of code,
      but it seems like it would be minimal.</p>
    <blockquote type="cite"
cite="mid:CAAcvrTEjL+kkytLbNPLZJWb3BPu3L1G1aDzp8Sk4bXLSd_E6Jw@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks for any info you can provide. Maybe what we have
          right now is just what we need, but I'm not sure.<br>
        </div>
        <div><br>
        </div>
        <div>-Brian<br>
        </div>
        <div><br>
        </div>
        <div>[0]: <a
href="https://www.django-rest-framework.org/api-guide/pagination/#setting-the-pagination-style"
            moz-do-not-send="true">https://www.django-rest-framework.org/api-guide/pagination/#setting-the-pagination-style</a></div>
        <div>[1]: <a
href="https://github.com/pulp/pulpcore/blob/master/pulpcore/app/pagination.py"
            moz-do-not-send="true">https://github.com/pulp/pulpcore/blob/master/pulpcore/app/pagination.py</a></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pulp-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-dev">https://www.redhat.com/mailman/listinfo/pulp-dev</a>
</pre>
    </blockquote>
  </body>
</html>