Skip to content

Conversation

Danipiza
Copy link

@Danipiza Danipiza commented Sep 15, 2025

Description

This PR adds a filter by partitions feature in Fast-DDS-Spy. By creating a filter list, the Spy will only show the information that matches with the partitions filter added by the user.
With the commands written below, you can specify the filters. In each command the DataReaders stored in the Tracks of the DdsPipe are updated with the partitions. If a Topic does not contains a partition from the filter, the readers will not have any partition assigned (this do not include the empty partition) and the endpoint in the database will be disabled until it matches with the filter.

  • New commands:
# 1 argument
$ filters # prints the filters list

# 2 arguments
$ filters clear       # clears the filters list
$ filters remove      # remove a filter list

# 3 arguments
$ filter clear <category>     # clear a category from the filters list
$ filter remove<category>     # remove a category from the filters list

# 4 arguments
$ filter set <category> <filter_str>    # creates the list <category> with a <filter_str> as filter
$ filter add <category> <filter_str>    # adds a filter <filter_str> in the <category> list
$ filter remove <category> <filter_str> # removes a filter <filter_str> in the <category> list

Contributor Checklist

  • Commit messages follow the project guidelines.
  • Code snippets related to the added documentation have been provided.
  • Documentation tests pass locally.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • CI passes without warnings or errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant