-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Deprecate uninstall for Plugin Manager #6042
Conversation
@@ -25,7 +25,6 @@ gem "docker-api", "1.31.0", :group => :development | |||
gem "pleaserun" |
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.
ugh, not intentional
context "when the plugin isn't installed" do | ||
it "fails to remove it" do | ||
result = logstash.run_command_in_path("bin/logstash-plugin remove logstash-filter-qatest") | ||
expect(result.stderr).to match(/ERROR: Uninstall Aborted, message: This plugin has not been previously installed, aborting/) |
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.
Uninstall Aborted
-> Remove Aborted
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.
Fixed
expect(logstash).to have_installed?("logstash-filter-qatest") | ||
|
||
result = logstash.run_command_in_path("bin/logstash-plugin remove logstash-filter-qatest") | ||
expect(result.stdout).to match(/^Uninstalling logstash-filter-qatest/) |
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.
Uninstalling
-> Removing
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.
Fixed
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.
Minor issues that will likely prevent it from building, but otherwise LGTM.
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.
Just a simple comment to make sure we don't have any duplicated code around. Other than that it look good to me.
@@ -1,13 +1,16 @@ | |||
# encoding: utf-8 |
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.
Maybe we could make the uninstall inherits the remove command, override #execute
and call super? This would make sure don't have any duplicated code around.
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 just want to have something real quick for 5.0. I understand it is dup code, but I don't want to break stuff
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.
Good for me, we will remove it in 5.1? correct?
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.
yes
LGTM |
Adds remove and deprecates uninstall Fixes elastic#6041
Adds remove and deprecates uninstall to be consistent with rest of Elastic stack
Fixes #6041