Bug 1383405 - [RFE]Auto-tagging from labels UI
Summary: [RFE]Auto-tagging from labels UI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.8.0
Assignee: Zohar Gal-Or
QA Contact: Einat Pacifici
URL:
Whiteboard: container
Depends On:
Blocks: 1391137 1391152
TreeView+ depends on / blocked
 
Reported: 2016-10-10 14:23 UTC by Beni Paskin-Cherniavsky
Modified: 2017-08-29 04:12 UTC (History)
11 users (show)

Fixed In Version: 5.8.0.0
Doc Type: Enhancement
Doc Text:
Docs BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1396126
Clone Of:
: 1391137 1391152 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:36:07 UTC
Category: Feature
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Map Tags - entity menu (105.41 KB, image/png)
2017-03-22 16:51 UTC, Tony
no flags Details

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


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