Skip to content

Add end-to-end acceptance tests for index inheritance#1167

Merged
myronmarston merged 2 commits intoblock:mainfrom
marcdaniels-toast:mdaniels/index-inheritance-acceptance-tests
May 6, 2026
Merged

Add end-to-end acceptance tests for index inheritance#1167
myronmarston merged 2 commits intoblock:mainfrom
marcdaniels-toast:mdaniels/index-inheritance-acceptance-tests

Conversation

@marcdaniels-toast
Copy link
Copy Markdown
Contributor

This focuses on just the acceptance test for index inheritance and was pulled from the larger PR #1150.

Updates the NamedInventor interface to use a shared index (with Person and Company inheriting it), adds acceptance tests covering __typename filtering at multiple levels of an abstract type hierarchy, and updates schema artifacts, settings, and test factories accordingly.

My goal with changing the NamedInventor tree to use index inheritance is now captured in the acceptance test named "supports querying a type that is both indexed (via interface inheritance) and embedded as a field on another type". We have that in record_preparer_spec.rb ("injects or omits __typename depending on whether the record's context requires it") but I thought it would be good to also cover this in the acceptance test.

Updates the NamedInventor interface to use a shared index (with Person and
Company inheriting it), adds acceptance tests covering __typename filtering
at multiple levels of an abstract type hierarchy, and updates schema
artifacts, settings, and test factories accordingly.

Generated with Claude Code
Comment thread elasticgraph-graphql/spec/acceptance/search_spec.rb Outdated
Co-authored-by: Myron Marston <myron.marston@gmail.com>
@myronmarston myronmarston enabled auto-merge (squash) May 6, 2026 04:31
@myronmarston myronmarston merged commit c38985d into block:main May 6, 2026
19 checks passed
@marcdaniels-toast marcdaniels-toast deleted the mdaniels/index-inheritance-acceptance-tests branch May 6, 2026 12:24
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