Ingestion Bot Fix + AcitvityFeedAlerts Update (#9475)

This commit is contained in:
Mohit Yadav 2022-12-22 04:42:16 +05:30 committed by GitHub
parent 20fa7b10fa
commit 517da06ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -72,6 +72,8 @@ public class ChangeEventHandler implements EventHandler {
if (changeEvent == null) { if (changeEvent == null) {
return null; return null;
} }
// Always set the Change Event Username as context Principal, the one creating the CE
changeEvent.setUserName(loggedInUserName);
LOG.info( LOG.info(
"Recording change event {}:{}:{}:{}", "Recording change event {}:{}:{}:{}",
changeEvent.getTimestamp(), changeEvent.getTimestamp(),

View File

@ -9,12 +9,12 @@
}, },
"filteringRules": [ "filteringRules": [
{ {
"name": "DisableIngestionActivityFeedData", "name": "matchUpdatedBy",
"effect": "exclude", "effect": "exclude",
"condition": "matchUpdatedBy('ingestion-bot')" "condition": "matchUpdatedBy('ingestion-bot')"
}, },
{ {
"name": "DisableUsageSummaryFromActivityFeed", "name": "matchAnyFieldChange",
"effect": "exclude", "effect": "exclude",
"condition": "matchAnyFieldChange('usageSummary')" "condition": "matchAnyFieldChange('usageSummary')"
} }