-
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
Make visual time range on views a view property that can be set from python code #6164
Conversation
… resolved visual range directly on DataResult. TODO: properly populate the new DataResult field and use it everywhere
Deployed docs
|
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!
from: time_range_boundary_to_visible_history_boundary(&time_range.start), | ||
to: time_range_boundary_to_visible_history_boundary(&time_range.end), |
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.
Not new in this PR, but this would read much better (and more idiomatic) as
from: time_range_boundary_to_visible_history_boundary(&time_range.start), | |
to: time_range_boundary_to_visible_history_boundary(&time_range.end), | |
from: VisibleHistoryBoundary::from(&time_range.start), | |
to: VisibleHistoryBoundary::from(&time_range.end), |
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.
but I really want to kill these conversions, not make them nicer 😄
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.
did the from'ification on the function name but didn't implement the trait now because I don't want the conversion disease to spread (would need to go to a different module)
…ntityProperties`) (#6190) ### What * Fixes #6175 This regressed in #6164. Decided not to roll back things (which would have been hard) but instead reimplement how these properties are passed through and make their role more obvious. ### 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 examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6190?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6190?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/6190) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. --------- Co-authored-by: Clement Rey <[email protected]>
What
And some related refactors that I got engulfed with on this quest:
EntityProperties
DataResult
formation by dropping overrides from theOverrideContext
EntityProperties
aslegacy_properties
in a lot of places which makes it easier to read these changesQueryRange
typePython API not great yet, will improve and provide examples in an upcoming iteration.
Planned direct follow-ups to this PR:
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.