Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Jul 28, 2025

Summary

We are looking to remove sending severity_number in lieu of 'severity' (aliased from sentry.severity_text), this will ensure it is unused before we remove it in Relay.

Other

This PR also adds the always hidden log keys as a new passable param to useTraceItemAttributes.

We are looking to remove sending severity_number in lieu of 'severity' (aliased from sentry.severity_text), this will ensure it is unused before we remove it in Relay.

This PR also adds the always hidden log keys as a new passable param to
useTraceItemAttributes.
@k-fish k-fish requested a review from a team as a code owner July 28, 2025 13:36
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 28, 2025
@k-fish k-fish enabled auto-merge (squash) July 28, 2025 13:39
@codecov
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #96518      +/-   ##
==========================================
- Coverage   86.55%   86.55%   -0.01%     
==========================================
  Files       10654    10654              
  Lines      614810   614800      -10     
  Branches    24183    24182       -1     
==========================================
- Hits       532129   532119      -10     
  Misses      82391    82391              
  Partials      290      290              

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Test Fails Due to Deprecated Severity Field

The test incorrectly expects tree-key-severity_number to be rendered. The test data was updated to use SEVERITY instead of SEVERITY_NUMBER, and severity_number is now an AlwaysHiddenLogField that should not appear in the UI.

static/app/views/explore/logs/tables/logsTableRow.spec.tsx#L154-L158

// Check that the attributes keys are rendered
expect(screen.getByTestId('tree-key-severity_number')).toBeInTheDocument();
expect(screen.getByTestId('tree-key-severity_number')).toHaveTextContent(
'severity_number'
);

Fix in Cursor Fix in Web


@k-fish k-fish merged commit ceb79e5 into master Jul 28, 2025
46 checks passed
@k-fish k-fish deleted the ref/ourlogs/remove-severity-number-from-ui branch July 28, 2025 14:24
andrewshie-sentry pushed a commit that referenced this pull request Aug 4, 2025
### Summary
We are looking to remove sending severity_number in lieu of 'severity'
(aliased from sentry.severity_text), this will ensure it is unused
before we remove it in Relay.

#### Other
This PR also adds the always hidden log keys as a new passable param to
useTraceItemAttributes.
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants