-
Notifications
You must be signed in to change notification settings - Fork 987
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
Fixes #20105 - index search not retained after deleting host #4969
Fixes #20105 - index search not retained after deleting host #4969
Conversation
Issues: #20105 |
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.
This works when deleting a host from the hosts index page, but breaks when deleting a host from the host show page. Also note that a test is failing - which tests this behavior exactly.
6de4e24
to
cb0ef13
Compare
cb0ef13
to
accb224
Compare
@kgaikwad a different test seems to be failing now, can you please take a look? |
@tbrisker , |
[test foreman] |
accb224
to
1305815
Compare
@tbrisker,
|
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.
thanks for your patch two questions:
- why is this file in the host_details concern? I think it should be in the host controller?
- can you please add tests to demonstrate the various conditions you are targeting?
thanks!
Yes, your right! It should be in host controller. But when I tried to put method
ok, I will add more tests and will update the PR. |
1305815
to
9b776d7
Compare
@kgaikwad, could you rebase pls? |
9b776d7
to
95369fe
Compare
@kgaikwad can you rebase this? |
95369fe
to
929a26d
Compare
Test failure seems irrelevant to this pull-request. Any suggestions?
|
I'm looking to move forward on Katello/katello#7671 and that needs to start here :) |
929a26d
to
32e50a1
Compare
@jturel, @tbrisker , Test failure with error - Capybara::ElementNotFound: Unable to find link "Interfaces"...
|
32e50a1
to
8a9212f
Compare
[test foreman] |
8a9212f
to
4f69608
Compare
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.
@kgaikwad test failures seems unrelated and it fixes the issue for single host deletion. The original bug though asked for keeping the filter for bulk deletion I believe. I think the similar change should happen for submit_multiple_destroy
controller action. The only change required is needed at https://github.com/theforeman/foreman/pull/4969/files#diff-1339af15c5b21b5bc6e557bbbda860c6R530, instead of redirect_to(hosts_path)
you need to redirect_to(saved_redirect_url_or(send("#{controller_name}_url")))
I'm happy to merged then.
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.
ACK pending jenkins
Thank you @kgaikwad, I'm happy for this to be merged, sorry for long waiting time. |
As hosts controller extension file is available in katello project, created PR-7047.