Bug 1004522 - rpm repo export start/end help text is misleading
Summary: rpm repo export start/end help text is misleading
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 2.1.1
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: 2.3.0
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-04 20:27 UTC by Mike McCune
Modified: 2015-03-23 01:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-09 14:32:02 UTC


Attachments (Terms of Use)

Description Mike McCune 2013-09-04 20:27:00 UTC
If you read the help text for export it indicates the start and end dates are based on the issued date of the errata.  This is incorrect as these dates are actually when the errata was *associated* with the repository


# pulp-admin rpm repo export run --help

[...]
Publish Options
  --start-date - start date for errata export; only errata whose issued date is
                 on or after the given value will be included in the generated
                 iso; format: "2009-03-30 00:00:00"
  --end-date   - end date for errata export; only errata whose issued date is on
                 or before the given value will be included in the generated
                 iso; format: "2011-03-30 00:00:00"


This results in the user thinking he can examine the "Issue Date" of the errata to export ranges of content from a repository.

Description:      errata-package_Erratum description
From:             errata
Id:               RHEA-2012:6078
Issued:           2012-11-21 00:00:00

ideally the help text would explain that it is the associated date

Comment 1 Sayli Karmarkar 2013-09-23 04:38:17 UTC
This seems to be already fixed in the latest code.

$ pulp-admin rpm repo export run 
Command: run
Description: triggers an immediate export of a repository

...

Publish Options
...
  --start-date - start date for an incremental export; only content associated
                 with a repository on or after the given value will be included
                 in the exported repository; dates should be in standard ISO8601
                 format: "1970-01-01T00:00:00"
  --end-date   - end date for an incremental export; only content associated
                 with a repository on or before the given value will be included
                 in the exported repository; dates should be in standard ISO8601
                 format: "1970-01-01T00:00:00"

Moving to modified.

Comment 2 Preethi Thomas 2013-09-23 12:24:42 UTC
verified

[root@pulp-v2-server ~]# rpm -qa pulp-server
pulp-server-2.3.0-0.14.alpha.el6.noarch
[root@pulp-v2-server ~]# 

[root@pulp-v2-server ~]#  pulp-admin rpm repo export run 
Command: run
Description: triggers an immediate export of a repository

Available Arguments:

  --repo-id - (required) unique identifier; only alphanumeric, ., -, and _
              allowed
  --bg      - if specified, the CLI process will end but the process will
              continue on the server; the progress can be later displayed using
              the status command

Publish Options
  --export-dir - the full path to a directory; if specified, the repository will
                 be exported to the given directory instead of being placed in
                 ISOs and published via HTTP or HTTPS
  --iso-prefix - prefix to use in the generated ISO name, default:
                 <repo-id>-<current_date>.iso
  --iso-size   - the maximum size, in MiB (1024 kiB), of each exported ISO; if
                 this is not specified, single layer DVD-sized ISOs are created
  --start-date - start date for an incremental export; only content associated
                 with a repository on or after the given value will be included
                 in the exported repository; dates should be in standard ISO8601
                 format: "1970-01-01T00:00:00"
  --end-date   - end date for an incremental export; only content associated
                 with a repository on or before the given value will be included
                 in the exported repository; dates should be in standard ISO8601
                 format: "1970-01-01T00:00:00"

The following options are required but were not specified:
  --repo-id
[root@pulp-v2-server ~]#

Comment 3 Preethi Thomas 2013-12-09 14:32:02 UTC
Pulp 2.3 released.


Note You need to log in before you can comment on or make changes to this bug.