Skip to content

fix(coding-conventions): Rename Tree.FromAssertion to Tree.fromAssertion - #121920

Merged
ryan953 merged 1 commit into
masterfrom
seer/fix/rename-tree-from-assertion
Aug 13, 2026
Merged

fix(coding-conventions): Rename Tree.FromAssertion to Tree.fromAssertion#121920
ryan953 merged 1 commit into
masterfrom
seer/fix/rename-tree-from-assertion

Conversation

@sentry

@sentry sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR addresses an ESLint warning no-capitalized-function-calls that was triggered by the static factory method Tree.FromAssertion in static/app/views/detectors/components/uptime/assertions/assertionFailure/models/tree.tsx.

The no-capitalized-function-calls rule is designed to prevent React components from being invoked as plain functions (e.g., MyComponent() instead of <MyComponent />). Because FromAssertion was PascalCase, the linter incorrectly flagged it as a potential React component call.

To resolve this, the static method FromAssertion has been renamed to fromAssertion (camelCase) to align with standard JavaScript/TypeScript naming conventions for non-component functions. All call sites in static/app/views/detectors/components/uptime/assertions/assertionFailure/assertionFailureTree.tsx and static/app/views/detectors/components/uptime/assertions/assertionFailure/models/tree.spec.tsx have been updated accordingly.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.


Consolidated: issue CODING-CONVENTIONS-1TE reported a stale/renamed file path that resolves to this same Tree.FromAssertion call site (superseded PR #121922 closed as duplicate).

Fixes CODING-CONVENTIONS-3XX
Fixes CODING-CONVENTIONS-1TE

@sentry
sentry Bot requested a review from a team as a code owner August 13, 2026 01:42
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 13, 2026
@ryan953 ryan953 added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Aug 13, 2026
@ryan953
ryan953 merged commit 17fcf23 into master Aug 13, 2026
87 of 88 checks passed
@ryan953
ryan953 deleted the seer/fix/rename-tree-from-assertion branch August 13, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant