Repository navigation
Commit 3b1ea58
fix(mcp): ignore ::missed shadow rows when resolving a db's project name
The miss-graph pass inserts a second `projects` row ("<name>::missed")
so its nodes satisfy the FK on nodes.project. Since DeusData#704,
db_internal_project_name required the projects table to hold exactly
one row, so any project with a miss graph vanished from list_projects
and the graph UI, and the fallback-scan resolve path failed — the
index looked empty while fully present.
Filter out internal shadow rows (names containing "::") and require
exactly one primary row instead. Adds a reproduce-first regression
test modeled on the DeusData#704 fixture (red on the old code: 150 passed,
1 failed; green with the fix: 151 passed).
Fixes DeusData#1044
Signed-off-by: metehanulusoy <ulusoy.metehan03@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 8c9ac98 commit 3b1ea58
2 files changed
Lines changed: 93 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1342 | 1355 | | |
1343 | 1356 | | |
1344 | 1357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4134 | 4134 | | |
4135 | 4135 | | |
4136 | 4136 | | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
4137 | 4212 | | |
4138 | 4213 | | |
4139 | 4214 | | |
| |||
5763 | 5838 | | |
5764 | 5839 | | |
5765 | 5840 | | |
| 5841 | + | |
5766 | 5842 | | |
5767 | 5843 | | |
5768 | 5844 | | |
| |||
0 commit comments