Bug 1629060

Summary: Content view export with --since option does not work as expected.
Product: Red Hat Satellite Reporter: Raviraj Lavande <rlavande>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.2CC: rjerrido
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-18 17:54:58 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:
Embargoed:

Description Raviraj Lavande 2018-09-14 18:43:18 UTC
Description of problem:

Content view export with "--since" option does not work as expected, It copies everything after every export. Ideally, it should copy/get only data which is uploaded after the date mentioned with the "--since" option while exporting the content view.
 
Version-Release number of selected component (if applicable):

Red Hat Satellite 6.3.2

How reproducible:

Always

Steps to Reproduce:

1. Create a product with 1 rpm.
2. Create a new content view and add this^^ product in ti and re-publish the content view.
3. Export the content view export will have one rpm here.
4. Add one more rpm in the product. and re-publish the content view.
5. export the content view again it will export both rpm's. 

Note:- both rpms have been added in the product and content view on the different dates.   

Actual results:

 Export contains everything and --since option does not work.

Expected results:

Export should contain only the data which have been added after the date mentioned with the "--since" option.

Additional info:
 reproduced thrice and got the same results every time.

Exported the content view using the following command

hammer> content-view version export --id 5 --since 2018-09-13T05:00:00

Comment 1 Rich Jerrido 2018-09-18 17:54:58 UTC
Content view versions are point in time snapshots and don't have the concept of '--since'. This is why you are seeing this behavior.

The only 'content view' that supports --since is the 'default organization view'