Commit a4c11ad
`findReferencesToMeta` — the admin "Used by" panel behind
`GET /api/v1/meta/:type/:name/references` — was driven by a hand-curated
table of 7 target types and 40 dotted paths. Measured against the schemas
it claimed to describe, 34 of the 40 named properties no metadata type
declares, leaving 5 of its 7 target keys answering `{ references: [] }`
unconditionally while appearing covered. The panel's empty state reads
"Nothing in the metadata graph points at this item. Safe to delete."
Coverage is now derived at boot from `DEFAULT_METADATA_TYPE_REGISTRY` and
each type's schema, in the shape #7894 used for the URL-spelling map, so a
newly declared type arrives covered. The unit of derivation is a PROPERTY,
not a path: recursive containers (app navigation) make an exhaustive path
list unbounded, and the walk reports where the name was actually found.
No wire change: response shape, status codes and error envelope untouched.
Claude-Session: https://claude.ai/code/session_01NTKPDRoynY8i3HmdSFUxFj
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 326f5de commit a4c11ad
8 files changed
Lines changed: 1036 additions & 178 deletions
File tree
- .changeset
- packages
- metadata-protocol/src
- objectql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 38 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
217 | 224 | | |
218 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
219 | 230 | | |
220 | 231 | | |
221 | 232 | | |
| |||
239 | 250 | | |
240 | 251 | | |
241 | 252 | | |
242 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
243 | 260 | | |
244 | | - | |
245 | | - | |
246 | | - | |
| 261 | + | |
| 262 | + | |
247 | 263 | | |
| 264 | + | |
248 | 265 | | |
249 | 266 | | |
250 | 267 | | |
251 | 268 | | |
252 | 269 | | |
253 | | - | |
| 270 | + | |
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
| |||
267 | 284 | | |
268 | 285 | | |
269 | 286 | | |
270 | | - | |
| 287 | + | |
271 | 288 | | |
272 | 289 | | |
273 | 290 | | |
| |||
286 | 303 | | |
287 | 304 | | |
288 | 305 | | |
289 | | - | |
| 306 | + | |
290 | 307 | | |
291 | 308 | | |
292 | 309 | | |
| |||
300 | 317 | | |
301 | 318 | | |
302 | 319 | | |
303 | | - | |
| 320 | + | |
304 | 321 | | |
305 | 322 | | |
306 | 323 | | |
307 | 324 | | |
308 | 325 | | |
309 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
310 | 333 | | |
311 | 334 | | |
312 | | - | |
| 335 | + | |
313 | 336 | | |
314 | 337 | | |
Lines changed: 34 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
434 | 440 | | |
435 | 441 | | |
436 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
437 | 450 | | |
438 | | - | |
| 451 | + | |
439 | 452 | | |
440 | 453 | | |
441 | 454 | | |
442 | 455 | | |
443 | 456 | | |
444 | | - | |
| 457 | + | |
445 | 458 | | |
446 | 459 | | |
447 | 460 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
455 | 469 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
461 | 477 | | |
462 | 478 | | |
463 | 479 | | |
464 | 480 | | |
465 | 481 | | |
466 | | - | |
467 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
468 | 486 | | |
469 | 487 | | |
470 | 488 | | |
| |||
0 commit comments