Skip to content

API changes for PrintConfig#708

Merged
jennuine merged 4 commits intomainfrom
jennuine/print_config
Sep 21, 2021
Merged

API changes for PrintConfig#708
jennuine merged 4 commits intomainfrom
jennuine/print_config

Conversation

@jennuine
Copy link
Copy Markdown
Collaborator

Summary

Added API changes related to PrintConfig for #689

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@jennuine jennuine requested a review from azeey September 21, 2021 20:01
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Sep 21, 2021
@chapulina chapulina added the beta Targeting beta release of upcoming collection label Sep 21, 2021
Copy link
Copy Markdown
Collaborator

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also add it to sdf::SDF::PrintValues and sdf::SDF::ToString. The implementation in #689 takes a string for sdf::SDF::PrintValues, but IMO we would be more consistent and have better separation of concerns if it takes sdf::PrintConfig instead. Then the code in ign.cc can parse the command line arguments create the sdf::PrintConfig object and pass it to sdf::SDF::PrintValues().

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@jennuine
Copy link
Copy Markdown
Collaborator Author

I think we should also add it to sdf::SDF::PrintValues and sdf::SDF::ToString

Done 7810a1b

Copy link
Copy Markdown
Collaborator

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the quick iteration.

@jennuine jennuine merged commit 871e6bc into main Sep 21, 2021
@jennuine jennuine deleted the jennuine/print_config branch September 21, 2021 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta Targeting beta release of upcoming collection 🏯 fortress Ignition Fortress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants