Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: tweak default page size of change history (#13594)
boojack101811ca1c10
diff --git a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vueindex 65abc52c92..8941ef1bb1 100644--- a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue+++ b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue@@ -140,7 +140,11 @@ import { useDatabaseDetailContext } from "@/components/Database/context";import { TooltipButton } from "@/components/v2";import { Drawer, DrawerContent } from "@/components/v2";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";-import { useChangeHistoryStore, useDBSchemaV1Store } from "@/store";+import {+ DEFAULT_CHANGE_HISTORY_PAGE_SIZE,+ useChangeHistoryStore,+ useDBSchemaV1Store,+} from "@/store";import type { ComposedDatabase } from "@/types";import { DEFAULT_PROJECT_NAME } from "@/types";import type { Table } from "@/types/changeHistory";@@ -185,7 +189,7 @@ const prepareChangeHistoryList = async () => {state.loading = true;await changeHistoryStore.fetchChangeHistoryList({parent: props.database.name,- pageSize: 1000,+ pageSize: DEFAULT_CHANGE_HISTORY_PAGE_SIZE,});// prepare database metadata for getting affected tables.await useDBSchemaV1Store().getOrFetchDatabaseMetadata({diff --git a/frontend/src/store/modules/v1/changeHistory.ts b/frontend/src/store/modules/v1/changeHistory.tsindex 88dd5fa54f..c91f5a4f93 100644--- a/frontend/src/store/modules/v1/changeHistory.ts+++ b/frontend/src/store/modules/v1/changeHistory.ts@@ -14,6 +14,8 @@ import {} from "@/types/proto/v1/database_service";import { extractChangeHistoryUID } from "@/utils";+export const DEFAULT_CHANGE_HISTORY_PAGE_SIZE = 1000000;+type CacheKeyType = [string /* name */, ChangeHistoryView];export const useChangeHistoryStore = defineStore("changeHistory_v1", () => {@@ -53,7 +55,10 @@ export const useChangeHistoryStore = defineStore("changeHistory_v1", () => {if (changeHistoryListMapByDatabase.has(databaseName)) {return changeHistoryListMapByDatabase.get(databaseName) ?? [];}- return fetchChangeHistoryList({ parent: databaseName });+ return fetchChangeHistoryList({+ parent: databaseName,+ pageSize: DEFAULT_CHANGE_HISTORY_PAGE_SIZE,+ });};const changeHistoryListByDatabase = (name: string) => {return changeHistoryListMapByDatabase.get(name) ?? [];