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

[React@18 failing tests] Dataset quality handles user privileges #197830

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Oct 25, 2024

Summary

Similar to #196384 another test on dataset quality page started failing with React@18.

Looks like the failure is similar as there is inifite re-render now with React@18, but not with React@17. I, unfortunatly, can't explain why it breaks :(

@Dosant Dosant added release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 25, 2024
@Dosant Dosant marked this pull request as ready for review October 25, 2024 15:05
@Dosant Dosant requested a review from a team as a code owner October 25, 2024 15:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #88 / Spaces app (with solution view) space solution tour solution tour does not show the solution tour after deleting spaces and leave only the default

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
datasetQuality 249.1KB 249.2KB +43.0B

Copy link
Contributor

@awahab07 awahab07 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing it.

Looks like useObservable does not treat the initializer arguments as react does with useState where the initializer argument is ignored after the initial render. docs

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Oct 25, 2024
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@Dosant Dosant merged commit 4d36994 into elastic:main Oct 25, 2024
32 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11521840046

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Oct 25, 2024
#197830) (#197872)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18 failing tests] Dataset quality handles user privileges
(#197830)](#197830)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2024-10-25T16:21:28Z","message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability"],"title":"[React@18
failing tests] Dataset quality handles user
privileges","number":197830,"url":"https://github.com/elastic/kibana/pull/197830","mergeCommit":{"message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197830","number":197830,"mergeCommit":{"message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants