-
Notifications
You must be signed in to change notification settings - Fork 357
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 filters in config mgmt Configured systems #776
Fix filters in config mgmt Configured systems #776
Conversation
@miq-bot add_label bug, ui |
@hstastna Cannot apply the following label because they are not recognized: ui |
c1cf869
to
d214039
Compare
builder = TreeBuilder.class_for_type(tree_type) | ||
tree = builder.new(x_active_tree, tree_type, @sb) | ||
end | ||
if "configuration_manager_cs_filter_tree" == x_active_tree.to_s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this has been there before, but I'd much rather see:
if x_active_tree.to_s == "configuration_manager_cs_filter_tree"
@@ -450,7 +450,7 @@ def adv_search_button | |||
if ["delete", "saveit"].include?(params[:button]) | |||
if @edit[:in_explorer] || x_active_tree == :storage_tree | |||
tree_name = x_active_tree.to_s | |||
if "configuration_manager_cs_filter_tree_tree" == tree_name | |||
if "configuration_manager_cs_filter_tree" == tree_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
d214039
to
331b07d
Compare
For some reason, when I click on the created filter, I get this error:
|
331b07d
to
345bc68
Compare
345bc68
to
4aeafdb
Compare
4aeafdb
to
8750f10
Compare
@mzazrivec I have rebased and repushed this PR and before that I have tested my changes again and using different databases and for me it all works perfectly all the time. Do you still get the error? |
This pull request is not mergeable. Please rebase and repush. |
e606162
to
bc4a4bc
Compare
908afb0
to
a8f850f
Compare
I see the problem I reported above still present:
|
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1429519 Fix saving a new filter in expression editor in Configuration -> Management -> Configured systems and enable displaying flash message about successful saving. Fix disappearing tree view after saving a filter. Enable displaying name of a filter under Global/My Filters in tree view.
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1429519 Fix applying selected filter from Global/My Filters in accordion when clicking on the name of a filter in Configuration -> Management -> Configured systems. Fix disappearing of tree view when deleting loaded filter in expression editor.
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1429519 Fix error which occured after selecting a filter from Global/My Filters in accordion when clicking on the name of a filter in Configuration -> Management -> Configured systems because of wrong id format which had to be uncompressed before using in listnav_search_selected method.
a8f850f
to
3ae3b9c
Compare
@mzazrivec I added another commit to this PR to fix the error you have mentioned. Now it works well. |
Checked commits hstastna/manageiq-ui-classic@531ac1a~...3ae3b9c with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Fix filters in config mgmt Configured systems (cherry picked from commit 96631ab) https://bugzilla.redhat.com/show_bug.cgi?id=1460792
Fine backport details:
|
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1429519
Fix saving a new filter in expression editor
in Configuration -> Management -> Configured systems
and enable displaying flash message about successful saving.
Fix disappearing tree view after saving a filter.
Enable displaying name of a filter under Global/My Filters
in tree view.
Fix applying selected filter from Global/My Filters
in accordion when clicking on the name of a filter.
Fix disappearing of tree view when deleting loaded
filter in expression editor.
Before:
After: