plugin manager: add --level=[major|minor|patch] (default: minor)#16899
plugin manager: add --level=[major|minor|patch] (default: minor)#16899yaauie merged 6 commits intoelastic:mainfrom
--level=[major|minor|patch] (default: minor)#16899Conversation
|
Confirmed it works correctly: Vanilla 8.17.0 `bin/logstash-plugin update`Patched v8.17.0 `bin/logstash-plugin update`We can see in the second no major versions were upgraded. |
jsvd
left a comment
There was a problem hiding this comment.
I've confirmed the behavior works as expected, just missing docs in https://github.com/elastic/logstash/blob/main/docs/static/plugin-manager.asciidoc?plain=1#L102-L113
|
📃 DOCS PREVIEW ✨ https://logstash_bk_16899.docs-preview.app.elstc.co/diff |
| <1> updates all installed plugins | ||
| <2> updates only the plugin you specify | ||
|
|
||
| [NOTE] |
There was a problem hiding this comment.
I added this as an admonition because in the normal case users shouldn't need to concern themselves with this and will be happy to get the latest fully-compatible version available. It is rare that a user would want to jump across major versions of a plugin because we are taking care to backport non-breaking features and fixes to the previous minor.
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
|
📃 DOCS PREVIEW ✨ https://logstash_bk_16899.docs-preview.app.elstc.co/diff |
|
📃 DOCS PREVIEW ✨ https://logstash_bk_16899.docs-preview.app.elstc.co/diff |
|
📃 DOCS PREVIEW ✨ https://logstash_bk_16899.docs-preview.app.elstc.co/diff |
karenzone
left a comment
There was a problem hiding this comment.
I pasted in my original content, and it appears that you reproduced most of the changes in yours.
Remaining differences are:
- shorter anchor title
- wording tweaks
- removing hyphen from heading and text
Otherwise, LGTM
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
|
|
📃 DOCS PREVIEW ✨ https://logstash_bk_16899.docs-preview.app.elstc.co/diff |
💚 Build Succeeded
History
cc @yaauie |
|
@logstashmachine backport 8.x |
…16899) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5)
|
@logstashmachine backport 8.17 |
…16899) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5)
|
@logstashmachine backport 8.16 |
…16899) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5)
…16899) (#16973) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5) Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
…16899) (#16974) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5) Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
…16899) (#16975) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> (cherry picked from commit 6943df5) Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
…lastic#16899) * plugin manager: add `--level=[major|minor|patch]` (default: `minor`) * docs: plugin manager update `--level` behavior * Update docs/static/plugin-manager.asciidoc Co-authored-by: João Duarte <jsvd@users.noreply.github.com> * docs: plugin update major as subheading * docs: intention-first in major plugin updates * Update docs/static/plugin-manager.asciidoc Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com> --------- Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>





Release notes
--level=majorflag.What does this PR do?
Adds
--level=[major|minor|patch]to thebin/logstash-plugin updatecommand, with default valueminor, and propagates it to the underlying bundler's--major,--minor, or--patchflags, to ensure users can upgrade while avoiding breaking changes.Why is it important/What is the impact to the user?
Users are currently being surprised when their
bin/logstash-plugin updateconsumes breaking changes in plugins, causing their currently-valid pipeline configurations to fail to load. This removes the element of surprise, while still allowing users to upgrade across the major version of the plugins if they expressly wish to do so.Checklist
[ ] I have made corresponding change to the default configuration files (and/or docker env variables)closes: #16894