Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: show all projects in request query panel (#8437)

boojacka06be6cca2d4
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
index 90a4ba7b2a..0f41f8d48d 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
@@ -19,6 +19,7 @@
<ProjectSelect
class="!w-60 shrink-0"
:project="state.projectId"
+ :filter-by-current-user="false"
@update:project="handleProjectSelect"
/>
</div>
diff --git a/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue b/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
index 4e1b8c225b..0995f563b8 100644
--- a/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
+++ b/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
@@ -19,6 +19,7 @@
<ProjectSelect
class="!w-60 shrink-0"
:project="state.projectId"
+ :filter-by-current-user="false"
@update:project="handleProjectSelect"
/>
</div>
diff --git a/frontend/src/components/v2/Select/ProjectSelect.vue b/frontend/src/components/v2/Select/ProjectSelect.vue
index 0d6e615fc5..0aa56811e8 100644
--- a/frontend/src/components/v2/Select/ProjectSelect.vue
+++ b/frontend/src/components/v2/Select/ProjectSelect.vue
@@ -40,6 +40,7 @@ const props = withDefaults(
includeAll?: boolean;
includeDefaultProject?: boolean;
includeArchived?: boolean;
+ filterByCurrentUser?: boolean;
filter?: (project: Project, index: number) => boolean;
}>(),
{
@@ -52,6 +53,7 @@ const props = withDefaults(
includeAll: false,
includeDefaultProject: false,
includeArchived: false,
+ filterByCurrentUser: true,
filter: () => true,
}
);
@@ -69,10 +71,12 @@ const prepare = () => {
};
const rawProjectList = computed(() => {
- let list = projectV1Store.getProjectListByUser(
- currentUserV1.value,
- true /* showDeleted */
- );
+ let list = props.filterByCurrentUser
+ ? projectV1Store.getProjectListByUser(
+ currentUserV1.value,
+ true /* showDeleted */
+ )
+ : projectV1Store.getProjectList(true /* showDeleted */);
// Filter the default project
list = list.filter((project) => {
return project.uid !== String(DEFAULT_PROJECT_ID);