You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 72791e3
Browse filesBrowse the repository at this point in the historyBrowse files
Type runtime metadata extension refs as a record (#1432)
## Why
Runtime metadata stores each extension as a ref hash with `name`,
`require_path`, and, for an extension with options, a nested `config`
hash. The RBS signatures type these refs as `Hash[String, String]`,
which is wrong whenever `config` is present. #1424 registers an indexer
extension with a nested `config`, which exposes the wrong type.
## What
- Add an `extensionRefHash` record type: required `name` and
`require_path`, optional `config`.
- Use it for `ComponentExtension`, `GraphQLResolver`, and the scalar
coercion adapter and indexing preparer refs.
- Rewrite `Extension#to_dumpable_hash` so Steep can check it against the
record. Its output does not change.
## Risk
Low. The PR changes type signatures and rewrites one method without
changing its output.
## Testing
No manual testing.
## Bigger picture
Second of three stacked PRs, on top of #1431. It moves out of #1424 so
that #1424 only touches elasticgraph-proto_ingestion.
0 commit comments