Commit eac440b
committed
Address more PR review feedback on GraphQL::Schema::Type helpers
- `source_type`: use `defined?(@source_type)` pattern to correctly memoize
nil return values (||= doesn't memoize nil)
- Rename `non_subtypes_in_shared_index` → `concrete_non_subtypes_in_shared_index`
to make explicit that abstract types are excluded from the result
- Tests: add a second sibling type so at least one test returns multiple
elements, making it harder for a partial implementation to pass
Generated with Claude Code1 parent 2445473 commit eac440b
3 files changed
Lines changed: 24 additions & 12 deletions
File tree
- elasticgraph-graphql
- lib/elastic_graph/graphql/schema
- sig/elastic_graph/graphql/schema
- spec/unit/elastic_graph/graphql/schema
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | | - | |
| 796 | + | |
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
| 807 | + | |
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
813 | 818 | | |
814 | 819 | | |
815 | 820 | | |
| |||
831 | 836 | | |
832 | 837 | | |
833 | 838 | | |
834 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
835 | 843 | | |
836 | 844 | | |
837 | 845 | | |
838 | 846 | | |
839 | 847 | | |
840 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
841 | 852 | | |
842 | 853 | | |
843 | 854 | | |
844 | | - | |
| 855 | + | |
845 | 856 | | |
846 | 857 | | |
847 | 858 | | |
| |||
0 commit comments