Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[PE-93] regression: mentions in space app, entity search (#6250)

Aaryan Khandelwal33acb9e8edd1
diff --git a/apiserver/plane/app/views/search/base.py b/apiserver/plane/app/views/search/base.py
index 3af588b408..c0ef59aa74 100644
--- a/apiserver/plane/app/views/search/base.py
+++ b/apiserver/plane/app/views/search/base.py
@@ -274,11 +274,7 @@ class SearchEndpoint(BaseAPIView):
q |= Q(**{f"{field}__icontains": query})
users = (
ProjectMember.objects.filter(
- q,
- member=self.request.user,
- is_active=True,
- project_id=project_id,
- workspace__slug=slug,
+ q, is_active=True, project_id=project_id, workspace__slug=slug
)
.annotate(
member__avatar_url=Case(
diff --git a/space/core/components/editor/embeds/mentions/user.tsx b/space/core/components/editor/embeds/mentions/user.tsx
index 106f4b1767..418623f98c 100644
--- a/space/core/components/editor/embeds/mentions/user.tsx
+++ b/space/core/components/editor/embeds/mentions/user.tsx
@@ -1,6 +1,4 @@
import { observer } from "mobx-react";
-import Link from "next/link";
-import { useParams } from "next/navigation";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
@@ -12,14 +10,11 @@ type Props = {
export const EditorUserMention: React.FC<Props> = observer((props) => {
const { id } = props;
- // params
- const { workspaceSlug } = useParams();
// store hooks
const { data: currentUser } = useUser();
const { getMemberById } = useMember();
// derived values
const userDetails = getMemberById(id);
- const profileLink = `/${workspaceSlug}/profile/${id}`;
if (!userDetails) {
return (
@@ -35,7 +30,7 @@ export const EditorUserMention: React.FC<Props> = observer((props) => {
"bg-custom-primary-100/20 text-custom-primary-100": id === currentUser?.id,
})}
>
- <Link href={profileLink}>@{userDetails?.member__display_name}</Link>
+ @{userDetails?.member__display_name}
</div>
);
});