Restore generic Studio object navigation and discovery
This commit is contained in:
@@ -18,3 +18,17 @@ test("local relationship pages may reuse exactly the confirmed source window", a
|
||||
});
|
||||
assert.doesNotThrow(() => compileExecutionPlan(workspace));
|
||||
});
|
||||
|
||||
test("local workspace objects reads the exact server window without adding local candidates", async () => {
|
||||
const load = (first: number) =>
|
||||
loadReaderWorkspace((name, text) => {
|
||||
if (name === "ReaderRuntime.qx") return text.replace(/^.*query HighlightList id.*$/m, "");
|
||||
if (name === "queries/highlight-list.graphql")
|
||||
return text.replace("availableObjects(all: 200", `objects(first: ${first}`);
|
||||
return text;
|
||||
});
|
||||
const workspace = await load(2);
|
||||
assert.doesNotThrow(() => compileExecutionPlan(workspace));
|
||||
const wrong = await load(3);
|
||||
assert.throws(() => compileExecutionPlan(wrong), /REPLICA_WINDOW_MISMATCH/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user