-
Notifications
You must be signed in to change notification settings - Fork 261
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
Add the ability to record any key/value pair in the 'custom' field in metadata.yaml #976
Conversation
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.
@t0ny-peng Thank you for contribution. Overall looks good.
I have some minor findings. Please see them in inline comments.
I also have suggestion to rename node["custom"]
to the node["custom_data"]
.
name custom
is to generic and could confuse to what it relates for.
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.
@t0ny-peng Thank you for the iteration in code review.
I have a few more requests for changes.
Also could you please next time push new changes as a separate commit?
One commit per one review iteration should be fine.
It's very difficult to review code outside of the Github e.g. in CLion, when all changes squashed in one commit and pushed with force command. i.e. there are no history for the changes outside of the PR.
Multiple commits will not clutter the final git history since we have mandatory squash for commits when we do merge on master. Although it's really helpful for code review.
@MichaelOrlov I've addressed your comments. I didn't split the first commit because it seems pretty atomic. The changes are all related and cannot be broken down to subcomponents. However moving the convert structs has its own commit. Please review. Thx |
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.
@t0ny-peng Thanks, approving now.
As regards to the
I didn't split the first commit because it seems pretty atomic. The changes are all related and cannot be broken down to subcomponents. However moving the convert structs has its own commit.
It's ok and this is exactly how I expected it to be.
Running CI |
@MichaelOrlov I'm not sure if increasing the version is the correct move here. In this case, what's the correct way of updating the database? Using sqlite to modify it manually? |
…ld in metadata.yaml Signed-off-by: Tony Peng <[email protected]>
Signed-off-by: Tony Peng <[email protected]>
@t0ny-peng I think we need to fix tests by updating databases. Need to look to the failing tests, may be there are some routines for generating test database. BTW I see that tests fails not only in |
@t0ny-peng Update: Don't need to change database files. However I was not able to reproduce failures in
|
Signed-off-by: Tony Peng <[email protected]>
@MichaelOrlov I think the error in WRT changing the version in the test, I don't think comparing the current version of |
1 similar comment
@MichaelOrlov I think the error in WRT changing the version in the test, I don't think comparing the current version of |
Running CI again after fix in rosbag2_tests |
Windows build unstable on baseline i.e. has some CMake warnings. |
…field in metadata.yaml (#976)" This reverts commit e156eb9. Signed-off-by: Jorge Perez <[email protected]>
…field in metadata.yaml (#976)" (#984) This reverts commit e156eb9. Signed-off-by: Jorge Perez <[email protected]>
…custom' field in metadata.yaml (#976)" (#984)" This reverts commit e7d4975. Signed-off-by: Hunter L. Allen <[email protected]>
…custom' field in metadata.yaml (#976)" (#984)" This reverts commit e7d4975. Signed-off-by: Hunter L. Allen <[email protected]>
…adata.yaml (#1038) * Revert "Revert "Add the ability to record any key/value pair in the 'custom' field in metadata.yaml (#976)" (#984)" This reverts commit e7d4975. Signed-off-by: Hunter L. Allen <[email protected]> * Ensure writer_ is destructed before intercepted_metadata_ Signed-off-by: Hunter L. Allen <[email protected]>
…adata.yaml (#1038) * Revert "Revert "Add the ability to record any key/value pair in the 'custom' field in metadata.yaml (#976)" (#984)" This reverts commit e7d4975. Signed-off-by: Hunter L. Allen <[email protected]> * Ensure writer_ is destructed before intercepted_metadata_ Signed-off-by: Hunter L. Allen <[email protected]>
Usage:
ros2 bag record --all --custom-data key1=value1 key2=value2
. The custom data will show up in themetadata.yaml
file:Closes #547