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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion static/app/actionCreators/dashboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {PageFiltersStore} from 'sentry/components/pageFilters/store';
import {t} from 'sentry/locale';
import type {PageFilters} from 'sentry/types/core';
import type {Organization} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
import {defined} from 'sentry/utils/defined';
import {TOP_N} from 'sentry/utils/discover/types';
import {fetchMutation} from 'sentry/utils/queryClient';
import {RequestError} from 'sentry/utils/requestError/requestError';
Expand Down
2 changes: 1 addition & 1 deletion static/app/actionCreators/metrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {getInterval} from 'sentry/components/charts/utils';
import {normalizeDateTimeParams} from 'sentry/components/pageFilters/parse';
import type {DateString} from 'sentry/types/core';
import type {Organization, SessionApiResponse} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {apiOptions} from 'sentry/utils/api/apiOptions';
import {defined} from 'sentry/utils/defined';

type DoReleaseHealthRequestOptions = {
field: string[];
Expand Down
2 changes: 1 addition & 1 deletion static/app/actionCreators/prompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {useQueryClient} from '@tanstack/react-query';

import type {Client} from 'sentry/api';
import type {Organization, OrganizationSummary} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
import {defined} from 'sentry/utils/defined';
import {promptIsDismissed} from 'sentry/utils/promptIsDismissed';
import type {ApiQueryKey, UseApiQueryOptions} from 'sentry/utils/queryClient';
import {setApiQueryData, useApiQuery} from 'sentry/utils/queryClient';
Expand Down
2 changes: 1 addition & 1 deletion static/app/actionCreators/savedSearches.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type {Client} from 'sentry/api';
import {MAX_AUTOCOMPLETE_RECENT_SEARCHES} from 'sentry/constants';
import type {RecentSearch, SavedSearch, SavedSearchType} from 'sentry/types/group';
import {defined} from 'sentry/utils';
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
import {defined} from 'sentry/utils/defined';
import {handleXhrErrorResponse} from 'sentry/utils/handleXhrErrorResponse';
import {
useApiQuery,
Expand Down
2 changes: 1 addition & 1 deletion static/app/actionCreators/sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {getInterval} from 'sentry/components/charts/utils';
import {normalizeDateTimeParams} from 'sentry/components/pageFilters/parse';
import type {DateString} from 'sentry/types/core';
import type {Organization, SessionApiResponse} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {apiOptions} from 'sentry/utils/api/apiOptions';
import {defined} from 'sentry/utils/defined';

type DoSessionsRequestOptions = {
field: string[];
Expand Down
2 changes: 1 addition & 1 deletion static/app/chartcuterie/dashboardsWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Theme} from '@emotion/react';

import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {type Widget} from 'sentry/views/dashboards/types';
import type {TimeSeries} from 'sentry/views/dashboards/widgets/common/types';
import {formatTimeSeriesLabel} from 'sentry/views/dashboards/widgets/timeSeriesWidget/formatters/formatTimeSeriesLabel';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/arithmeticBuilder/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {Key} from '@react-types/shared';

import {Expression} from 'sentry/components/arithmeticBuilder/expression';
import type {Token} from 'sentry/components/arithmeticBuilder/token';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type ArithmeticBuilderUpdateResetFocusOverrideAction = {
type: 'RESET_FOCUS_OVERRIDE';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {Node} from '@react-types/shared';
import {useArithmeticBuilder} from 'sentry/components/arithmeticBuilder/context';
import type {Token} from 'sentry/components/arithmeticBuilder/token';
import {DeletableToken as GenericDeletableToken} from 'sentry/components/tokenizedInput/token/deletableToken';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface DeletableTokenProps {
children: React.ReactNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InteractionStateLayer from '@sentry/scraps/interactionStateLayer';
import {useArithmeticBuilder} from 'sentry/components/arithmeticBuilder/context';
import type {Token} from 'sentry/components/arithmeticBuilder/token';
import {IconClose} from 'sentry/icons';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface DeleteButtonProps {
token: Token;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {IconDivide} from 'sentry/icons/iconDivide';
import {IconParenthesis} from 'sentry/icons/iconParenthesis';
import {IconSubtract} from 'sentry/icons/iconSubtract';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface ArithmeticTokenFreeTextProps {
item: Node<Token>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {focusTarget} from 'sentry/components/tokenizedInput/grid/utils';
import {ComboBox} from 'sentry/components/tokenizedInput/token/comboBox';
import {InputBox} from 'sentry/components/tokenizedInput/token/inputBox';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {FieldKind, FieldValueType, prettifyTagKey} from 'sentry/utils/fields';

interface ArithmeticTokenFunctionProps {
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/arithmeticBuilder/token/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {ArithmeticBuilderTokenReference} from 'sentry/components/arithmeticBuild
import {computeNextAllowedTokenKinds} from 'sentry/components/arithmeticBuilder/validator';
import {useGridList} from 'sentry/components/tokenizedInput/grid/useGridList';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface TokenGridProps {
tokens: Token[];
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/arithmeticBuilder/token/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Location, LocationRange} from 'peggy';

import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

export enum TokenKind {
UNKNOWN = 'unknown',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {useGridListItem} from 'sentry/components/tokenizedInput/grid/useGridList
import {focusTarget} from 'sentry/components/tokenizedInput/grid/utils';
import {InputBox} from 'sentry/components/tokenizedInput/token/inputBox';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface ArithmeticTokenLiteralProps {
item: Node<Token>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {useGridListItem} from 'sentry/components/tokenizedInput/grid/useGridList
import {focusTarget} from 'sentry/components/tokenizedInput/grid/utils';
import {ComboBox} from 'sentry/components/tokenizedInput/token/comboBox';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface ArithmeticBuilderTokenReferenceProps {
item: Node<Token>;
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/arithmeticBuilder/tokenizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
type Token,
type TokenParenthesis,
} from 'sentry/components/arithmeticBuilder/token';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

import {parse} from './grammar.pegjs';

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/arithmeticBuilder/validator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Parenthesis,
TokenKind,
} from 'sentry/components/arithmeticBuilder/token';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

export function validateTokens(tokens: Token[]): boolean {
const validator = new ExpressionValidator();
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/badge/groupPriority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import {t, tct} from 'sentry/locale';
import type {Activity} from 'sentry/types/group';
import {GroupActivityType, PriorityLevel} from 'sentry/types/group';
import type {AvatarUser} from 'sentry/types/user';
import {defined} from 'sentry/utils';
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
import {defined} from 'sentry/utils/defined';
import {useApiQuery} from 'sentry/utils/queryClient';
import {useOrganization} from 'sentry/utils/useOrganization';

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/charts/baseChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import type {
EChartRestoreHandler,
Series,
} from 'sentry/types/echarts';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

import {Grid} from './components/grid';
import {Legend} from './components/legend';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/charts/eventsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {t} from 'sentry/locale';
import type {DateString} from 'sentry/types/core';
import type {Series} from 'sentry/types/echarts';
import type {OrganizationSummary} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {
axisLabelFormatter,
axisLabelFormatterUsingAggregateOutputType,
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/charts/eventsRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type {
MultiSeriesEventsStats,
OrganizationSummary,
} from 'sentry/types/organization';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {DURATION_UNITS, SIZE_UNITS} from 'sentry/utils/discover/fieldRenderers';
import type {AggregationOutputType, DataUnit} from 'sentry/utils/discover/fields';
import {getAggregateAlias, stripEquationPrefix} from 'sentry/utils/discover/fields';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/charts/optionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {CompactSelect} from '@sentry/scraps/compactSelect';
import {OverlayTrigger} from '@sentry/scraps/overlayTrigger';

import {Truncate} from 'sentry/components/truncate';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type BaseProps = {
title: string;
Expand Down
3 changes: 2 additions & 1 deletion static/app/components/charts/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import type {
GroupedMultiSeriesEventsStats,
MultiSeriesEventsStats,
} from 'sentry/types/organization';
import {defined, escape} from 'sentry/utils';
import {escape} from 'sentry/utils';
import {getFormat, getFormattedDate} from 'sentry/utils/dates';
import {defined} from 'sentry/utils/defined';
import {parsePeriodToHours} from 'sentry/utils/duration/parsePeriodToHours';
import {oxfordizeArray} from 'sentry/utils/oxfordizeArray';
import {decodeList} from 'sentry/utils/queryString';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {Flex} from '@sentry/scraps/layout';

import {IconCheckmark, IconChevron, IconInfo, IconNot, IconWarning} from 'sentry/icons';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {PanelProvider} from 'sentry/utils/panelProvider';
import type {AlertVariant} from 'sentry/utils/theme';
import {unreachable} from 'sentry/utils/unreachable';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/compactSelect/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {AriaListBoxOptions} from '@react-aria/listbox';
import type {ListProps} from '@react-stately/list';
import {useListState} from '@react-stately/list';

import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import type {FormSize} from 'sentry/utils/theme';

import {ControlContext} from './control';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/compactSelect/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {ListState} from '@react-stately/list';
import type {Node, Selection} from '@react-types/shared';

import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {fzf} from 'sentry/utils/search/fzf';

import type {SelectProps} from './compactSelect';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {useScrollLock} from '@sentry/scraps/useScrollLock';

import {ErrorBoundary} from 'sentry/components/errorBoundary';
import {t} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {useLocation} from 'sentry/utils/useLocation';
import {useOnClickOutside} from 'sentry/utils/useOnClickOutside';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import isPropValid from '@emotion/is-prop-valid';
import {css} from '@emotion/react';
import styled from '@emotion/styled';

import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

interface StateLayerProps extends React.HTMLAttributes<HTMLSpanElement> {
as?: React.ElementType;
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/pagination/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {Flex} from '@sentry/scraps/layout';

import {IconChevron} from 'sentry/icons';
import {t, tct} from 'sentry/locale';
import {defined} from 'sentry/utils';
import {parseCursor} from 'sentry/utils/cursor';
import {defined} from 'sentry/utils/defined';
import {parseLinkHeader} from 'sentry/utils/parseLinkHeader';
import {useLocation} from 'sentry/utils/useLocation';
import {useNavigate} from 'sentry/utils/useNavigate';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/select/option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {CheckWrap} from '@sentry/scraps/select';

import type {components as selectComponents} from 'sentry/components/forms/controls/reactSelectWrapper';
import {IconAdd, IconCheckmark} from 'sentry/icons';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type Props = React.ComponentProps<typeof selectComponents.Option>;

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/core/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import {LoadingIndicator} from 'sentry/components/loadingIndicator';
import {IconChevron, IconClose} from 'sentry/icons';
import {t} from 'sentry/locale';
import type {Choices, SelectValue} from 'sentry/types/core';
import {defined} from 'sentry/utils';
import {convertFromSelect2Choices} from 'sentry/utils/convertFromSelect2Choices';
import {defined} from 'sentry/utils/defined';
import {PanelProvider} from 'sentry/utils/panelProvider';
import type {FormSize, Theme} from 'sentry/utils/theme';

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/deprecatedforms/booleanField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Tooltip} from '@sentry/scraps/tooltip';
import {InputField} from 'sentry/components/deprecatedforms/inputField';
import {withFormContext} from 'sentry/components/deprecatedforms/withFormContext';
import {IconQuestion} from 'sentry/icons';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type Props = InputField['props'];

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/deprecatedforms/formField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import classNames from 'classnames';
import type {FormContextData} from 'sentry/components/deprecatedforms/formContext';
import {QuestionTooltip} from 'sentry/components/questionTooltip';
import type {Meta} from 'sentry/types/group';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type Value = string | number | boolean;

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/deprecatedforms/genericField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SelectField from 'sentry/components/deprecatedforms/selectField';
import TextareaField from 'sentry/components/deprecatedforms/textareaField';
import TextField from 'sentry/components/deprecatedforms/textField';
import type {FormState} from 'sentry/components/forms/state';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

type FieldType =
| 'secret'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {StyledForm} from 'sentry/components/deprecatedforms/form';
import {SelectField} from 'sentry/components/deprecatedforms/selectField';
import {withFormContext} from 'sentry/components/deprecatedforms/withFormContext';
import type {SelectValue} from 'sentry/types/core';
import {defined} from 'sentry/utils';
import {convertFromSelect2Choices} from 'sentry/utils/convertFromSelect2Choices';
import {defined} from 'sentry/utils/defined';

// XXX: This is ONLY used in GenericField. If we can delete that this can go.

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/deprecatedforms/selectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from '@emotion/styled';
import {Select} from '@sentry/scraps/select';

import {withFormContext} from 'sentry/components/deprecatedforms/withFormContext';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';

import {StyledForm} from './form';
import {FormField, type FormFieldProps} from './formField';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import {
type CodingAgentIntegration,
} from 'sentry/components/events/autofix/useAutofix';
import {isArrayOf, isString} from 'sentry/types/utils';
import {defined} from 'sentry/utils';
import {trackAnalytics} from 'sentry/utils/analytics';
import {apiOptions} from 'sentry/utils/api/apiOptions';
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
import {defined} from 'sentry/utils/defined';
import {useApi} from 'sentry/utils/useApi';
import {useOrganization} from 'sentry/utils/useOrganization';
import {useUser} from 'sentry/utils/useUser';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {IconSpan} from 'sentry/icons/iconSpan';
import {t} from 'sentry/locale';
import type {Organization} from 'sentry/types/organization';
import type {Project} from 'sentry/types/project';
import {defined} from 'sentry/utils';
import {trackAnalytics} from 'sentry/utils/analytics';
import {defined} from 'sentry/utils/defined';
import {getShortEventId} from 'sentry/utils/events';
import {getShortCommitHash} from 'sentry/utils/git/getShortCommitHash';
import {useOrganization} from 'sentry/utils/useOrganization';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/events/autofix/v3/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {Placeholder} from 'sentry/components/placeholder';
import {t} from 'sentry/locale';
import type {Group} from 'sentry/types/group';
import type {Project} from 'sentry/types/project';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {useAutoScroll} from 'sentry/utils/useAutoScroll';
import {useCopyToClipboard} from 'sentry/utils/useCopyToClipboard';
import {useAiConfig} from 'sentry/views/issueDetails/hooks/useAiConfig';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/events/autofix/v3/nextStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {IconChevron} from 'sentry/icons/iconChevron';
import {t} from 'sentry/locale';
import {PluginIcon} from 'sentry/plugins/components/pluginIcon';
import type {Group} from 'sentry/types/group';
import {defined} from 'sentry/utils';
import {trackAnalytics} from 'sentry/utils/analytics';
import {defined} from 'sentry/utils/defined';
import {useOrganization} from 'sentry/utils/useOrganization';

interface SeerDrawerNextStepProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
AUTOFIX_EVIDENCE_PROPS_RESOLVER,
type EvidenceButtonProps,
} from 'sentry/components/events/autofix/v3/autofixEvidence';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {useOrganization} from 'sentry/utils/useOrganization';
import {useProjects} from 'sentry/utils/useProjects';
import type {ToolCall, ToolLink, ToolResult} from 'sentry/views/seerExplorer/types';
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/events/autofix/v3/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
type RootCauseArtifact,
type SolutionArtifact,
} from 'sentry/components/events/autofix/useExplorerAutofix';
import {defined} from 'sentry/utils';
import {defined} from 'sentry/utils/defined';
import {
type Artifact,
type ExplorerCodingAgentState,
Expand Down
Loading
Loading