Commit f33ac5e
feat(data-modeling): implement automatic relationship inference algorithm COMPASS-9776 (#7275)
* feat(data-modeling): implement automatic relationship inference algorithm
* chore(data-service, data-modeling): add proper support for indexes full option; gate automatic inference with a feature flag
* chore(data-modeling): add method description; add unit tests
* chore(data-modeling): fix type in test
* chore(data-modeling): filter out nullish values from the sample; fix logid
* chore(data-modeling): more comments
* chore(data-modeling): adjust wording
Co-authored-by: Anna Henningsen <[email protected]>
Co-authored-by: Rhys <[email protected]>
* chore(data-modeling): do not allow multiple analysis to run at the same time
* fix(data-service): make sure that _getOptionsWithFallbackReadPreference works with no options provided
* chore(data-modeling): convert traverse to a generator function
* chore(data-modeling): better comment
* chore(data-service): improve _getOptionsWithFallbackReadPreference types
Co-authored-by: Anna Henningsen <[email protected]>
* chore(data-modeling): do not filter out id fields with matching types during relationship discovery
---------
Co-authored-by: Anna Henningsen <[email protected]>
Co-authored-by: Rhys <[email protected]>1 parent 055602b commit f33ac5e
File tree
8 files changed
+598
-77
lines changed- packages
- compass-data-modeling/src
- components
- store
- compass-preferences-model/src
- data-service/src
8 files changed
+598
-77
lines changedLines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| 228 | + | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| 319 | + | |
315 | 320 | | |
316 | 321 | | |
317 | | - | |
318 | 322 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 323 | | |
| 324 | + | |
| 325 | + | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| |||
509 | 514 | | |
510 | 515 | | |
511 | 516 | | |
| 517 | + | |
| 518 | + | |
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
| |||
Lines changed: 101 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
| |||
146 | 162 | | |
147 | 163 | | |
148 | 164 | | |
149 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
150 | 181 | | |
151 | 182 | | |
152 | 183 | | |
153 | | - | |
| 184 | + | |
154 | 185 | | |
155 | 186 | | |
156 | 187 | | |
| |||
161 | 192 | | |
162 | 193 | | |
163 | 194 | | |
164 | | - | |
165 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
166 | 198 | | |
167 | 199 | | |
168 | | - | |
| 200 | + | |
169 | 201 | | |
170 | 202 | | |
| 203 | + | |
171 | 204 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 205 | + | |
176 | 206 | | |
177 | 207 | | |
178 | 208 | | |
| |||
194 | 224 | | |
195 | 225 | | |
196 | 226 | | |
197 | | - | |
| 227 | + | |
198 | 228 | | |
199 | 229 | | |
200 | 230 | | |
201 | | - | |
202 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
203 | 278 | | |
204 | 279 | | |
205 | 280 | | |
206 | 281 | | |
207 | 282 | | |
208 | 283 | | |
209 | 284 | | |
210 | | - | |
211 | | - | |
| 285 | + | |
| 286 | + | |
212 | 287 | | |
213 | 288 | | |
214 | 289 | | |
215 | | - | |
216 | | - | |
| 290 | + | |
| 291 | + | |
217 | 292 | | |
218 | 293 | | |
219 | 294 | | |
| |||
229 | 304 | | |
230 | 305 | | |
231 | 306 | | |
232 | | - | |
| 307 | + | |
233 | 308 | | |
234 | 309 | | |
235 | | - | |
| 310 | + | |
236 | 311 | | |
237 | 312 | | |
238 | 313 | | |
239 | | - | |
240 | | - | |
241 | | - | |
| 314 | + | |
242 | 315 | | |
243 | 316 | | |
244 | 317 | | |
245 | 318 | | |
246 | | - | |
247 | | - | |
| 319 | + | |
| 320 | + | |
248 | 321 | | |
249 | 322 | | |
250 | 323 | | |
| |||
255 | 328 | | |
256 | 329 | | |
257 | 330 | | |
258 | | - | |
| 331 | + | |
259 | 332 | | |
260 | 333 | | |
261 | 334 | | |
| |||
0 commit comments