-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(ui): Flatten discover/eap/span responses #93478
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
Flattens the types into a single type with 900 key/values which is still big, but slightly simpler since it isn't an intersection of all the types.
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.
Makes sense, just two nits! Thanks 🙏🏻
static/app/utils/flatten.tsx
Outdated
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.
So many things can be flatten
ed! Maybe this would be good in a utils/types/flatten.ts
file, to clarify what it's for? No strong opinion on file extension
static/app/views/insights/common/components/tableCells/starredSegmentCell.tsx
Outdated
Show resolved
Hide resolved
Flattens the types into a single object with 2300 key/values which is still big, but slightly simpler since it isn't an intersection of all the objects with their keys. Reduces the number of instantiations by 100k. before  after 
Flattens the types into a single object with 2300 key/values which is still big, but slightly simpler since it isn't an intersection of all the objects with their keys. Reduces the number of instantiations by 100k. before  after 
Flattens the types into a single object with 2300 key/values which is still big, but slightly simpler since it isn't an intersection of all the objects with their keys. Reduces the number of instantiations by 100k.
before

after
