Skip to content

Document validateSource's rejection cases in index_data.painless - #1357

Merged
myronmarston merged 2 commits into
block:mainfrom
nikhilkumarjadhav-toast:document-validate-source-cases
Aug 19, 2026
Merged

Document validateSource's rejection cases in index_data.painless#1357
myronmarston merged 2 commits into
block:mainfrom
nikhilkumarjadhav-toast:document-validate-source-cases

Conversation

@nikhilkumarjadhav-toast

Copy link
Copy Markdown
Contributor

Summary

  • Adds a doc comment to validateSource — the one main function in index_data.painless without one — describing its two rejection cases (source-document identity change, stale/duplicate event version).
  • Comment-only change, no behavior change. Schema artifacts regenerated; INDEX_DATA_UPDATE_SCRIPT_ID rolled accordingly (same mechanics as index_data.painless script cleanup #1308).

Test plan

  • rake schema_artifacts:dump run twice — idempotent after the first dump
  • elasticgraph-schema_definition: static scripts, scripting, and update-targets specs — 134 examples, 0 failures
  • elasticgraph-indexer: update + datastore-indexing-router specs — 42 examples, 0 failures

Adds a doc comment to validateSource -- the one main function in the
script without one -- describing its two rejection cases. Comment-only
change, no behavior change. Schema artifacts regenerated and
INDEX_DATA_UPDATE_SCRIPT_ID rolled accordingly.
@myronmarston
myronmarston enabled auto-merge (squash) August 19, 2026 07:01
@myronmarston
myronmarston merged commit 3c40f6f into block:main Aug 19, 2026
16 checks passed
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.

2 participants