-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 for #7329 -- plugin versions updated #7747
Conversation
I think we definitely need to make this functionality dynamic in some way rather than hardcoding core plugin versions. |
i completely agree. suggestions ? |
Perhaps core plugins shouldn't have a version specified in their package.json at all, and it should just default to the version of kibana in the UI |
+1 |
…to reflect the change
@@ -16,6 +17,7 @@ module.exports = class ServerStatus { | |||
} | |||
|
|||
createForPlugin(plugin) { | |||
plugin.version = plugin.version || version; |
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 wonder if this is too loose? I like what it's enabling, but I wonder if the behavior should be explicit?
Instead of removing version
from every built-in plugin, just mark it with "version" : "kibana"
, or something similar, and use that to inherit Kibana's version. That way it at least implies to plugin authors that they should provide their own version number and not just make version irrelevant for every plugin ("oh, it always matches Kibana", which shouldn't be true for things that are compiled + released at the same time).
LGTM |
@ppisljar in the future, please try to get 2 official LGTM from Kibana engineers prior to merging a PR. |
sorry, will do. |
fix for elastic#7329 -- plugin versions updated Former-commit-id: eae294b
fix #7329
i just updated plugin versions in package.json file of each plugin.
i am not sure what @pickypg meant with his comment to issue ...
test just checks for kibana plugin to be present it doesn't check the version number.
anyway this feels a bit counter productive ...
maybe it would be better to update this versions from main package.json at the build time ?