Bug 1383405

Summary: [RFE]Auto-tagging from labels UI
Product: Red Hat CloudForms Management Engine Reporter: Beni Paskin-Cherniavsky <cben>
Component: UI - OPSAssignee: Zohar Gal-Or <zgalor>
Status: CLOSED CURRENTRELEASE QA Contact: Einat Pacifici <epacific>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: bazulay, cben, cpelland, fsimonce, hkataria, jhardy, lavenel, mpovolny, mtayer, obarenbo, simaishi
Target Milestone: GAKeywords: FutureFeature, TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container
Fixed In Version: 5.8.0.0 Doc Type: Enhancement
Doc Text:
Docs BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1396126
Story Points: ---
Clone Of:
: 1391137 1391152 (view as bug list) Environment:
Last Closed: 2017-06-12 17:36:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1391137, 1391152    
Attachments:
Description Flags
Map Tags - entity menu none

Description Beni Paskin-Cherniavsky 2016-10-10 14:23:28 UTC
The is no UI to configure auto-tagging.

Expected results:
There should at least be UI to configure
"when you encounter kubernetes/openshift label named 'foo', tag the entities with tags under category 'Foo'."
The category and tags will be created as needed.
(You won't be able to use existing categories from Settings -> "My Company Categories".  Auto-assigned categories tags will be completely separate from manually-assigned tags.)

Work in progress: https://github.com/ManageIQ/manageiq/pull/11591

Comment 1 CFME Bot 2016-11-01 20:46:14 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/eb0afaa7478342ed5f84e7f312b3c756a291776d

commit eb0afaa7478342ed5f84e7f312b3c756a291776d
Author:     Dan Clarizio <dclarizi>
AuthorDate: Tue Nov 1 12:38:25 2016 -0700
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 1 16:43:20 2016 -0400

    Merge pull request #11591 from zgalor/auto_tagging_based_on_kubernetes_labels
    
    Label based Auto-Tagging UI
    (cherry picked from commit 8d172b42277578f9b7ab4bd23dad7d7d0139b7dc)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1383405

 app/controllers/ops_controller.rb                  |  13 +-
 app/controllers/ops_controller/settings.rb         |   1 +
 app/controllers/ops_controller/settings/common.rb  |   2 +
 .../ops_controller/settings/label_tag_mapping.rb   | 207 +++++++++++++++++++++
 app/models/container_label_tag_mapping.rb          |   9 +
 app/views/layouts/_edit_form_buttons.html.haml     |   2 +-
 app/views/ops/_all_tabs.html.haml                  |   4 +
 app/views/ops/_label_tag_mapping_form.html.haml    |  47 +++++
 .../ops/_settings_label_tag_mapping_tab.html.haml  |  32 ++++
 config/routes.rb                                   |   4 +
 .../settings/label_tag_mapping_spec.rb             |  59 ++++++
 spec/routing/ops_routing_spec.rb                   |   4 +
 .../ops/_label_tag_mapping_form.html.haml_spec.rb  |  65 +++++++
 ...ettings_label_tag_mapping_tab.html.haml_spec.rb |  23 +++
 14 files changed, 470 insertions(+), 2 deletions(-)
 create mode 100644 app/controllers/ops_controller/settings/label_tag_mapping.rb
 create mode 100644 app/views/ops/_label_tag_mapping_form.html.haml
 create mode 100644 app/views/ops/_settings_label_tag_mapping_tab.html.haml
 create mode 100644 spec/controllers/ops_controller/settings/label_tag_mapping_spec.rb
 create mode 100644 spec/views/ops/_label_tag_mapping_form.html.haml_spec.rb
 create mode 100644 spec/views/ops/_settings_label_tag_mapping_tab.html.haml_spec.rb

Comment 3 Tony 2017-03-22 16:51:31 UTC
Created attachment 1265445 [details]
Map Tags - entity menu

"Pod" is missing from the entities menu

Comment 4 Tony 2017-03-22 16:52:04 UTC
Shouldn't Pod be included in the entities menu? Right now it is missing (enclosing screenshot for reference)

Comment 5 Mooli Tayer 2017-03-22 17:25:32 UTC
It's named Container Group there. Should be named pod. Please open a new bz

Comment 6 Tony 2017-03-22 17:31:28 UTC
I will, thanks Mooli.

Comment 7 Tony 2017-04-05 10:17:31 UTC
Verified in CFME 5.8.0.8