Skip to content
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 import_saved_objects_between_versions.ts FTR test #122243

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

pgayvallet
Copy link
Contributor

Summary

Fix #121968

@pgayvallet pgayvallet added release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0 v8.1.0 labels Jan 4, 2022
@pgayvallet pgayvallet marked this pull request as ready for review January 4, 2022 14:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Comment on lines +30 to +33
const count = Number.parseInt(parts[1], 10);
if (count === 0) {
throw new Error('text not loaded yet');
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The new failure occurs because before the ajax calls are performed, the label displays exports 0 objects. We're now waiting until the end of the call by checking that the numeric value is not zero (there will always be at least one object in the table, as the config object is present)

@pgayvallet pgayvallet requested a review from a team January 4, 2022 14:06
@pgayvallet
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@pgayvallet pgayvallet added the auto-backport Deprecated - use backport:version if exact versions are needed label Jan 10, 2022
@pgayvallet pgayvallet merged commit 389a87d into elastic:main Jan 10, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 10, 2022
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 389a87d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 10, 2022
…22553)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 389a87d)

Co-authored-by: Pierre Gayvallet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0 v8.1.0
Projects
None yet
5 participants