-
Notifications
You must be signed in to change notification settings - Fork 366
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
Introduce a mechanism for blueprint-provided defaults #6537
Conversation
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.
awesome!
// TODO(jleibs): This doesn't work when the component set contains empty results. | ||
// This means we over-query for defaults that will never be used. | ||
// component_set.retain(|component| !results.components.contains_key(component)); |
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.
on the bright side this means that this object contains more of what the ui may want to display 🤔
Would it be worth to poke results
some more to reduce the query size? I reckon you made the call that it doesn't
@@ -0,0 +1,241 @@ | |||
use std::collections::{BTreeMap, BTreeSet}; | |||
|
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.
quite a bit of unfortunate copy & paste in here from component override ui, but probably better than the work intensive alternative with dubious future outlook 👍
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.
That was my thought -- I think they both get thrown away and replaced with something universal.
What
There's quite a bit of annoying logic in here related to when and how we figure out whether a component is actually empty, motivating: #6536
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.