-
Notifications
You must be signed in to change notification settings - Fork 373
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 python serialization for ContainerBlueprint #5390
Conversation
6c2fa96
to
84aafb6
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.
some confusion around aliases and float/double. Otherwise looks good! Your test makes a little bit more sense than the ones I have - I should also feed in more arrays with the component type already provided.
We'll have to fix the grid stuff first ofc as well as you pointed out
crates/re_types/definitions/rerun/blueprint/components/column_share.fbs
Outdated
Show resolved
Hide resolved
"attr.rerun.scope": "blueprint", | ||
"attr.rust.derive": "Default, PartialEq, Eq, PartialOrd, Ord", | ||
"attr.rust.repr": "transparent" | ||
"attr.rust.repr": "transparent", | ||
"attr.rust.tuple_struct" |
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'm surprised we don't have a python alias defined here, I got mypy errors when I didn't put bool
in there explicitely
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 think this is something that come over partially from the cherry-pick
crates/re_types/definitions/rerun/blueprint/components/included_content.fbs
Show resolved
Hide resolved
crates/re_types/definitions/rerun/blueprint/components/row_share.fbs
Outdated
Show resolved
Hide resolved
let mandatory_docstring = format!( | ||
r#""""Extension for [{name}][rerun.{kind}.{name}].""""#, | ||
r#""""Extension for [{name}][rerun.{scope}{kind}.{name}].""""#, |
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.
ah good fix, I just yielded to the broken version so far
rerun_py/rerun_sdk/rerun/blueprint/components/column_share_ext.py
Outdated
Show resolved
Hide resolved
84aafb6
to
007b5cd
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.
👍
### What Plus the usual amount of plumbing, following overall similar patterns than the previous PRs in this area * Sister PR to #5390 * Part of #4167 ### 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 the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/5401/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/5401/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/5401/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/5401) - [Docs preview](https://rerun.io/preview/4095985db6d11b3625e845b512983983c0bbea7a/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/4095985db6d11b3625e845b512983983c0bbea7a/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) --------- Co-authored-by: Jeremy Leibs <[email protected]>
What
Cherry-picked over the Name / Visibillity changes from
andreas/serializable-spaceviewblueprint
, so we'll need to navigate merge conflicts there.Standard implementation of serializers and a unit-test for them:
After talking to @Wumpf I moved some of the list-types up a level to simplify the serialization code, but this raised an issue with mismatched dimensions. Need to discuss if we want to remove this check (in light of the instance-key simplification), or push things back down to mono-components with internal lists.
TODO
WrongNumberOfInstances
#5399Checklist
main
build: app.rerun.ionightly
build: app.rerun.io