-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Enterprise Search] Error on version mismatches #119101
[Enterprise Search] Error on version mismatches #119101
Conversation
bd93957
to
6dfb918
Compare
6dfb918
to
54fd1ae
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.
The logic looks sound to me. Worth having someone in Workplace Search take a glance, too.
We should flag this for light manual testing once the 8.0 BC is available.
@@ -68,6 +68,8 @@ export const callEnterpriseSearchConfigAPI = async ({ | |||
warnMismatchedVersions(data?.version?.number, log); | |||
|
|||
return { | |||
enterpriseSearchVersion: data?.version?.number, | |||
kibanaVersion: kibanaPackageJson.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.
Minor optional nit, feel free to ignore: warnMismatchedVersions
above could be modified to take a kibanaVersion
, so it doesn't have to know to look at kibanaPackageJson.version
itself.
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.
Workplace Search changes LGTM
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
This PR changes the Enterprise Search plugin to show an error message if the Kibana and Enterprise Search major and minor versions do not match.
When testing this, be sure to test entering the plugin via the Enterprise Search, App Search, and Workplace Search links. It's also worthwhile to try deep linking into the product as well. In all cases, a user should be presented the error message and prevented from using the plugin.
Checklist
Delete any items that are not applicable to this PR.
For maintainers