Skip to content
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

Merged
merged 18 commits into from
Jul 28, 2023

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jul 26, 2023

What the title says.

This does not migrate off of the legacy DisconnectedSpace, that's for a future PR.

Part of #2791

What

Checklist

@teh-cmc teh-cmc added 🐍 Python API Python logging API 🏹 arrow Apache Arrow 🦀 Rust API Rust logging API do-not-merge Do not merge this PR codegen/idl and removed do-not-merge Do not merge this PR labels Jul 26, 2023
@teh-cmc teh-cmc force-pushed the cmc/roundtrippable_disconnected_transform branch 2 times, most recently from 23bb814 to 56397e9 Compare July 26, 2023 15:50
@teh-cmc teh-cmc mentioned this pull request Jul 26, 2023
3 tasks
@teh-cmc teh-cmc force-pushed the cmc/roundtrippable_disconnected_transform branch 2 times, most recently from 7a55807 to aaedde5 Compare July 28, 2023 08:41
@Wumpf Wumpf self-requested a review July 28, 2023 09:43
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Comment on lines +3 to +7
impl From<bool> for DisconnectedSpace {
fn from(b: bool) -> Self {
Self(b)
}
}
Copy link
Member

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

Copy link
Member Author

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.

@teh-cmc teh-cmc force-pushed the cmc/roundtrippable_disconnected_transform branch from b3ea863 to 31078e8 Compare July 28, 2023 10:57
@teh-cmc
Copy link
Member Author

teh-cmc commented Jul 28, 2023

Addressed comments from #2768 as well!

@teh-cmc teh-cmc merged commit 469046a into main Jul 28, 2023
@teh-cmc teh-cmc deleted the cmc/roundtrippable_disconnected_transform branch July 28, 2023 11:14
teh-cmc added a commit that referenced this pull request Jul 28, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏹 arrow Apache Arrow codegen/idl 🐍 Python API Python logging API 🦀 Rust API Rust logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants