Bug 1274685 - AssetMgmt: New Repository dialog validation broken when Managed Repository is checked
AssetMgmt: New Repository dialog validation broken when Managed Repository is...
Product: JBoss BRMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
Unspecified Unspecified
high Severity medium
: CR1
: 6.2.0
Assigned To: Walter Medvedeo
Jiri Locker
Depends On:
  Show dependency treegraph
Reported: 2015-10-23 07:06 EDT by Jiri Locker
Modified: 2015-11-18 09:31 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jiri Locker 2015-10-23 07:06:31 EDT
Description of problem:
* "Finish" button is activated after each change in the form (changing repo name, selecting org. unit) even if the new state is not ready for submitting and so the Finish button is disabled in the next moment. This results in a "blinking" effect, which is distracting and not expected.
* "Next" button is always enabled even if repository name is not valid or no org. unit is selected.

Version-Release number of selected component (if applicable):

How reproducible:
With ***asset management enabled*** only (you have to log in with kiemgmt role (+ additional role like admin).

Steps to Reproduce:
1. Go to Administration perspective, select Repositories -> New repository.
2. Check Managed Repository checkbox.
3. Select any org. unit.
4. Type some text into Repository Name field.
5. Select a different org unit.

Actual results:
* In step 2, Next button is enabled.
* In steps 4 and 5, Finish button will become enabled for a short period of time.

Expected results:
* Next button should only be enabled if the provided repository name is valid and existing org. unit is selected. 
* Finish button should not be enabled in the first step of the wizard when Managed Repository is checked. In the next step of the wizard, it should only be enabled after a change event that results in a state that is ready for submitting.

Additional info:
Comment 2 Jiri Locker 2015-11-18 04:37:20 EST
Works perfectly now. Great job, Walter!
Comment 3 Walter Medvedeo 2015-11-18 09:31:59 EST
Thanks, it's nice to see the BZ list decrease.

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