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

Bug 1131869

Summary: [RFE] Custom properties - allow to supply format explanation
Product: [oVirt] ovirt-engine Reporter: Lior Vernia <lvernia>
Component: RFEsAssignee: Oved Ourfali <oourfali>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: bazulay, bugs, ecohen, gklein, iheim, lsurette, oourfali, rbalakri, yeylon
Target Milestone: ---Keywords: FutureFeature, UserExperience
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-20 08:03:51 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:
Bug Depends On:    
Bug Blocks: 1079895, 1115084    

Description Lior Vernia 2014-08-20 08:00:44 UTC
Description of problem:

Custom properties go through input validation in the GUI, during which a UI field is marked as invalid if the value doesn't fit the regular expression for the specific custom property as configured in the DB.

However, currently the error displayed upon hover on the invalid UI field uses the regular expression itself to explain why the input is invalid - this is incomprehensible for a typical user.

When configuring a custom property, I suggest to allow adding an optional validation explanation. If no such text is supplied, then the current explanation may be used by default.

Even though this will only used by the GUI, I have marked it as core it should be managed on a per custom property basis (i.e. different custom properties have different regular expressions, therefore could have different validation explanations), which is handled at the DB level and performed by users via engine-config. And likely all other layers up to the GUI will have to be modified to accommodate this.

Comment 1 Lior Vernia 2014-08-25 08:02:37 UTC
One small correction: the validation explanations won't necessarily be used exclusively by the GUI, they could also be embedded in the errors returned by the backend for better readability when using REST.

Comment 2 Oved Ourfali 2014-08-27 07:17:02 UTC
Related to Bug 1119265.
Any solution that is config-based currently won't support localization (see comment in Bug 1119265). Will consider including that in 3.6.

Comment 3 Einav Cohen 2015-02-23 19:51:10 UTC
I would advise to wait for the PatternFly UI overhaul in which we will be able to solve similar problems for other fields as well, potentially -> not sure if should be targeted for 3.6.

Comment 5 Red Hat Bugzilla Rules Engine 2015-10-19 10:58:54 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.