Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: infinite list users (#15489)
boojackbccc9d07c729
diff --git a/frontend/src/components/AuditLog/AuditLogSearch/AuditLogSearch.vue b/frontend/src/components/AuditLog/AuditLogSearch/AuditLogSearch.vueindex 0564a43059..578819c492 100644--- a/frontend/src/components/AuditLog/AuditLogSearch/AuditLogSearch.vue+++ b/frontend/src/components/AuditLog/AuditLogSearch/AuditLogSearch.vue@@ -17,9 +17,8 @@</template><script lang="tsx" setup>-import { computedAsync } from "@vueuse/core";import { orderBy } from "lodash-es";-import { computed, ref } from "vue";+import { computed, onMounted, ref } from "vue";import { useI18n } from "vue-i18n";import { BBAvatar } from "@/bbkit";import AdvancedSearch, { TimeRange } from "@/components/AdvancedSearch";@@ -35,7 +34,7 @@ import { useCurrentUserV1, useProjectV1List, useUserStore } from "@/store";import { SYSTEM_BOT_USER_NAME } from "@/types";import { AuditLog_Severity } from "@/types/proto/v1/audit_log_service";import { State, stateToJSON } from "@/types/proto/v1/common";-import { UserType, userTypeToJSON } from "@/types/proto/v1/user_service";+import { User, UserType, userTypeToJSON } from "@/types/proto/v1/user_service";import {getDefaultPagination,extractProjectResourceName,@@ -61,16 +60,17 @@ const me = useCurrentUserV1();const userStore = useUserStore();const { projectList } = useProjectV1List();+const activeUserList = ref<User[]>([]);const showTimeRange = ref(false);-const activeUserList = computedAsync(async () => {+onMounted(async () => {const { users } = await userStore.fetchUserList({pageSize: getDefaultPagination(),showDeleted: false,filter: `state == "${stateToJSON(State.ACTIVE)}" && user_type == "${userTypeToJSON(UserType.USER)}"`,});- return users;-}, []);+ activeUserList.value = users;+});const principalSearchValueOptions = computed(() => {// Put "you" to the topdiff --git a/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue b/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vueindex 43e9c5fc35..69c149c9a3 100644--- a/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue+++ b/frontend/src/components/IssueV1/components/IssueSearch/IssueSearch.vue@@ -40,13 +40,12 @@</template><script lang="ts" setup>-import { computedAsync } from "@vueuse/core";-import { ref, computed } from "vue";+import { ref, computed, onMounted } from "vue";import AdvancedSearch from "@/components/AdvancedSearch";import TimeRange from "@/components/AdvancedSearch/TimeRange.vue";import { useUserStore } from "@/store";import { State, stateToJSON } from "@/types/proto/v1/common";-import { UserType, userTypeToJSON } from "@/types/proto/v1/user_service";+import { User, UserType, userTypeToJSON } from "@/types/proto/v1/user_service";import type { SearchParams, SearchScope, SearchScopeId } from "@/utils";import {getDefaultPagination,@@ -89,14 +88,16 @@ const allowedScopes = computed(() => {return [...UIIssueFilterScopeIdList, ...SearchScopeIdList.value];});-const activeUserList = computedAsync(async () => {+const activeUserList = ref<User[]>([]);++onMounted(async () => {const { users } = await userStore.fetchUserList({pageSize: getDefaultPagination(),showDeleted: false,filter: `state == "${stateToJSON(State.ACTIVE)}" && user_type == "${userTypeToJSON(UserType.USER)}"`,});- return users;-}, []);+ activeUserList.value = users;+});const scopeOptions = useIssueSearchScopeOptions(computed(() => props.params),