Skip to content

Commit

Permalink
Merge branch 'master' into kafka-message-size-parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Oct 20, 2023
2 parents 0669a93 + 35d7770 commit 228cfdc
Show file tree
Hide file tree
Showing 15 changed files with 534 additions and 287 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ function CreateGlossaryEntityModal(props: Props) {
<Button onClick={onClose} type="text">
Cancel
</Button>
<Button onClick={createGlossaryEntity} disabled={createButtonDisabled}>
<Button
onClick={createGlossaryEntity}
disabled={createButtonDisabled}
data-testid="glossary-entity-modal-create-button"
>
Create
</Button>
</>
Expand All @@ -130,6 +134,7 @@ function CreateGlossaryEntityModal(props: Props) {
>
<Form.Item label={<Typography.Text strong>Name</Typography.Text>}>
<StyledItem
data-testid="create-glossary-entity-modal-name"
name="name"
rules={[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,12 @@ function EntityDropdown(props: Props) {
)}
{!isDomainMoveHidden && menuItems.has(EntityMenuItems.MOVE) && (
<StyledMenuItem
data-testid="entity-menu-move-button"
key="4"
disabled={isMoveDisabled(entityType, entityData, me.platformPrivileges)}
onClick={() => setIsMoveModalVisible(true)}
>
<MenuItem data-testid="entity-menu-move-button">
<MenuItem>
<FolderOpenOutlined /> &nbsp;Move
</MenuItem>
</StyledMenuItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function MoveGlossaryEntityModal(props: Props) {

return (
<Modal
data-testid="move-glossary-entity-modal"
title="Move"
visible
onCancel={onClose}
Expand All @@ -72,7 +73,9 @@ function MoveGlossaryEntityModal(props: Props) {
<Button onClick={onClose} type="text">
Cancel
</Button>
<Button onClick={moveGlossaryEntity}>Move</Button>
<Button onClick={moveGlossaryEntity} data-testid="glossary-entity-modal-move-button">
Move
</Button>
</>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ export const SidebarOwnerSection = ({ properties, readOnly }: Props) => {
</Typography.Paragraph>
)}
{!readOnly && (
<Button type={ownersEmpty ? 'default' : 'text'} onClick={() => setShowAddModal(true)}>
<Button
type={ownersEmpty ? 'default' : 'text'}
onClick={() => setShowAddModal(true)}
data-testid="add-owners-button"
>
<PlusOutlined /> Add Owners
</Button>
)}
Expand Down
4 changes: 3 additions & 1 deletion datahub-web-react/src/app/glossary/BusinessGlossaryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ function BusinessGlossaryPage() {
{(termsError || nodesError) && (
<Message type="error" content="Failed to load glossary! An unexpected error occurred." />
)}
<MainContentWrapper>
<MainContentWrapper data-testid="glossary-entities-list">
<HeaderWrapper>
<Typography.Title level={3}>Business Glossary</Typography.Title>
<div>
<Button
data-testid="add-term-button"
id={BUSINESS_GLOSSARY_CREATE_TERM_ID}
disabled={!canManageGlossaries}
type="text"
Expand All @@ -105,6 +106,7 @@ function BusinessGlossaryPage() {
<PlusOutlined /> Add Term
</Button>
<Button
data-testid="add-term-group-button"
id={BUSINESS_GLOSSARY_CREATE_TERM_GROUP_ID}
disabled={!canManageGlossaries}
type="text"
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/glossary/GlossarySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function GlossarySidebar() {

return (
<>
<SidebarWrapper width={browserWidth}>
<SidebarWrapper width={browserWidth} data-testid="glossary-browser-sidebar">
<GlossarySearch />
<GlossaryBrowser openToEntity />
</SidebarWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -156,7 +157,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -171,7 +173,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -186,7 +189,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -203,7 +207,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -218,7 +223,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -238,7 +244,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -253,7 +260,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -268,7 +276,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -285,7 +294,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -300,7 +310,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -320,7 +331,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -335,7 +347,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -355,14 +368,16 @@
"customProperties": {
"engineInfo": "local Delta-Standalone/0.4.0",
"isBlindAppend": "True",
"isolationLevel": "Serializable"
"isolationLevel": "Serializable",
"version": "0"
},
"lastUpdatedTimestamp": 1655664815399
}
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
},
{
Expand All @@ -386,7 +401,8 @@
},
"systemMetadata": {
"lastObserved": 1672531200000,
"runId": "delta-lake-test"
"runId": "delta-lake-test",
"lastRunId": "no-run-id-provided"
}
}
]
Loading

0 comments on commit 228cfdc

Please sign in to comment.