Bug 1785633

Summary: [UI] The report of templates is not shown for the templates those are not exported.
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: Templates PluginAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: egolov, mhulan, oprazak, zhunting
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_templates-7.0.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:28:08 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:
Bug Depends On:    
Bug Blocks: 1778146    

Description Jitendra Yejare 2019-12-20 13:58:05 UTC
Description of problem:
The report of export templates is not shown for the templates that are not exported let's say due to negating option. 

Version-Release number of selected component (if applicable):
Satellite 6.7 snap 6

How reproducible:
Always

Steps to Reproduce:
1. Attempt to export the templates from local/git repo with some filter and negate option.
2. Look at the post export reports of exported templates.


Actual results:
The report of export templates is not shown for the templates that are not exported due to the negating option. 

Expected results:
The report of export templates should be reported for the templates that are not exported due to any reason and with the reason. Reason like 'The template is not exported due to filter and negate options provided'.

Additional info:
The import templates show the report for templates that are not imported due to negate option.

Comment 3 Ondřej Pražák 2020-01-03 11:21:58 UTC
We show the templates that were filtered out for import with a warning so this is a valid enhancement request.

Comment 4 Ondřej Pražák 2020-01-03 11:28:24 UTC
Created redmine issue https://projects.theforeman.org/issues/28630 from this bug

Comment 6 Bryan Kearney 2020-01-30 21:01:11 UTC
Upstream bug assigned to ofedoren

Comment 7 Bryan Kearney 2020-01-30 21:01:13 UTC
Upstream bug assigned to ofedoren

Comment 8 Bryan Kearney 2020-02-05 09:01:38 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28630 has been resolved.

Comment 9 Jitendra Yejare 2020-03-09 14:41:02 UTC
Verified!

@Satellite 6.7 snap 15

Steps:
---------
1. Export the templates with some filter and negate option.


Observation:
--------------
The report for templates that are not exported due to negate is displayed as below:
"Skipping, 'name' filtered out based on 'filter' and 'negate' settings"

Comment 12 errata-xmlrpc 2020-04-14 13:28:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454