Bug 638710 - pulp-admin /pulp-client consumer history --start_date & --end_date format
Summary: pulp-admin /pulp-client consumer history --start_date & --end_date format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-09-29 18:05 UTC by Preethi Thomas
Modified: 2011-07-15 19:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-17 16:52:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-09-29 18:05:42 UTC
Description of problem:

consumer history --help states that the format for startdate & end date is mm-dd-yyyy format

 --start_date=START_DATE
                        Only return entries that occur after the given date
                        (format: mm-dd-yyyy)
  --end_date=END_DATE   Only return entries that occur before the given date
                        (format: mm-dd-yyyy)


but the 

[root@preethi ~]# pulp-client consumer history --start_date=09-27-2010 --end_date=09-28-2010
 History retrieval failed for consumer [preethi.usersys.redhat.com]

[root@preethi ~]# pulp-client consumer history  --start_date=2010-09-27 --end_date=2010-09-28
+------------------------------------------+
              Consumer History 
+------------------------------------------+

Event Type              Consumer Created         
Timestamp               2010-09-27 16:00:42.813000
Originator              admin               


[root@preethi ~]# pulp-admin consumer history --id=preethi.usersys.redhat.com --start_date=09-27-2010 --end_date=09-28-2010
 History retrieval failed for consumer [preethi.usersys.redhat.com]


[root@preethi ~]# pulp-admin consumer history --id=preethi.usersys.redhat.com --start_date=2010-09-27 --end_date=2010-09-28
+------------------------------------------+
              Consumer History 
+------------------------------------------+

Event Type              Consumer Created         
Timestamp               2010-09-27 16:00:42.813000
Originator              admin

Comment 1 Jay Dobies 2010-10-20 20:36:35 UTC
commit	cb8e68a48ac061a890b574110bc02dda78df4865
tree	01d109b9c624735ff37a9d283063ffc6e84dc158


638710 - Corrected docs on date format.


src/pulp/client/core/consumer.py

Comment 2 Jay Dobies 2010-10-26 14:47:12 UTC
Fixed in build 0.76.

Comment 3 Preethi Thomas 2010-10-28 14:45:25 UTC
verified



[root@preethi ~]# pulp-client consumer history --help
Usage: pulp-client <options> consumer history <options>

Options:
  -h, --help            show this help message and exit
  --event_type=EVENT_TYPE
                        limits displayed history entries to the given type
  --limit=LIMIT         limits displayed history entries to the given amount
                        (must be greater than zero)
  --sort=SORT           indicates the sort direction ("ascending" or
                        "descending") based on the entry's timestamp
  --start_date=START_DATE
                        only return entries that occur on or after the given
                        date (format: yyyy-mm-dd)
  --end_date=END_DATE   only return entries that occur on or before the given
                        date (format: yyyy-mm-dd)

[root@preethi ~]# pulp-client consumer history --start_date=2010-10-26 --end_date=2010-10-27
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type              Consumer Created         
Timestamp               2010-10-26 16:04:47.365000
Originator              admin                    

Event Type              Consumer Deleted         
Timestamp               2010-10-26 16:04:42.086000
Originator              admin                    

Event Type              Consumer Created         
Timestamp               2010-10-26 16:03:14.234000
Originator              admin                    

Event Type              Consumer Deleted         
Timestamp               2010-10-26 15:39:05.124000
Originator              admin                    

Event Type              Consumer Created         
Timestamp               2010-10-26 15:38:53.357000
Originator              admin                    

[root@preethi ~]#

Comment 4 Preethi Thomas 2011-02-17 16:52:16 UTC
Closing with community release 

pulp-0.0.139-1.fc14.noarch


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