Skip to content

Allow editing values_ in status_item and small refactor#441

Open
MahmoudAlmasri wants to merge 1 commit into
ros:ros2from
MahmoudAlmasri:feat/add_values_to_status_item
Open

Allow editing values_ in status_item and small refactor#441
MahmoudAlmasri wants to merge 1 commit into
ros:ros2from
MahmoudAlmasri:feat/add_values_to_status_item

Conversation

@MahmoudAlmasri
Copy link
Copy Markdown

@MahmoudAlmasri MahmoudAlmasri commented Feb 19, 2025

This PR allows editing values- within status_item in a convenient way:
* Add new constructor that takes an extra vector of KeyValue
* Introduce the addValue() method to StatusItem.
Finally, a small refactor is performed to reuse some code.

@MahmoudAlmasri MahmoudAlmasri force-pushed the feat/add_values_to_status_item branch 3 times, most recently from e506d27 to 75f2ed2 Compare February 19, 2025 14:35
@MahmoudAlmasri MahmoudAlmasri marked this pull request as draft February 19, 2025 18:54
* Add new constructor that takes an extra vector of KeyValue

* Introduce the addValue() method to StatusItem.

* Refactor addValue and hasKey and move them to the cpp

Signed-off-by: Mahmoud Almasri <mahm.al.masri@gmail.com>
@MahmoudAlmasri MahmoudAlmasri force-pushed the feat/add_values_to_status_item branch from 75f2ed2 to 654cdba Compare February 19, 2025 19:49
@MahmoudAlmasri MahmoudAlmasri marked this pull request as ready for review February 19, 2025 19:57
@MahmoudAlmasri MahmoudAlmasri changed the title Add status_item::addValue and refactor Allow editing values_ in status_item and small refactor Feb 21, 2025
@ct2034 ct2034 added enhancement This tackles a new feature of the code (and not a bug) ros2 PR tackling a ROS2 branch labels Feb 24, 2025
@ct2034 ct2034 self-assigned this Feb 24, 2025
Copy link
Copy Markdown
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. Could you please add a unit test for these functions.

@ct2034 ct2034 added the needs more work Someone has worked on this but more work is needed label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This tackles a new feature of the code (and not a bug) needs more work Someone has worked on this but more work is needed ros2 PR tackling a ROS2 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants