Skip to content
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 button when adding a filter in Cloud Providers #142

Conversation

hstastna
Copy link

@hstastna hstastna commented Jan 12, 2017

fixing ManageIQ/manageiq#13219
and also
ManageIQ/manageiq#13195

Fix adding advanced search expression element by clicking
on commit button (or okay button) in Compute -> Clouds -> Providers.

@hstastna
Copy link
Author

@miq-bot add_label wip

@miq-bot miq-bot added the wip label Jan 12, 2017
@hstastna hstastna changed the title [WIP] Okay button advanced search cloud providers [WIP] Fix button when adding a filter in Cloud Providers Jan 12, 2017
@hstastna
Copy link
Author

if you look into the code, there will be question that if we should remove that whole line at all. I am not sure about that, because it doesn't work only in some places, so I added the condition there. @h-kataria could you please look at it? Thanks.

@miq-bot
Copy link
Member

miq-bot commented Jan 16, 2017

This pull request is not mergeable. Please rebase and repush.

@hstastna hstastna changed the title [WIP] Fix button when adding a filter in Cloud Providers Fix button when adding a filter in Cloud Providers Jan 16, 2017
@hstastna
Copy link
Author

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Jan 16, 2017
@hstastna hstastna force-pushed the Okay_button_Advanced_search_Cloud_Providers branch from 6974a13 to 83aeef3 Compare January 16, 2017 15:06
@dclarizio dclarizio added the bug label Jan 16, 2017
fixing ManageIQ/manageiq#13219

Fix adding advanced search expression element by clicking on
commit button (or okay button) in Compute -> Clouds -> Providers.
@hstastna hstastna force-pushed the Okay_button_Advanced_search_Cloud_Providers branch from 83aeef3 to 6cfb6e2 Compare January 17, 2017 14:44
@miq-bot
Copy link
Member

miq-bot commented Jan 17, 2017

Checked commit hstastna@6cfb6e2 with ruby 2.2.6, rubocop 0.46.0, and haml-lint 0.19.0
1 file checked, 2 offenses detected

app/controllers/application_controller/filter.rb

@mzazrivec mzazrivec added this to the Sprint 53 Ending Jan 30, 2017 milestone Jan 18, 2017
@mzazrivec mzazrivec merged commit 27b3103 into ManageIQ:master Jan 18, 2017
@h-kataria
Copy link
Contributor

upstream BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1414470

@simaishi
Copy link
Contributor

Euwe backport conflict:

$ git cherry-pick -x -e -m 1 -Xsubtree=/ 27b3103
error: could not apply 27b3103... Merge pull request #142 from hstastna/Okay_button_Advanced_search_Cloud_Providers
$ git diff
diff --cc app/controllers/application_controller/filter.rb
index d7e4124,05944ec..0000000
--- a/app/controllers/application_controller/filter.rb
+++ b/app/controllers/application_controller/filter.rb
@@@ -656,10 -306,8 +656,15 @@@ module ApplicationController::Filte
            add_flash(_("%{model} search \"%{name}\" was saved") %
              {:model => ui_lookup(:model => @edit[@expkey][:exp_model]),
               :name => @edit[:new_search_name]})
++<<<<<<< HEAD
 +          adv_search_build_lists
 +          # Save the last search loaded (saved)
 +          @edit[@expkey][:exp_last_loaded] = {:id => s.id, :name => s.name, :description => s.description, :typ => s.search_type}
 +          @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description]
++=======
+           @edit[@expkey].select_filter(s)
+           @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description] unless @edit[@expkey][:exp_last_loaded].nil?
++>>>>>>> 27b3103... Merge pull request #142 from hstastna/Okay_button_Advanced_search_Cloud_Providers
            @edit[@expkey][:expression] = copy_hash(@edit[:new][@expkey])
            # Build the expression table
            @edit[@expkey][:exp_table] = exp_build_table(@edit[@expkey][:expression])

@simaishi
Copy link
Contributor

@hstastna Please resolve conflict and make Euwe-specific PR (referencing this one) or suggest other PRs to backport.

@simaishi
Copy link
Contributor

Ah, this needs to be backported after #98. Will try again.

@hstastna
Copy link
Author

hstastna commented Jan 23, 2017

this PR resolves all the conflicts: ManageIQ/manageiq#13621

@simaishi
Copy link
Contributor

Backported to Euwe via ManageIQ/manageiq#13621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants