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: 5 additions & 3 deletions static/app/components/events/eventTags/eventTagsTreeRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {DropdownMenu, type MenuItemProps} from 'sentry/components/dropdownMenu';
import type {TagTreeContent} from 'sentry/components/events/eventTags/eventTagsTree';
import EventTagsValue from 'sentry/components/events/eventTags/eventTagsValue';
import {AnnotatedTextErrors} from 'sentry/components/events/meta/annotatedText/annotatedTextErrors';
import {extractSelectionParameters} from 'sentry/components/pageFilters/parse';
import Version from 'sentry/components/version';
import VersionHoverCard from 'sentry/components/versionHoverCard';
import {IconEllipsis} from 'sentry/icons';
Expand Down Expand Up @@ -154,6 +155,7 @@ function EventTagsTreeRowDropdown({
key: escapeIssueTagKey(originalTag.key),
}
);
const globalSelectionParams = extractSelectionParameters(location.query);

const isProjectAdmin = hasEveryAccess(['project:admin'], {
organization,
Expand All @@ -178,7 +180,7 @@ function EventTagsTreeRowDropdown({
hidden: !event.groupID || isFeedback,
to: {
pathname: `/organizations/${organization.slug}/issues/${event.groupID}/events/`,
query,
query: {...globalSelectionParams, ...query},
},
},
{
Expand All @@ -187,7 +189,7 @@ function EventTagsTreeRowDropdown({
hidden: isFeedback,
to: {
pathname: `/organizations/${organization.slug}/issues/`,
query,
query: {...globalSelectionParams, ...query},
},
},
{
Expand All @@ -196,7 +198,7 @@ function EventTagsTreeRowDropdown({
hidden: !isFeedback,
to: {
pathname: `/organizations/${organization.slug}/feedback/`,
query,
query: {...globalSelectionParams, ...query},
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {DropdownMenu} from 'sentry/components/dropdownMenu';
import {getContextIcon} from 'sentry/components/events/contexts/utils';
import LoadingError from 'sentry/components/loadingError';
import LoadingIndicator from 'sentry/components/loadingIndicator';
import {extractSelectionParameters} from 'sentry/components/pageFilters/parse';
import Pagination from 'sentry/components/pagination';
import TimeSince from 'sentry/components/timeSince';
import {IconArrow, IconEllipsis, IconOpen} from 'sentry/icons';
Expand Down Expand Up @@ -275,6 +276,7 @@ function TagValueActionsMenu({
tagValue: TagValue;
}) {
const organization = useOrganization();
const location = useLocation();
const {copy} = useCopyToClipboard();

const referrer = 'tag-details-drawer';
Expand All @@ -284,6 +286,7 @@ function TagValueActionsMenu({
query: tagValue.query,
}
: generateQueryWithTag({referrer}, {key, value: tagValue.value});
const globalSelectionParams = extractSelectionParameters(location.query);
const eventView = useIssueDetailsEventView({group, queryProps: query});
const [isVisible, setIsVisible] = useState(false);

Expand Down Expand Up @@ -314,15 +317,15 @@ function TagValueActionsMenu({
label: t('View other events with this tag value'),
to: {
pathname: `/organizations/${organization.slug}/issues/${group.id}/events/`,
query,
query: {...globalSelectionParams, ...query},
},
},
{
key: 'view-issues',
label: t('Search issues with this tag value'),
to: {
pathname: `/organizations/${organization.slug}/issues/`,
query,
query: {...globalSelectionParams, ...query},
},
},
{
Expand Down
Loading