UI - Conditions - Offer some information about what the filter/condition/trigger saw (#3062)

This commit is contained in:
dgtlmoon
2025-03-27 10:29:11 +01:00
committed by GitHub
parent 6c1b687cd1
commit 54b7c070f7
6 changed files with 19 additions and 13 deletions

View File

@@ -334,12 +334,14 @@ class perform_site_check(difference_detection_processor):
# And check if 'conditions' will let this pass through
if watch.get('conditions') and watch.get('conditions_match_logic'):
if not execute_ruleset_against_all_plugins(current_watch_uuid=watch.get('uuid'),
application_datastruct=self.datastore.data,
ephemeral_data={
'text': stripped_text_from_html
}
):
conditions_result = execute_ruleset_against_all_plugins(current_watch_uuid=watch.get('uuid'),
application_datastruct=self.datastore.data,
ephemeral_data={
'text': stripped_text_from_html
}
)
if not conditions_result.get('result'):
# Conditions say "Condition not met" so we block it.
blocked = True