-
Notifications
You must be signed in to change notification settings - Fork 368
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
Update GraphEdge
visualizer to use sliced struct fields
#8555
base: cmc/sliced_visualizers
Are you sure you want to change the base?
Conversation
teh-cmc
commented
Dec 20, 2024
•
edited
Loading
edited
- DNM: requires Update all visualizers to use new Chunk iteration APIs #8554
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
// TODO(cmc): could we (improve and then) use reflection for this? | ||
re_types::static_assert_struct_has_fields!( | ||
datatypes::Utf8Pair, | ||
first: datatypes::Utf8, | ||
second: datatypes::Utf8, | ||
); | ||
let source: ArchetypeFieldName = "first".into(); | ||
let target: ArchetypeFieldName = "second".into(); |
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.
There are a million possible ways to "improve" this. Whether it's via reflection, or codegen, or whatever else.
For now, I very much like the fact that this is so dumb and so low-tech.
We can make it more complex/automated when the need arises.
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 need to get rid of the ArchetypeFieldName
though, that's not needed anymore.
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.
Very nice! 🤩
92a0bce
to
7bb905f
Compare
a757399
to
edfc60d
Compare