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

Centralize freestanding store helpers #2153

Merged
merged 5 commits into from
May 22, 2023
Merged

Centralize freestanding store helpers #2153

merged 5 commits into from
May 22, 2023

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented May 16, 2023

Just a trivial PR to centralize a bunch of freestanding helpers and improve discoverability / autocomplete etc.

Related to #2019 (if we're very generous)

PR Build Summary: https://build.rerun.io/pr/2153

@teh-cmc teh-cmc added ⛃ re_datastore affects the datastore itself 🚜 refactor Change the code, not the functionality labels May 16, 2023
let component = iter.next();

if iter.next().is_some() {
re_log::warn_once!("Unexpected batch for {} at: {}", C::name(), entity_path);
Copy link
Member Author

Choose a reason for hiding this comment

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

formatting

@@ -79,7 +79,7 @@ pub fn get_component_with_instances(
/// length.
///
/// If you expect only one instance (e.g. for mono-components like `Transform` `Tensor`]
/// and have no additional components you can use [`re_data_store::query_latest_single`] instead.
/// and have no additional components you can use [`re_data_store::query_latest_component`] instead.
Copy link
Member Author

Choose a reason for hiding this comment

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

xxx

Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

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

@teh-cmc
Copy link
Member Author

teh-cmc commented May 16, 2023

Can we avoid conflicting with: https://github.com/rerun-io/rerun/pull/2010/files#diff-28ad8e81ea9af25145d4379530f89ee0c70da10021fa4b210680f0df2b3e01d3

I definitely don't mind handling the annoying rebase if needed

Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

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

Looks good -- would be great if you could either merge -> the blueprint change or help re-merge main -> blueprint again after landing.

@teh-cmc teh-cmc force-pushed the cmc/centralize_helpers branch from 2d04d5c to 6edf777 Compare May 22, 2023 20:21
@teh-cmc teh-cmc merged commit f9b9cb2 into main May 22, 2023
@teh-cmc teh-cmc deleted the cmc/centralize_helpers branch May 22, 2023 21:01
emilk pushed a commit that referenced this pull request Jun 15, 2023
* centralize freestanding store helpers

* port everything to new helpers

* note to self

* missing feature flag

* docs
This was referenced Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛃ re_datastore affects the datastore itself 🚜 refactor Change the code, not the functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants