-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(ourlogs): Always hide severity_number in the UI #96518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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 |
There was a problem hiding this 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
sentry/static/app/views/explore/logs/tables/logsTableRow.spec.tsx
Lines 154 to 158 in d649926
| // 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' | |
| ); |
### 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.
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.