Skip to content

[BUG] Property Collector Updates should be triggered on the empty FilterSet #3631

@brakthehack

Description

@brakthehack

Describe the bug
The PropertyCollector update closure passed to WaitForUpdatesEx is only triggered when a non-empty FilterSet occurs. This is an issue when side effects need to be triggered inside the update function such as notification mechanisms that an update was acknowledged.

It should be the choice of the update closure to determine whether to process the empty FilterSet or not.

To Reproduce
Steps to reproduce the behavior:

  1. Create a container view with no child entities such as an empty vm or host folder.
  2. Call wait for updates on the view.
  3. Observe that the update closure passed to WFU was not triggered even when an iteration of the WFU loop was processed.

Expected behavior
The onUpdatesFn should be triggered even if the FilterSet is empty.

Affected version
Since 95aa257.

Screenshots/Debug Output
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions