Skip to main contentRule Filtering is a powerful tool for debugging and refining your policies. It allows you to trace a specific outcome in your test results directly back to the individual rule that caused it.
By clicking on the filter button to the left of your rules within a label, you can instantly filter your test data to see only the rows that were affected by that specific assertion. This provides a granular view that is essential for understanding complex policy logic.
Why Use Assertion Filtering?
This feature is invaluable for several common tasks:
- Debugging Complex Policies: When a label is applied, it can sometimes be difficult to know which of its many rules was the trigger. Assertion Filtering lets you pinpoint the exact rule responsible for a result.
- Validating New Rules: After adding a new rule to a label, you can click on it to immediately see if it’s capturing the correct data without affecting unintended rows.
- Refining Rule Logic: If a rule seems too broad or too narrow, you can filter by it to see a sample of the data it’s matching. This helps you fine-tune the logic with confidence.
- Auditing and Transparency: Quickly answer questions like “Why was this specific row flagged?” by showing the exact rule that triggered the label.
How to Filter by Assertion
Follow these steps to filter your test results by a specific rule.
- Navigate to the Test tab of the policy you want to analyze.
- In the policy definition panel on the left, expand the label that contains the rule you wish to investigate.
- Simply click on the specific rule (assertion) you want to filter by.
- When the test results are filtered by an assertion, you are seeing a subset of your data where that specific rule evaluated to
true.
The test results view will automatically update, displaying only the rows that were directly affected by the selected rule.
We’d Love to Hear From You
Whether you have a suggestion, feedback, or a bug to report, here are the best ways to get in touch:
- In the App: Use the Feedback button for direct suggestions.
- On Slack: Reach out to the team in your shared channel.
- With your AM: Talk to your dedicated account manager.
- Via Email: Send a message to [email protected].