Commit 81fcd33
fix(objectql): respect packageId filter when merging MetadataService items in getMetaItems
When protocol.getMetaItems() was called with a packageId filter,
SchemaRegistry.listItems() correctly filtered by package, but the
subsequent MetadataService.list() merge added ALL runtime items from
ALL packages without filtering. This caused the Studio sidebar to
show the same objects regardless of which package was selected.
Now both protocol.getMetaItems() and HttpDispatcher.handleMetadata()
filter MetadataService items by _packageId when a package scope is
requested.
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/2c649f38-8bbb-4a1e-ac27-6c8f2994cab2
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>1 parent 7dc86cc commit 81fcd33
3 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
538 | 543 | | |
539 | 544 | | |
540 | 545 | | |
| |||
0 commit comments