| Summary: | pulp-admin repo history publish --limit option does not work | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jeremy Cline <einecline> |
| Component: | user-experience | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | Master | CC: | cperry, mhrivnak, pthomas, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 2.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-09 14:30:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jeremy Cline
2013-09-18 17:30:37 UTC
Assigning to myself to review and test Jeremy's PR. Tested and merged on Jeremy's behalf.
$ pulp-admin repo history publish --repo-id test-repo --distributor-id yum_distributor --limit 1
+----------------------------------------------------------------------+
Publish History [ test-repo ]
+----------------------------------------------------------------------+
Repo Id: test-repo
Distributor Id: yum_distributor
Result: success
Started: 2013-09-19T12:27:59-07:00
Completed: 2013-09-19T12:28:02-07:00
$ pulp-admin repo history publish --repo-id test-repo --distributor-id yum_distributor --limit 3
+----------------------------------------------------------------------+
Publish History [ test-repo ]
+----------------------------------------------------------------------+
Repo Id: test-repo
Distributor Id: yum_distributor
Result: success
Started: 2013-09-19T12:27:59-07:00
Completed: 2013-09-19T12:28:02-07:00
Repo Id: test-repo
Distributor Id: yum_distributor
Result: success
Started: 2013-09-19T12:27:51-07:00
Completed: 2013-09-19T12:27:55-07:00
Repo Id: test-repo
Distributor Id: yum_distributor
Result: success
Started: 2013-09-19T12:27:30-07:00
Completed: 2013-09-19T12:27:34-07:00
build: 2.3.0-0.15.alpha fails-qa
[root@pulp-v2-server ~]# rpm -qa pulp-server
pulp-server-2.3.0-0.16.alpha.el6.noarch
[root@pulp-v2-server ~]#
--limit seems to be working, but if you do not specify --limit, the output history entries seems to be limiting to 5
[root@pulp-v2-server ~]# pulp-admin repo history publish --repo-id errata-install --distributor-id yum_distributor
+----------------------------------------------------------------------+
Publish History [ errata-install ]
+----------------------------------------------------------------------+
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:56:36-04:00
Completed: 2013-09-27T13:56:37-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:55:22-04:00
Completed: 2013-09-27T13:55:23-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:54:46-04:00
Completed: 2013-09-27T13:54:47-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:53:38-04:00
Completed: 2013-09-27T13:53:39-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:46:25-04:00
Completed: 2013-09-27T13:46:26-04:00
[root@pulp-v2-server ~]# pulp-admin repo history publish --repo-id errata-install --distributor-id yum_distributor --limit 7
+----------------------------------------------------------------------+
Publish History [ errata-install ]
+----------------------------------------------------------------------+
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:56:36-04:00
Completed: 2013-09-27T13:56:37-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:55:22-04:00
Completed: 2013-09-27T13:55:23-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:54:46-04:00
Completed: 2013-09-27T13:54:47-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:53:38-04:00
Completed: 2013-09-27T13:53:39-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:46:25-04:00
Completed: 2013-09-27T13:46:26-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:46:10-04:00
Completed: 2013-09-27T13:46:11-04:00
Repo Id: errata-install
Distributor Id: yum_distributor
Result: success
Started: 2013-09-27T13:45:28-04:00
Completed: 2013-09-27T13:45:29-04:00
[root@pulp-v2-server ~]#
This now just needs the default limit of 5 to be documented in the help text. We should also verify that it's documented in the REST API docs. build: 2.3.0-0.18.beta verified
[root@pulp-v2-server ~]# pulp-admin repo history publish
Command: publish
Description: displays the history of publish operations on a repository
Available Arguments:
--repo-id - (required) unique identifier; only alphanumeric, ., -, and
_ allowed
--distributor-id - (required) the distributor id to display history entries
for
--limit - limits displayed history entries to the given amount (must
be greater than zero); the default is 5
Pulp 2.3 released. |