Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions static/app/views/insights/pages/conversations/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {useConversationDrawerQueryState} from 'sentry/views/insights/pages/conve
import {DomainOverviewPageProviders} from 'sentry/views/insights/pages/domainOverviewPageProviders';

const DISABLE_AGGREGATES: never[] = [];
const DEFAULT_QUERY = 'has:user.email';

interface ConversationsOverviewPageProps {
datePageFilterProps: DatePageFilterProps;
Expand Down Expand Up @@ -90,13 +89,6 @@ function ConversationsContent({datePageFilterProps}: ConversationsOverviewPagePr
});
}, [organization]);

useEffect(() => {
if (searchQuery === null) {
setSearchQuery(DEFAULT_QUERY);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const {tags: numberTags = [], isLoading: numberTagsLoading} =
useTraceItemTags('number');
const {tags: stringTags = [], isLoading: stringTagsLoading} =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export function getConversationsUrl(
conversationId: number | string
): string {
const basePath = `/organizations/${organizationSlug}/${DOMAIN_VIEW_BASE_URL}/${CONVERSATIONS_LANDING_SUB_PATH}/`;
const searchQuery = encodeURIComponent(
`has:user.email gen_ai.conversation.id:${conversationId}`
);
const searchQuery = encodeURIComponent(`gen_ai.conversation.id:${conversationId}`);
const queryParams = `?query=${searchQuery}&${ConversationDrawerUrlParams.SELECTED_CONVERSATION}=${conversationId}`;
return `${window.location.origin}${normalizeUrl(basePath)}${queryParams}`;
}
Loading