Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1116934

Summary: Events: Action groups' keys instead of Action groups' values appear within the Event message
Product: [oVirt] ovirt-engine Reporter: Gilad Chaplik <gchaplik>
Component: GeneralAssignee: bugs <bugs>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, dfediuck, gklein, oourfali, rbalakri, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-10 11:20:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
non-localized event message none

Description Gilad Chaplik 2014-07-07 16:11:11 UTC
Created attachment 916133 [details]
non-localized event message

Action groups aren't localized in update role event

Steps to Reproduce:
1. edit role
2. add action groups to role

Actual results:
action groups in event message aren't localized.

Expected results:
action group in event message should be localized.

Additional info:
see attachment.

Comment 1 Einav Cohen 2014-07-10 12:57:26 UTC
Events in general are not localized - we are tracking that via bug 870294. Events messages are persisted to the DB *already translated to English*, which is wrong. 

However, given the current state in which the Events are "hard-coded" in English: Gilad is right - within the Event message, we need to display the Action Groups' values, not the keys. 

So instead of:
"Action group CREATE_STORAGE_POOL_NETWORK, ..." 
We need to display:
"Action group 'Create Data-Center Network', ..."

[changed BZ subject accordingly]

AFAIK, we don't have such key-value mapping yet. 
we do have something similar in the GUI, used in the Add/Edit Role dialog, however the values for the Action Groups there (i.e. the action-groups-tree-'leafs') are not descriptive enough for the Events use-case discussed in this BZ. 
see http://i.imgur.com/Iofjy9H.png for example: the 'CREATE_STORAGE_POOL_NETWORK' action-group maps to 'Create', which is not descriptive enough for our use-case. 
Moreover, I believe that the current mapping (again, which we are using for the Add/Edit Role dialog) resides in the GUI code -> the backend (which writes the message to the DB) cannot use it - it needs a separate mapping file.

Comment 2 Oved Ourfali 2015-04-12 09:07:09 UTC
This won't make it into 3.6.0. Moving to 4.0 for consideration.

Comment 4 Red Hat Bugzilla Rules Engine 2015-10-19 10:49:18 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 5 Yaniv Kaul 2016-03-10 11:15:49 UTC
(In reply to Oved Ourfali from comment #2)
> This won't make it into 3.6.0. Moving to 4.0 for consideration.

CLOSE-WONTFIX?