feat(ui): refresh latest ddl on demand

This commit is contained in:
zipg authored and GitHub committed 2026-09-01 01:46:39 +08:00
1 parent f9ff9245ce
commit cd008b2d56
17 files changed
+186 -11

No files matched your search

@@ -47,6 +47,12 @@ describe("ObjectBrowser table metadata refresh", () => {
}
});
it("shares the DDL refresh preference and exposes an explicit refresh action", () => {
expect(source).toContain("async function fetchTableDdl(force = settingsStore.editorSettings.refreshDdlOnOpen)");
expect(source).toContain('@click="refreshActiveTableInfo"');
expect(source).not.toContain("setTableInfoRefreshDdlOnOpen");
});
it("keeps automatic object reloads free of extra metadata requests", () => {
expect(functionBody("reload")).not.toContain("refreshActiveTableInfo");
});