Skip to content

[Discover][Tabs] Unsaved changes changes#12

Closed
kertal wants to merge 61 commits into
davismcphee:discover-tabs-saving-pocfrom
kertal:discover-tabs-unsaved-changes-changes
Closed

[Discover][Tabs] Unsaved changes changes#12
kertal wants to merge 61 commits into
davismcphee:discover-tabs-saving-pocfrom
kertal:discover-tabs-unsaved-changes-changes

Conversation

@kertal
Copy link
Copy Markdown

@kertal kertal commented Aug 18, 2025

Summary

Not to be merged ,but I was playing with the unsaved changes indication, and thing we should move forward enhancing internal state to track the persisted and the updated Discover session, which would allow us simple change dedection, and would help us to get rid of the SavedSearch container

Partly works

CleanShot 2025-08-18 at 09 00 02

FYI @davismcphee @jughosta

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

userId: undefined,
spaceId: undefined,
persistedDiscoverSession: undefined,
editedDiscoverSession: undefined,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the main change, this should be updated on every relevant change on the personable part of Discover state, a.k.a Discover session. very simple change detection with this

@kertal kertal changed the title [Discover][Tabs] [Discover][Tabs] Unsaved changes changes Aug 18, 2025
@davismcphee davismcphee force-pushed the discover-tabs-saving-poc branch from cb1d075 to 4b41136 Compare August 25, 2025 00:49
@kertal
Copy link
Copy Markdown
Author

kertal commented Sep 19, 2025

not necessary because the maestro was working on it and will merge it 🥳

@kertal kertal closed this Sep 19, 2025
davismcphee pushed a commit that referenced this pull request May 26, 2026
## Summary

Set `connect.timeout = 60s` on the undici `Agent` used by
`KbnClientRequester` (https path only).

## Why

elastic#268531 migrated `KbnClient` from axios to native fetch but did not
override undici's 10s `connect.timeout` default. Axios had no equivalent
cutoff, so FTR callers talking to a busy local Kibana started failing
once that PR landed.

The `kibana-streams-performance` weekly pipeline went red in builds #9,
#11, #12, and #13 with:

```
ConnectTimeoutError: Connect Timeout Error (attempted address: localhost:5620, timeout: 10000ms)
```

The `10000ms` is undici's default. Bisect: build #8 last green
(2026-05-11) → #9 first red (2026-05-18), with elastic#268531 in the window.

## What changed


`src/platform/packages/shared/kbn-kbn-client/src/kbn_client/kbn_client_requester.ts`:
one constant, one option on the https `Agent`. http branch unchanged.

## Related

Regression introduced in elastic#268531. Companion streams perf PR: elastic#270636.

## Validation

https://buildkite.com/elastic/kibana-streams-performance/builds/14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants