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

Hide Advanced Search in Config Mgmt Providers screen #6465

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Nov 29, 2019

Fixes BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1777493

This PR:

  • prevents one extra calling of replace_search_box method in ManagerControllerMixin in replace_right_cell method, especially for provider_foreman and automation_manager controllers - this change fixes appearing Adv Search in Config > Mgmt > Providers accordion which is not supported there, so it does not appear there anymore, and it works for any item in the tree in Providers accordion in the appropriate screen
  • adds replace_search_box method to infra_networking controllers to update_partials method where it is missing - according to the removing the method from ManagerControllerMixin => with such changes we avoid adding extra conditions in replace_right_cell in ManagerControllerMixin :) (in storage controller, no need to add replace_search_box, see the code)
  • fixes error (see the BZ) after clicking on another item in the tree, in Config > Mgmt > Providers accordion, by adding a condition to replace_search_box method (because doing anything with layouts/adv_search does not make sense if we don't want to render Adv Search at all, and locals[:nameonly] "decides" if Adv Search will or will not be displayed), also makes Search field to appear and work there
  • replaces a condition with provider_active_tree? where it is possible, in provider_foreman controller, to simplify the code little bit

Before:
Adv Search appears, after step 3 (see the BZ):
foreman-before1
After clicking on another item in accordion:
foreman-before2

After:
foreman-after1
foreman-after2

@hstastna
Copy link
Contributor Author

@miq-bot add_label bug

@hstastna hstastna force-pushed the Config_Managers_Ansible_Satellite_Adv_search branch 6 times, most recently from aa577d4 to 16392fb Compare November 29, 2019 16:00
@mzazrivec mzazrivec added the wip label Dec 2, 2019
@hstastna hstastna force-pushed the Config_Managers_Ansible_Satellite_Adv_search branch 2 times, most recently from 4edcfcf to e066278 Compare December 2, 2019 14:46
@miq-bot miq-bot added the bug label Dec 2, 2019
@hstastna hstastna changed the title [WIP] Hide Advanced Search in Config Mgmt Providers screen Hide Advanced Search in Config Mgmt Providers screen Dec 3, 2019
@miq-bot miq-bot removed the wip label Dec 3, 2019
@hstastna hstastna force-pushed the Config_Managers_Ansible_Satellite_Adv_search branch 3 times, most recently from 1af6313 to fff73a6 Compare December 10, 2019 13:31
@hstastna hstastna force-pushed the Config_Managers_Ansible_Satellite_Adv_search branch from fff73a6 to c3a2194 Compare January 2, 2020 11:19
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1777493

Prevent unnecessary call and fix appearing Adv Search in Config Mgmt
Providers accordion which is not supported there. Add replace_search_box
method to the two controllers to update_partials method where it is
missing.
@hstastna hstastna force-pushed the Config_Managers_Ansible_Satellite_Adv_search branch from c3a2194 to 65155b5 Compare January 8, 2020 10:06
@miq-bot
Copy link
Member

miq-bot commented Jan 8, 2020

Checked commits hstastna/manageiq-ui-classic@8b60627~...65155b5 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
9 files checked, 0 offenses detected
Everything looks fine. ⭐

@hstastna
Copy link
Contributor Author

@h-kataria @martinpovolny @ZitaNemeckova Could you, please, review this? Thanks in advance :)

@h-kataria h-kataria self-assigned this Jan 21, 2020
@h-kataria h-kataria added this to the Sprint 129 Ending Feb 3, 2020 milestone Jan 24, 2020
@h-kataria h-kataria merged commit f27b5d8 into ManageIQ:master Jan 24, 2020
simaishi pushed a commit that referenced this pull request Feb 21, 2020
…ite_Adv_search

Hide Advanced Search in Config Mgmt Providers screen

(cherry picked from commit f27b5d8)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1805804
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit e6f71862a14e1276633d2dd217bd1176acb1380f
Author: Harpreet Kataria <hkataria@redhat.com>
Date:   Thu Jan 23 20:03:13 2020 -0500

    Merge pull request #6465 from hstastna/Config_Managers_Ansible_Satellite_Adv_search

    Hide Advanced Search in Config Mgmt Providers screen

    (cherry picked from commit f27b5d8cb1f367a79624b48fe9d83a0f45c0e7ed)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1805804

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.

None yet

6 participants