https://pulp.plan.io/https://pulp.plan.io/favicon.ico2016-04-15T14:59:57ZPulpPulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=108082016-04-15T14:59:57Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Project</strong> changed from <i>RPM Support</i> to <i>Pulp</i></li><li><strong>Version</strong> set to <i>2.8.0</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=108122016-04-15T15:01:35Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Blocks</strong> <i><a class="issue tracker-3 status-11 priority-6 priority-default closed child" href="/issues/1724">Story #1724</a>: Publish should be a no-op if no units and no settings have changed since the last successful publish</i> added</li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=108402016-04-15T17:25:34Zbmbouterbmbouter@redhat.com
<ul></ul><p>Did last_unit_added exist before?</p>
<p>If you have a datetime and want to find if a unit was created or updated since then you could query on the RepositoryContentUnit model updated field[0]:</p>
<pre><code>RepositoryContentUnit.objects.filter(repo_id=repo_id, updated_gt=the_timestamp)
</code></pre>
<p>You could use count() to determine how many there were without actually pulling the documents into memory.</p>
<p>[0]: <a href="https://github.com/pulp/pulp/blob/1503f2772aee59d30621b58582ea997feb28fb41/server/pulp/server/db/model/__init__.py#L199-L208" class="external">https://github.com/pulp/pulp/blob/1503f2772aee59d30621b58582ea997feb28fb41/server/pulp/server/db/model/__init__.py#L199-L208</a></p> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=109322016-04-22T14:48:29Zmhrivnakmhrivnak@redhat.com
<ul><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=111432016-05-02T13:30:51Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>With bmbouter suggestion i managed to find the other way of implementation, so this issue is not a blocker for <a class="issue tracker-3 status-11 priority-6 priority-default closed child" title="Story: Publish should be a no-op if no units and no settings have changed since the last successful publish (CLOSED - CURRENTRELEASE)" href="https://pulp.plan.io/issues/1724">#1724</a> anymore</p> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=111442016-05-02T13:31:06Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Blocks</strong> deleted (<i><a class="issue tracker-3 status-11 priority-6 priority-default closed child" href="/issues/1724">Story #1724</a>: Publish should be a no-op if no units and no settings have changed since the last successful publish</i>)</li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=166362016-12-20T16:02:38Zttereshcttereshc@redhat.com
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-12 priority-6 priority-default closed" href="/issues/2499">Issue #2499</a>: 'Last Unit Added' attribute not updated</i> added</li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=166422016-12-20T18:34:18Zbizhangbizhang@redhat.com
<ul><li><strong>Sprint/Milestone</strong> set to <i>31</i></li><li><strong>Severity</strong> changed from <i>2. Medium</i> to <i>3. High</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=166732017-01-03T14:08:46Zbizhangbizhang@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>bizhang</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=167552017-01-05T21:39:50Zbizhangbizhang@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p>PR: <a href="https://github.com/pulp/pulp/pull/2905" class="external">https://github.com/pulp/pulp/pull/2905</a></p> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=167622017-01-06T15:41:34Zpthomas@redhat.com
<ul></ul><p>pulp smash issue<br>
<a href="https://github.com/PulpQE/pulp-smash/issues/461" class="external">https://github.com/PulpQE/pulp-smash/issues/461</a></p> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=168952017-01-13T14:24:45Zbizhangbizhang@redhat.com
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li></ul><p>Applied in changeset <a class="changeset" title="Update last_unit_added when unit is imported to repo. closes #1847 https://pulp.plan.io/issues/1847" href="https://pulp.plan.io/projects/pulp/repository/pulp/revisions/0a1c14ee89ea2418fe59246c5c9ad91e0808df52">pulp|0a1c14ee89ea2418fe59246c5c9ad91e0808df52</a>.</p> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=169992017-01-17T19:33:33Zsemyerssean.myers@redhat.com
<ul><li><strong>Platform Release</strong> set to <i>2.11.2</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=171222017-01-23T22:49:50Zsemyerssean.myers@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>5</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=172292017-01-31T00:05:12Zsemyerssean.myers@redhat.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=256602018-03-08T19:26:26Zbmbouterbmbouter@redhat.com
<ul><li><strong>Sprint</strong> set to <i>Sprint 13</i></li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=256832018-03-08T19:27:22Zbmbouterbmbouter@redhat.com
<ul><li><strong>Sprint/Milestone</strong> deleted (<del><i>31</i></del>)</li></ul> Pulp - Issue #1847: last_unit_added is not added in mongo repo collection recordshttps://pulp.plan.io/issues/1847?journal_id=389842019-04-15T20:31:51Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>