-
Notifications
You must be signed in to change notification settings - Fork 404
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
Identify timelines uniquely by name (ignore type) #9097
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
e8fbb06
to
3fb8ac0
Compare
3fb8ac0
to
6f8fcec
Compare
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/13452045034 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/13452501275 |
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
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 kinda lost my sense of self after file 60 or something, it's fine
"{:?} ({})", | ||
self.time_range(), |
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 these changes gonna make debug dumps harder to read? 😞 I don't remember what the raw debug formatting of a TimeRange
looks like...
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.
Unfortunately yes :(
This probably needs a sibling PR on dataplatform, right? |
Related
What
We used to uniquely identify a time column by its name and type (temporal or sequence).
This PR changes this to only use the name.
Using the same name but different types has always been undefined behavior, and a bad idea. If you've been doing this, it is likely that your old code already produced "surprising" results. After this PR, you should at least get a clear warning printed in the terminal.
What changed
What happens when you mix different time types on the same timeline?
Both the SDK and the viewer will log a warning, and the last used
TimeType
will be used in the UI.TODO:
Future PR
TimePoint