-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into docs/versioning-static-asset
- Loading branch information
Showing
38 changed files
with
830 additions
and
36,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
datahub-web-react/src/app/entity/dataPlatformInstance/DataPlatformInstanceEntity.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import * as React from 'react'; | ||
import { DataPlatformInstance, EntityType } from '../../../types.generated'; | ||
import { Entity } from '../Entity'; | ||
import { GenericEntityProperties } from '../shared/types'; | ||
import { getDataForEntityType } from '../shared/containers/profile/utils'; | ||
|
||
/** | ||
* Definition of the DataHub DataPlatformInstance entity. | ||
* Most of this still needs to be filled out. | ||
*/ | ||
export class DataPlatformInstanceEntity implements Entity<DataPlatformInstance> { | ||
type: EntityType = EntityType.DataPlatformInstance; | ||
|
||
icon = () => { | ||
return <></>; | ||
}; | ||
|
||
isSearchEnabled = () => false; | ||
|
||
isBrowseEnabled = () => false; | ||
|
||
isLineageEnabled = () => false; | ||
|
||
getAutoCompleteFieldName = () => 'name'; | ||
|
||
getPathName = () => 'dataPlatformInstance'; | ||
|
||
getEntityName = () => 'Data Platform Instance'; | ||
|
||
getCollectionName = () => 'Data Platform Instances'; | ||
|
||
renderProfile = () => <></>; | ||
|
||
getOverridePropertiesFromEntity = (): GenericEntityProperties => { | ||
return {}; | ||
}; | ||
|
||
renderPreview = () => { | ||
return <></>; | ||
}; | ||
|
||
renderSearch = () => { | ||
return <></>; | ||
}; | ||
|
||
displayName = (data: DataPlatformInstance) => { | ||
return data?.instanceId || data.urn; | ||
}; | ||
|
||
getGenericEntityProperties = (data: DataPlatformInstance) => { | ||
return getDataForEntityType({ | ||
data, | ||
entityType: this.type, | ||
getOverrideProperties: this.getOverridePropertiesFromEntity, | ||
}); | ||
}; | ||
|
||
supportedCapabilities = () => { | ||
return new Set([]); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.