-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix creating a group after validation message 'already exists' #5354
Merged
mzazrivec
merged 1 commit into
ManageIQ:master
from
hstastna:Cannot_create_group_already_exist
Mar 20, 2019
Merged
Fix creating a group after validation message 'already exists' #5354
mzazrivec
merged 1 commit into
ManageIQ:master
from
hstastna:Cannot_create_group_already_exist
Mar 20, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@miq-bot add_label bug, hammer/yes |
Checked commit hstastna@7090474 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@lpichler, what do you think about the fix? Thanks! 🎇 |
@miq-bot add_label gaprindashvili/yes |
hstastna
pushed a commit
to hstastna/manageiq-ui-classic
that referenced
this pull request
Mar 20, 2019
hstastna
pushed a commit
to hstastna/manageiq-ui-classic
that referenced
this pull request
Mar 21, 2019
hstastna
pushed a commit
to hstastna/manageiq-ui-classic
that referenced
this pull request
Mar 21, 2019
1 task
simaishi
pushed a commit
that referenced
this pull request
May 21, 2019
Fix creating a group after validation message 'already exists' (cherry picked from commit 8b2f589) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1712440
Hammer backport details:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue:
#5140
BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1690889
What:
Fix creating a group (Configuration > Access Control > Groups) for the second time, after a validation message like 'Description is not unique...' appears.
Steps to reproduce:
=> error flash message occurs
=> nothing happens in the UI + error:
TODO:
Note:
This issue is also present in the latest
gaprindashvili
andhammer
branches.Details:
In
rbac_group_set_record_vars
method, in https://github.com/ManageIQ/manageiq-ui-classic/pull/5354/files#diff-8078c760e06b820719715450b2a112e0L1203,@edit[:new][:filter_expression]
was set tonil
, so then inrbac_group_validate?
method, in https://github.com/ManageIQ/manageiq-ui-classic/pull/5354/files#diff-8078c760e06b820719715450b2a112e0L1377 a problem occurred, becauseempty?
does not work withnil
, obviously. Also setting@edit[:new][:filter_expression]
tonil
is in conflict with what is in https://github.com/ManageIQ/manageiq-ui-classic/pull/5354/files#diff-8078c760e06b820719715450b2a112e0L1111 where we set it to{}
.Step 3 from steps to reproduce:
![step3](https://user-images.githubusercontent.com/13417815/54623558-0b6b1000-4a6c-11e9-9fcf-cd2e6a1369d8.png)
Before: (nothing happens after clicking on Add button, test2 group is not saved properly)
![test_before](https://user-images.githubusercontent.com/13417815/54623851-9f3cdc00-4a6c-11e9-9fc9-e848c4e017eb.png)
After:(test2 group saved without any problems, flash message appears)
![test_after](https://user-images.githubusercontent.com/13417815/54623536-fbebc700-4a6b-11e9-9a59-32327169f9bb.png)