Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
amne51ac authored Jan 29, 2025
2 parents 23692d2 + 060ab6e commit 027940a
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 37 deletions.
50 changes: 41 additions & 9 deletions ingestion/src/metadata/ingestion/ometa/mixins/es_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,19 +402,51 @@ def yield_es_view_def(
"query": {
"bool": {
"must": [
{"term": {"service.name.keyword": service_name}},
{
"term": {
"tableType": [
TableType.View.value,
TableType.MaterializedView.value,
TableType.SecureView.value,
TableType.Dynamic.value,
"bool": {
"should": [
{"term": {"service.name.keyword": service_name}}
]
}
},
{
"bool": {
"must": [
{
"bool": {
"should": [
{
"term": {
"tableType": TableType.View.value
}
},
{
"term": {
"tableType": TableType.MaterializedView.value
}
},
{
"term": {
"tableType": TableType.SecureView.value
}
},
{
"term": {
"tableType": TableType.Dynamic.value
}
},
]
}
}
]
}
},
{"term": {"deleted": False}},
{"exists": {"field": "schemaDefinition"}},
{"bool": {"should": [{"term": {"deleted": False}}]}},
{
"bool": {
"should": [{"exists": {"field": "schemaDefinition"}}]
}
},
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,18 @@ def procedure_lineage_generator(self) -> Iterable[ProcedureAndQuery]:
"query": {
"bool": {
"must": [
{"term": {"service.name.keyword": self.service_name}},
{"term": {"deleted": False}},
{
"bool": {
"should": [
{
"term": {
"service.name.keyword": self.service_name
}
}
]
}
},
{"bool": {"should": [{"term": {"deleted": False}}]}},
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,26 +197,32 @@ const DocumentationTab = ({
<Typography.Text className="right-panel-label">
{t('label.owner-plural')}
</Typography.Text>
{editOwnerPermission && domain.owners && (
<UserTeamSelectableList
hasPermission
multiple={{ team: false, user: true }}
owner={domain.owners}
onUpdate={(updatedUser) => handleUpdatedOwner(updatedUser)}>
<Tooltip
title={t('label.edit-entity', {
entity: t('label.owner-plural'),
})}>
<Button
className="cursor-pointer flex-center m-l-xss"
data-testid="edit-owner"
icon={<EditIcon color={DE_ACTIVE_COLOR} width="14px" />}
size="small"
type="text"
/>
</Tooltip>
</UserTeamSelectableList>
)}
{editOwnerPermission &&
domain.owners &&
domain.owners.length > 0 && (
<UserTeamSelectableList
hasPermission
multiple={{ team: false, user: true }}
owner={domain.owners}
onUpdate={(updatedUser) =>
handleUpdatedOwner(updatedUser)
}>
<Tooltip
title={t('label.edit-entity', {
entity: t('label.owner-plural'),
})}>
<Button
className="cursor-pointer flex-center m-l-xss"
data-testid="edit-owner"
icon={
<EditIcon color={DE_ACTIVE_COLOR} width="14px" />
}
size="small"
type="text"
/>
</Tooltip>
</UserTeamSelectableList>
)}
</div>

<Space className="m-r-xss" size={4}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Card, Space, Typography } from 'antd';
import React, { FC, useMemo } from 'react';
import { ReactComponent as AnnouncementIcon } from '../../../../assets/svg/announcements-v1.svg';
import { Thread } from '../../../../generated/entity/feed/thread';
import RichTextEditorPreviewerV1 from '../../RichTextEditor/RichTextEditorPreviewerV1';
import './AnnouncementCard.less';

interface Props {
Expand Down Expand Up @@ -50,12 +51,12 @@ const AnnouncementCard: FC<Props> = ({ onClick, announcement }) => {
</Typography.Paragraph>
</Space>
{message && (
<Typography.Paragraph
ellipsis
className="text-grey-muted m-0 text-xs"
data-testid="announcement-message">
{message}
</Typography.Paragraph>
<RichTextEditorPreviewerV1
className="text-grey-muted m-0 text-xss"
data-testid="announcement-message"
markdown={message}
reducePreviewLineClass="max-one-line"
/>
)}
</Card>
);
Expand Down

0 comments on commit 027940a

Please sign in to comment.