<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/07/2018 10:19 AM, Kersom Moura
      Oliveira wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAO3TAPhNHrPVw9xjwC4Z5g+j_sx2bU+nBV1Gs6ygJ1HhO5n-0A@mail.gmail.com">
      <div dir="ltr">
        <div>Is there a specific user case that requires that a
          publisher and a publication to be part of a distribution?<br>
        </div>
      </div>
    </blockquote>
    <br>
    Just the publisher & publication, No.<br>
    <br>
    The Distribution.publication links a publication to the Distribution
    and is completely independent from Publisher.  It determines which
    publication the Distribution is distributing.<br>
    <br>
    The Distribution.publication and Distribution.repository are only
    set (always together) to support auto-distribute.  That is "when
    this publisher creates a new publication for this repository, update
    the Distribution.publication = <new publication>". <br>
    <br>
    <blockquote type="cite"
cite="mid:CAO3TAPhNHrPVw9xjwC4Z5g+j_sx2bU+nBV1Gs6ygJ1HhO5n-0A@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        Thanks,<br>
        <div><br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, May 7, 2018 at 11:11 AM, Austin
          Macdonald <span dir="ltr"><<a
              href="mailto:amacdona@redhat.com" target="_blank"
              moz-do-not-send="true">amacdona@redhat.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra"><br>
                <div class="gmail_quote"><span class="">On Mon, May 7,
                    2018 at 10:55 AM, Brian Bouterse <span dir="ltr"><<a
                        href="mailto:bbouters@redhat.com"
                        target="_blank" moz-do-not-send="true">bbouters@redhat.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div dir="ltr">
                        <div>
                          <div>
                            <div>I'm confused about the feature claim of
                              the auto-distribute feature for Pulp 3.0
                              GA. The distribution object takes both
                              'repository' and 'publisher' as options
                              currently...<br>
                              <br>
                            </div>
                            As a user, can I create a distribution that
                            will auto-distribute any new repository
                            version for repo 'foo'?<br>
                            <br>
                          </div>
                          As a user, can I create a distribution that
                          will auto-distribute any publication produced
                          by a specific publisher, e.g. 'baz'?<br>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>Repository and publisher must both be set at the
                    same time. Any time the publisher is used to create
                    a new publication of the repository it is auto
                    distributed.</div>
                  <div><br>
                  </div>
                  <div>Not sure why the help text isn't showing up in
                    the autogenerated docs.</div>
                  <div><a
href="https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/serializers/repository.py#L203-L223"
                      target="_blank" moz-do-not-send="true">https://github.com/pulp/pulp/<wbr>blob/3.0-dev/pulpcore/<wbr>pulpcore/app/serializers/<wbr>repository.py#L203-L223</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div>Heres how it works:</div>
                  <div><a
href="https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/models/publication.py#L107-L112"
                      target="_blank" moz-do-not-send="true">https://github.com/pulp/pulp/<wbr>blob/3.0-dev/pulpcore/<wbr>pulpcore/app/models/<wbr>publication.py#L107-L112</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div> </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div dir="ltr">
                      <div>Thanks,<br>
                      </div>
                      <div>Brian<br>
                      </div>
                    </div>
                    <br>
                    ______________________________<wbr>_________________<br>
                    Pulp-dev mailing list<br>
                    <a href="mailto:Pulp-dev@redhat.com" target="_blank"
                      moz-do-not-send="true">Pulp-dev@redhat.com</a><br>
                    <a
                      href="https://www.redhat.com/mailman/listinfo/pulp-dev"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">https://www.redhat.com/mailman<wbr>/listinfo/pulp-dev</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Pulp-dev mailing list<br>
            <a href="mailto:Pulp-dev@redhat.com" moz-do-not-send="true">Pulp-dev@redhat.com</a><br>
            <a href="https://www.redhat.com/mailman/listinfo/pulp-dev"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>