Skip to content

🌊 Fix validation for partially invalid streamlang steps#245367

Merged
flash1293 merged 1 commit intoelastic:mainfrom
flash1293:flash1293/fix-validation-bug
Dec 5, 2025
Merged

🌊 Fix validation for partially invalid streamlang steps#245367
flash1293 merged 1 commit intoelastic:mainfrom
flash1293:flash1293/fix-validation-bug

Conversation

@flash1293
Copy link
Copy Markdown
Contributor

This PR fixes the problem that after adding a condition, it's not possible to add more processors anymore.

This happened because isWhereBlockSchema would return false for a well-formed where-block if it contains an invalid processor, which is the case when adding a new processor (because the default grok state has an empty field name, which is not valid as per the schema). This broke the validation logic.

By using isWhereBlock it makes the check cheaper and also doesn't fail on invalid children. Also added a test for this.

@flash1293 flash1293 requested a review from a team as a code owner December 5, 2025 11:13
@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:obs-onboarding Observability Onboarding Team Feature:Streams This is the label for the Streams Project v9.3.0 labels Dec 5, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-onboarding-team (Team:obs-onboarding)

Copy link
Copy Markdown
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

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

Tested locally, the issue is gone ✨

@gbamparop gbamparop added the bug Fixes for quality problems that affect the customer experience label Dec 5, 2025
@flash1293 flash1293 enabled auto-merge (squash) December 5, 2025 11:46
@flash1293 flash1293 merged commit 338577a into elastic:main Dec 5, 2025
27 checks passed
@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 1.1MB 1.1MB -48.0B

cc @flash1293

wildemat pushed a commit to wildemat/kibana that referenced this pull request Dec 5, 2025
This PR fixes the problem that after adding a condition, it's not
possible to add more processors anymore.

This happened because `isWhereBlockSchema` would return false for a
well-formed where-block if it contains an invalid processor, which is
the case when adding a new processor (because the default grok state has
an empty field name, which is not valid as per the schema). This broke
the validation logic.

By using `isWhereBlock` it makes the check cheaper and also doesn't fail
on invalid children. Also added a test for this.
JordanSh pushed a commit to JordanSh/kibana that referenced this pull request Dec 9, 2025
This PR fixes the problem that after adding a condition, it's not
possible to add more processors anymore.

This happened because `isWhereBlockSchema` would return false for a
well-formed where-block if it contains an invalid processor, which is
the case when adding a new processor (because the default grok state has
an empty field name, which is not valid as per the schema). This broke
the validation logic.

By using `isWhereBlock` it makes the check cheaper and also doesn't fail
on invalid children. Also added a test for this.
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 bug Fixes for quality problems that affect the customer experience Feature:Streams This is the label for the Streams Project release_note:skip Skip the PR/issue when compiling release notes Team:obs-onboarding Observability Onboarding Team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants