Skip to content

Conversation

@jedrazb
Copy link
Contributor

@jedrazb jedrazb commented Jul 24, 2025

Summary

Verified locally that now Bad Request text is actually changed with the error body.message

@jedrazb
Copy link
Contributor Author

jedrazb commented Jul 24, 2025

/ci

@jedrazb jedrazb added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Jul 24, 2025
@jedrazb
Copy link
Contributor Author

jedrazb commented Jul 24, 2025

/ci

@jedrazb jedrazb marked this pull request as ready for review July 24, 2025 08:35
@jedrazb jedrazb requested a review from a team as a code owner July 24, 2025 08:35
Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

LGTM once moved to the right package

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 24, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #5 / APM API tests fleet/migration_check.spec.ts cloud no archive Fleet migration check - cloud has_cloud_agent_policy with Cloud agent policy "before all" hook for "should be true when cloud agent policy exists"
  • [job] [logs] FTR Configs #5 / APM API tests fleet/migration_check.spec.ts cloud no archive Fleet migration check - cloud has_cloud_agent_policy with Cloud agent policy "before all" hook for "should be true when cloud agent policy exists"
  • [job] [logs] FTR Configs #110 / Cloud Security Posture Agentless cloud Hyperlink on PostInstallation Modal should have the correct URL

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
onechat 401 403 +2

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/onechat-browser 1 2 +1

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
@kbn/onechat-browser 0 1 +1

Async chunks

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

id before after diff
onechat 588.7KB 588.8KB +171.0B
Unknown metric groups

API count

id before after diff
@kbn/onechat-browser 1 2 +1

History

@jedrazb
Copy link
Contributor Author

jedrazb commented Jul 24, 2025

@elasticmachine merge upstream

@jedrazb jedrazb self-assigned this Jul 24, 2025
@jedrazb jedrazb enabled auto-merge (squash) July 24, 2025 13:12
@jedrazb jedrazb merged commit bbe695b into elastic:main Jul 24, 2025
13 checks passed
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

- Add onechat-common method to extract actual error msg from the onechat
error object
- That impl was inspration
https://github.com/elastic/kibana/blob/main/src/core/packages/fatal-errors/browser-internal/src/get_error_info.ts#L15
(but it's private + contains some cases we don't care about)
- All onechat errors are instances of
[ServerSentEventError](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-sse-utils/src/errors.ts#L18)
and the default `err.message` property is not populated
- Update toasts 

Verified locally that now `Bad Request` text is actually changed with
the error body.message

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
eokoneyo pushed a commit to eokoneyo/kibana that referenced this pull request Jul 31, 2025
## Summary

- Add onechat-common method to extract actual error msg from the onechat
error object
- That impl was inspration
https://github.com/elastic/kibana/blob/main/src/core/packages/fatal-errors/browser-internal/src/get_error_info.ts#L15
(but it's private + contains some cases we don't care about)
- All onechat errors are instances of
[ServerSentEventError](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-sse-utils/src/errors.ts#L18)
and the default `err.message` property is not populated
- Update toasts 

Verified locally that now `Bad Request` text is actually changed with
the error body.message

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
## Summary

- Add onechat-common method to extract actual error msg from the onechat
error object
- That impl was inspration
https://github.com/elastic/kibana/blob/main/src/core/packages/fatal-errors/browser-internal/src/get_error_info.ts#L15
(but it's private + contains some cases we don't care about)
- All onechat errors are instances of
[ServerSentEventError](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-sse-utils/src/errors.ts#L18)
and the default `err.message` property is not populated
- Update toasts 

Verified locally that now `Bad Request` text is actually changed with
the error body.message

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants