Skip to content

Conversation

@afharo
Copy link
Member

@afharo afharo commented Jan 19, 2021

Summary

This PR migrates all the functional tests owned by @elastic/kibana-core from legacyEs to the service es. At the same time, it migrates them from .js to .ts to help with types in the future.

Resolves #72442.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@afharo afharo added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Jan 19, 2021
@afharo
Copy link
Member Author

afharo commented Jan 20, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

merge conflict between base and head

@afharo afharo force-pushed the functional-tests/migrateToNewEsClient branch from 07a3a36 to 2a45520 Compare January 20, 2021 08:26
@afharo afharo marked this pull request as ready for review January 20, 2021 10:21
@afharo afharo requested a review from a team January 20, 2021 10:48
)
.expect(400)
.then((resp) => {
// eslint-disable-next-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this console.log? For what purpose? @rudolf as one of the logs added in #44143

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log line I added was just for debugging so it shouldn't have been commited.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove them then. Thanks for confirming!

*/
function flatKeys(source) {
const recursivelyFlatKeys = (obj, path = [], depth = 0) => {
function flatKeys(source: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Record or object instead of any?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Changed!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@afharo afharo merged commit ee5f560 into elastic:master Jan 20, 2021
@afharo afharo deleted the functional-tests/migrateToNewEsClient branch January 20, 2021 15:30
afharo added a commit to afharo/kibana that referenced this pull request Jan 20, 2021
jportner added a commit to jportner/kibana that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v7.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt platform functional tests to the new ES client

4 participants