mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-16 01:58:41 +00:00
GEN-Activity Feed Filtering (#18873)
* fix: Update configuration for activity feed. * fix: Migrations * remove the customProperty and testSuite feed beautification case from the feed * fix: Remove custom properties from the source * fix: add metric in the matchAnySource. --------- Co-authored-by: Ashish Gupta <ashish@getcollate.io>
This commit is contained in:
parent
30196f4c8d
commit
28f551d20a
@ -54,4 +54,6 @@ set json = JSON_SET(json, '$.connection.config.supportsSystemProfile', true)
|
||||
where serviceType in ('Snowflake', 'Redshift', 'BigQuery');
|
||||
|
||||
-- Update all rows in the consumers_dlq table to set the source column to 'publisher'
|
||||
UPDATE consumers_dlq SET source = 'publisher';
|
||||
UPDATE consumers_dlq SET source = 'publisher';
|
||||
|
||||
DELETE from event_subscription_entity where name = "ActivityFeedAlert";
|
||||
@ -70,4 +70,6 @@ SET json = jsonb_set(json::jsonb, '{connection,config,supportsSystemProfile}', '
|
||||
WHERE serviceType IN ('Snowflake', 'Redshift', 'BigQuery');
|
||||
|
||||
-- Update all rows in the consumers_dlq table to set the source column to 'publisher'
|
||||
UPDATE consumers_dlq SET source = 'publisher';
|
||||
UPDATE consumers_dlq SET source = 'publisher';
|
||||
|
||||
DELETE from event_subscription_entity where name = 'ActivityFeedAlert';
|
||||
@ -10,26 +10,20 @@
|
||||
{
|
||||
"name": "matchAnyEventType",
|
||||
"effect": "include",
|
||||
"condition": "matchAnyEventType({'entityCreated', 'entityDeleted', 'entitySoftDeleted'}) && !matchUpdatedBy({'ingestion-bot'}) && !matchAnySource({'user', 'ingestionPipeline', 'workflow'})",
|
||||
"condition": "matchAnyEventType({'entityCreated', 'entityDeleted', 'entitySoftDeleted'}) && !matchUpdatedBy({'ingestion-bot'}) && !matchAnySource({'user', 'team', 'owners', 'databaseService', 'messagingService', 'dashboardService', 'pipelineService', 'storageService', 'mlmodelService', 'metadataService', 'searchService', 'apiService', 'ingestionPipeline', 'workflow'})",
|
||||
"prefixCondition": "AND"
|
||||
},
|
||||
{
|
||||
"name": "matchAnyFieldChange",
|
||||
"effect": "include",
|
||||
"condition": "matchAnyFieldChange({'testCaseResult'})",
|
||||
"prefixCondition": "OR"
|
||||
},
|
||||
{
|
||||
"name": "matchAnyFieldChange",
|
||||
"effect": "include",
|
||||
"condition": "matchAnyFieldChange({'description', 'domain', 'owners', 'tags', 'followers', 'extension','parameterValues', 'assets'})",
|
||||
"condition": "matchAnyFieldChange({'description', 'domain', 'owners', 'tags', 'followers','parameterValues', 'assets'})",
|
||||
"prefixCondition": "OR"
|
||||
},
|
||||
{
|
||||
"name": "matchAnySource",
|
||||
"effect": "include",
|
||||
"prefixCondition": "AND",
|
||||
"condition": "matchAnySource({'chart','container','dashboard','dashboardDataModel','database','databaseSchema','glossary','glossaryTerm','mlmodel','pipeline','query','report','searchIndex','storedProcedure','table','topic','testSuite','testCase', 'domain', 'dataProduct'})"
|
||||
"condition": "matchAnySource({'chart','container','dashboard','dashboardDataModel','database','databaseSchema','glossary','glossaryTerm','mlmodel','pipeline','query','report','searchIndex','storedProcedure','table','topic', 'domain', 'dataProduct', 'metric'})"
|
||||
},
|
||||
{
|
||||
"name": "matchUpdatedBy",
|
||||
@ -76,9 +70,7 @@
|
||||
"owners",
|
||||
"tags",
|
||||
"followers",
|
||||
"extension",
|
||||
"parameterValues",
|
||||
"testCaseResult",
|
||||
"pipelineStatus"
|
||||
]
|
||||
}
|
||||
@ -108,8 +100,6 @@
|
||||
"storedProcedure",
|
||||
"table",
|
||||
"topic",
|
||||
"testSuite",
|
||||
"testCase",
|
||||
"domain",
|
||||
"dataProduct"
|
||||
]
|
||||
|
||||
@ -29,17 +29,14 @@ import {
|
||||
import { formatDateTime } from '../../../../utils/date-time/DateTimeUtils';
|
||||
import entityUtilClassBase from '../../../../utils/EntityUtilClassBase';
|
||||
import {
|
||||
entityDisplayName,
|
||||
getEntityFQN,
|
||||
getEntityType,
|
||||
getFrontEndFormat,
|
||||
MarkdownToHTMLConverter,
|
||||
} from '../../../../utils/FeedUtils';
|
||||
import ExploreSearchCard from '../../../ExploreV1/ExploreSearchCard/ExploreSearchCard';
|
||||
import CustomPropertyFeed from '../../ActivityFeedCardV2/FeedCardBody/CustomPropertyFeed/CustomPropertyFeed.component';
|
||||
import DescriptionFeed from '../../ActivityFeedCardV2/FeedCardBody/DescriptionFeed/DescriptionFeed';
|
||||
import TagsFeed from '../../ActivityFeedCardV2/FeedCardBody/TagsFeed/TagsFeed';
|
||||
import TestCaseFeed from '../../ActivityFeedCardV2/FeedCardBody/TestCaseFeed/TestCaseFeed';
|
||||
import './feed-card-body-v1.less';
|
||||
import { FeedCardBodyV1Props } from './FeedCardBodyV1.interface';
|
||||
|
||||
@ -83,15 +80,6 @@ const FeedCardBodyV1 = ({
|
||||
return <TagsFeed feed={feed} />;
|
||||
}
|
||||
|
||||
if (cardStyle === CardStyle.TestCaseResult) {
|
||||
return (
|
||||
<TestCaseFeed
|
||||
entitySpecificInfo={feed.feedInfo?.entitySpecificInfo}
|
||||
testCaseName={entityDisplayName(entityType, entityFQN) ?? ''}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (ASSET_CARD_STYLES.includes(cardStyle as CardStyle)) {
|
||||
const entityInfo = feed.feedInfo?.entitySpecificInfo?.entity;
|
||||
const isExecutableTestSuite =
|
||||
@ -127,10 +115,6 @@ const FeedCardBodyV1 = ({
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
if (cardStyle === CardStyle.CustomProperties) {
|
||||
return <CustomPropertyFeed feed={feed} />;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user