<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 27, 2018 at 12:23 PM, Austin Macdonald <span dir="ltr"><<a href="mailto:amacdona@redhat.com" target="_blank">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"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">After some reflection, I think we have been too focused on the small points (plugin complexity, URL organization, actions vs nouns). They should be discussed, but we don't have consensus around the primary concern.</span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span>Correctness is what motivated this proposal, so <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I'd like to take a step back and discuss only correctness.</span><div><br></div><div>My assertion:<div><div><br></div><div>Plugins should be able to define and enforce constraints on the content membership of a repository.</div></div><div><br></div><div>My reasoning:</div><div><br></div></div></div><div>Some plugins have natural constraints on the membership of a repository. Two Docker Tags of the same name cannot be in a the same Repository. Manifest Lists cannot be in a repository without the Manifests that are listed. It would be fundamentally incorrect to prevent the plugins from enforcing these kinds of constraints. I think there are similar problems with errata package lists.</div></div>
<br></blockquote><div><br></div><div>The current plugin API allows plugin authors to define custom REST API endpoints that can perform any custom validation needed for the plugin. The repository version creation REST API provided by pulpcore only validates that the content exists. We should document this limitation and recommend that users use Repository Version creation APIs provided by specific plugins. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div></div>