Bug 1392379 - New fields (e.g. tags, custom attributes) do not appear in Report Editor
Summary: New fields (e.g. tags, custom attributes) do not appear in Report Editor
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Ari Zellner
QA Contact: Jiri Stefanisin
URL:
Whiteboard: report
: 1420126 (view as bug list)
Depends On:
Blocks: 1382720 1388659 1417197
TreeView+ depends on / blocked
 
Reported: 2016-11-07 11:26 UTC by Beni Paskin-Cherniavsky
Modified: 2017-06-12 16:09 UTC (History)
8 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1417197 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:09:58 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Beni Paskin-Cherniavsky 2016-11-07 11:26:15 UTC
Description of problem:

The available fields in reports are computed once *per report type*:
https://github.com/ManageIQ/manageiq/blob/a3e4523b822f8cc0effaf58ff5296f77f2bd158f/lib/miq_expression.rb#L1193-L1207

- New tag categories will not appear in report editor.
- New custom attribute types will not appear in report editor.

They will appear if you select a new report type you didn't use before but then they're remembered forever — until server restart (probably UI worker).

Version-Release number of selected component (if applicable):
5.7.0.9-beta2.1.20161101182054_eb0afaa

How reproducible:
always

Steps to Reproduce:
1. Open Report Editor: Cloud Intel -> Reports -> Reports accordion -> 
   Configuration -> Add a new report
   and choose some "Base the report on" type e.g. VMs and Instances
2. Cancel.  (just populating the dialog caches the fields)
3. Create new tags category:
   top right EVM menu -> Configuration -> Region 0 in explorer -> 
   My Company Categories tab -> "<click this row to create>"
   Let's say you called it "AAAA"
4. Create an entry under the category:
   My Company Tags tab -> choose the new "AAAA" category from dropdown -> "<click this row to create>"
5. Open Report Editor again, and choose same "Base the report on" type as in (1)

Actual results:
The "Available Fields" box does not contain the new "My Company Tags : AAAA"

Expected results:
The "Available Fields" box should contain "My Company Tags : AAAA"


Additional info:
https://github.com/ManageIQ/manageiq/issues/12465

Comment 2 Ari Zellner 2017-01-19 13:10:37 UTC
Upstream PR: https://github.com/ManageIQ/manageiq/pull/12636

Comment 5 Libor Pichler 2017-05-19 14:10:13 UTC
*** Bug 1420126 has been marked as a duplicate of this bug. ***


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