Skip to content

[8.x] 🌊 Streams - Better error handling#211288

Merged
flash1293 merged 3 commits intoelastic:8.xfrom
flash1293:backport/8.x/pr-211197
Feb 18, 2025
Merged

[8.x] 🌊 Streams - Better error handling#211288
flash1293 merged 3 commits intoelastic:8.xfrom
flash1293:backport/8.x/pr-211197

Conversation

@flash1293
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

In a bunch of places we would directly show `error.message` in toasts.
This is not always the right value, because the actual error is
sometimes wrapped in an HttpError. At some places we would already
unpack this correctly using a helper function - I made sure it's used
everywhere.

One example where this can be tested is when trying to map a child in an
incompatible way - let's say a field is mapped as long in
`logs.child.subchild`, then the user tries to map the same field as
keyword in `logs.child`. Previously it would just say "BadRequest", now
it says:
<img width="378" alt="Screenshot 2025-02-14 at 15 02 53"
src="https://github.com/user-attachments/assets/0abb51db-2bac-407e-bb51-beb74b3f9adb"
/>

(cherry picked from commit 0a50f77)

# Conflicts:
#	x-pack/solutions/observability/plugins/streams_app/public/components/schema_editor/hooks/use_schema_fields.ts
@flash1293 flash1293 added the backport This PR is a backport of another PR label Feb 14, 2025
@flash1293 flash1293 enabled auto-merge (squash) February 18, 2025 09:43
@flash1293 flash1293 merged commit 9c7c4da into elastic:8.x Feb 18, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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
streamsApp 279.9KB 279.9KB -60.0B

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants