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
[jazzy] Add optional '--topics' CLI argument for 'ros2 bag record' (backport #1632) #1640
Conversation
Pulls: #1640 |
Since there are no API or ABI breaks here, I'm going to suggest that we hold off on merging this. Actually, that may argue that we never merge this into Jazzy (because adding in a deprecation warning into a stable distribution isn't something we usually do). @marcoag Thoughts from you? |
@clalancette @marcoag I would prefer to merge this PR to Jazzy sooner rather than later since it will improve user experience is well covered by tests, and is pretty safe, IMO. However, would like to get your approval or opinion beforehand. |
If we can merge this without the warning later on, I would lean on holding off and doing it later. |
@marcoag The deprecation warning is very important for a new release. Otherwise, we will have to wait for one more release to be able to deprecate the positional argument. |
Update:
|
* Add optional "--topics" CLI parameter for recorder - Deprecate positional "topics" parameter. - Add test coverage for non-trivial cases in the recorder CLI parser. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Use "--topics" instead of positional argument in integration tests Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Cleanup in the recorder CLI help section Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add empty line to the end of the pytest.ini Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add deprecation notice for positional topics argument in help section Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 9146878)
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
ac65bfa
to
58c66df
Compare
Re-run CI after rebase |
Motivation:
It works currently, if put a trailing
--
after the list of services. However, that workaround with trailing--
is not obvious and could cause confusion and be a source of mistakes because the topics parameter can't be specified explicitly. i.e.,--topics
.List of changes:
--topics
" parameter for theros2 bag record
CLI interface.topics
" parameter to be consistent with the"--services
" parameter.--topics
" parameter instead of the deprecated positional parameter in integration tests.Note: There are no API/ABI breaking changes in this PR
This is an automatic backport of pull request #1632 done by Mergify.