-
Notifications
You must be signed in to change notification settings - Fork 409
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
Implement roundtrip-ready DisconnectedSpace
archetype
#2833
Conversation
23bb814
to
56397e9
Compare
7a55807
to
aaedde5
Compare
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.
lgtm!
impl From<bool> for DisconnectedSpace { | ||
fn from(b: bool) -> Self { | ||
Self(b) | ||
} | ||
} |
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.
are you sure? true.into()
seems wild to me
I'd like to have the default on it to be true though, i.e. DisconnectedSpace::default()
should give set true
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.
The UX on the API would be pretty awful otherwise because this is both an archetype and a component within that archetype (rerun::DisconnectedSpace::new(rerun::datatypes::DisconnectedSpace(true))
vs rerun::DisconnectedSpace::new(true)
.
I can add a default value yep.
b3ea863
to
31078e8
Compare
Addressed comments from #2768 as well! |
This PR removes the old `DisconnectedSpace` entirely. The legacy `rr.disconnected_space()` have been rewritten in terms of the new `DisconnectedSpace` archetype. --- Part of #2791 Requires #2833 ### What ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2835) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2835) - [Docs preview](https://rerun.io/preview/pr%3Acmc%2Fgoodbye_old_disconnected_space/docs) - [Examples preview](https://rerun.io/preview/pr%3Acmc%2Fgoodbye_old_disconnected_space/examples)
What the title says.
This does not migrate off of the legacy
DisconnectedSpace
, that's for a future PR.Part of #2791
What
Checklist