Skip to content

Document behaviour when multiple policy are evaluated on the same record #765

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/platform/navigation/data-quality/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,21 @@ Since the **block** action has the ability to **stop data from being sent** to t
</p>
</details>

## Behavior When Multiple Policies Target a Common Topic

When multiple policies target the same topic, two scenarios can occur when a record is produced:

* **None of the policies block the record; all are evaluated:**

* The evaluation count is increased for all of them.
* The violation count is increased for each violated policy.
* A report is generated for each violated policy that has reporting enabled.

* **One or more policies would block the record. In this scenario, one of the blocking policies blocks the record first and hides it from the others:**

* For the first blocking policy, both the violation and evaluation counts are increased. If reporting is enabled for that policy, a report is generated.
Copy link
Contributor

Choose a reason for hiding this comment

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

How does the user know which policy will be applied first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

He can't know the order is uncertain

Copy link
Contributor

Choose a reason for hiding this comment

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

Is that always the case, that the user won't know the order in which policies will be applied?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

* For the others: no counts are increased, and no reports are generated.

## Related resources

- [Connect to clusters](/platform/navigation/settings/managing-clusters/)
Expand Down