-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
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.
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.
changes lgtm 👍, one small comment
@@ -36,6 +39,7 @@ interface SchemaHintsListProps extends SchemaHintsPageParams { | |||
numberTags: TagCollection; | |||
stringTags: TagCollection; | |||
supportedAggregates: AggregationKey[]; | |||
filterKeySections?: FilterKeySection[]; |
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.
I don't see this being used anywhere, can we get rid of it?
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.
Ah yeah, nice catch Nikki 👍
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
### 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.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
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: