Skip to content
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

fix(ourlogs): Cleanup UI after aliasing changes #88379

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

k-fish
Copy link
Member

@k-fish k-fish commented Mar 31, 2025

Summary

General cleanup after aliasing and other backend changes. Also adds a simple aliasing test for LogsFieldTree since we're doing a bunch of logic aside from rendering, we'll have to add a few more tests before we cleanup the field tree though.

This also does some other cleanup:

  • Fully switch trace-items response type over from 'object' to 'array' since the backend has been out for a while
  • Fixes the log. aliases
  • Makes schema hints also be able to hide certain keys (some known fields of logs are internal and we don't want to expose them)
  • Adds a cell action for the body column on table (only body for now, the fieldrenderers need to be re-arranged before we do it for all of them, and they need tests first)
  • Fixes aliasing on sentry.project.id -> project_id since the backend fix will take a bit.

This also does some other cleanup:
- Fully switch trace-items response type over from 'object' to 'array' since the backend has been out for a while
- Fixes the log. aliases
- Makes schema hints also be able to hide certain keys (some known fields of logs are internal and we don't want to expose them)
- Adds a cell action for the body column on table (only body for now, the fieldrenderers need to be re-arranged before we do it for all of them, and they need tests first)
- Fixes aliasing on sentry.project.id -> project_id since the backend fix will take a bit.
@k-fish k-fish self-assigned this Mar 31, 2025
@k-fish k-fish requested a review from a team as a code owner March 31, 2025 20:14
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 31, 2025
@k-fish k-fish requested a review from nikkikapadia April 1, 2025 14:29
Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

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

changes lgtm 👍, one small comment

@@ -36,6 +39,7 @@ interface SchemaHintsListProps extends SchemaHintsPageParams {
numberTags: TagCollection;
stringTags: TagCollection;
supportedAggregates: AggregationKey[];
filterKeySections?: FilterKeySection[];
Copy link
Member

Choose a reason for hiding this comment

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

I don't see this being used anywhere, can we get rid of it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah, nice catch Nikki 👍

@k-fish k-fish enabled auto-merge (squash) April 1, 2025 15:37
Copy link

codecov bot commented Apr 1, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
10067 1 10066 5
View the top 1 failed test(s) by shortest run time
Sudo Modal can delete an org with sudo flow
Stack Traces | 0.286s run time
TestingLibraryElementError: Unable to find an accessible element with the role "textbox" and name "Password"

Here are the accessible roles:

  dialog:

  Name "":
  ...

  --------------------------------------------------
  document:

  Name "":
  ...

  --------------------------------------------------
  banner:

  Name "":
  ...

  --------------------------------------------------

Ignored nodes: comments, script, style
...
    at Object.getElementError (.../sentry/sentry/node_modules/@.../dom/dist/config.js:37:19)
    at .../sentry/sentry/node_modules/@.../dom/dist/query-helpers.js:76:38
    at .../sentry/sentry/node_modules/@.../dom/dist/query-helpers.js:52:17
    at .../sentry/sentry/node_modules/@.../dom/dist/query-helpers.js:95:19
    at Object.<anonymous> (.../components/modals/sudoModal.spec.tsx:117:75)
    at runNextTicks (node:internal/process/task_queues:65:5)
    at processTimers (node:internal/timers:526:9)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@k-fish k-fish merged commit c214333 into master Apr 1, 2025
40 checks passed
@k-fish k-fish deleted the fix/ourlogs/clean-up-known-fields branch April 1, 2025 17:49
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
### Summary

General cleanup after aliasing and other backend changes. Also adds a
simple aliasing test for LogsFieldTree since we're doing a bunch of
logic aside from rendering, we'll have to add a few more tests before we
cleanup the field tree though.

This also does some other cleanup:
- Fully switch trace-items response type over from 'object' to 'array'
since the backend has been out for a while
- Fixes the log. aliases
- Makes schema hints also be able to hide certain keys (some known
fields of logs are internal and we don't want to expose them)
- Adds a cell action for the body column on table (only body for now,
the fieldrenderers need to be re-arranged before we do it for all of
them, and they need tests first)
- Fixes aliasing on sentry.project.id -> project_id since the backend
fix will take a bit.
Copy link

sentry-io bot commented Apr 8, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TestingLibraryElementError: Unable to find an element by: [data-test-id="tree-key-log.severity_number"] Object.?(logFieldsTree.spec.tsx) View Issue

Did you find this useful? React with a 👍 or 👎

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants