Commit 898d197
committed
Address review feedback on JSON ingestion spec migration
- Trim the JSON-schema-versioning scenarios from the core `rake_tasks_spec`
that are now covered by `schema_artifact_manager_extension_spec` in
`elasticgraph-json_ingestion`, and remove the helpers that only those
scenarios used.
- Replace the core coverage those scenarios provided with focused unit specs:
the `deleted_type`/`deleted_field`/`renamed_from` registration DSL,
`FieldPath#fully_qualified_path_in_index`, and the test-support behavior
when a schema sets its own JSON schema version.
- Make `doc_comment` load-bearing in the wrapper equality specs by adding
cases that differ only in `doc_comment`.
- Assert on observable behavior instead of `singleton_class.ancestors` in
the blockless-element extension spec.
- Explain why `unresolved_type_ref` uses a stand-in.1 parent 7a66830 commit 898d197
6 files changed
Lines changed: 135 additions & 519 deletions
File tree
- elasticgraph-json_ingestion/spec/unit/elastic_graph/json_ingestion/schema_definition
- indexing
- schema_elements
- elasticgraph-schema_definition/spec
- integration/elastic_graph/schema_definition
- unit/elastic_graph/schema_definition
- graphql_schema
- schema_elements
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
80 | 93 | | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| |||
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
96 | 114 | | |
| 115 | + | |
97 | 116 | | |
98 | 117 | | |
99 | 118 | | |
| |||
120 | 139 | | |
121 | 140 | | |
122 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
123 | 145 | | |
124 | 146 | | |
125 | 147 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
| |||
0 commit comments