-
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
Enable Product check from @elastic/elasticsearch-js #107663
Merged
afharo
merged 27 commits into
elastic:master
from
afharo:test-es-client-product-check-behaviour
Aug 26, 2021
Merged
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
83d0a5c
Test Product check in @elastic/elasticsearch-js
afharo 75e047b
Remove skipProductCheck from @kbn/es. It shouldn't be needed anymore
afharo c9ccff1
@kbn/es's es_bin must cover the Product check request now
afharo 909d39b
Remove unused logger mock
afharo c4cd22b
Merge branch 'master' of github.com:elastic/kibana into test-es-clien…
afharo d737e9e
PR feedback
afharo 410f11f
Fix types
afharo 160b26e
Do not start SO Migrations if Kibana is shutting down
afharo 86ff0f0
Merge branch 'master' of github.com:elastic/kibana into test-es-clien…
afharo 0e777c8
Halt Kibana if Product Check error is found while starting
afharo 1335965
Cleanup unnecessary objects from tests
afharo c7395b9
Add logger.error test coverage
afharo 9e1df42
Explicitly emit all the errors to test that it only throws on Product…
afharo e99a786
Emit some random errors but not all to avoid Flaky tests
afharo fda3996
Update elasticsearch_service tests based on new usage
afharo 039493d
pollEsNodesVersion mocked to observable$ only on the specific logger …
afharo 94e3c26
Merge branch 'master' into test-es-client-product-check-behaviour
kibanamachine 098db80
Merge branch 'master' into test-es-client-product-check-behaviour
kibanamachine 31e6fdc
Add `skipStartupConnectionCheck` config so http integration tests do …
afharo c34f8aa
API doc changes
afharo a2c28fe
Update snapshots after config change
afharo 42da9cc
Skip ES validation on legacy/logging tests
afharo 9a4a210
Skip ES connection check in more integration tests that do not spin u…
afharo d4bb015
Add new `elasticsearch.skipStartupConnectionCheck` setting to kibana-…
afharo af9bc7d
Better API docs
afharo 36dc8d4
Merge branch 'master' of github.com:elastic/kibana into test-es-clien…
afharo 8f1d6a3
Allow `skipStartupConnectionCheck` only when running from source
afharo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...ver/kibana-plugin-core-server.elasticsearchconfig.skipstartupconnectioncheck.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: you can use
schena.never()
insteadkibana/src/plugins/maps_ems/config.ts
Lines 70 to 75 in 011955f
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.
makes sense! but then the types will be
skipStartupConnectionCheck?: boolean
, meaning that we'll haveundefined | false | true
, it doesn't change much of the behaviour/logic, but do we want those 3 states?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.
no, we don't. We can normalize them in
ElasticsearchConfig
: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 like it! The error message is not as self-explanatory, though:
as opposed to the current
If you think it's fine, I'm happy to change to
schema.never()
:)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.
Up to you
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'll leave it as is for now then, for consistency with other keys in the same Elasticsearch config (i.e.:
ignoreVersionMismatch
).I've created #110239 to follow up and change them all if we think
schema.never()
is a better approach.