diff --git a/backend/dataall/modules/dataset_sharing/api/resolvers.py b/backend/dataall/modules/dataset_sharing/api/resolvers.py index a249592d9..e01c4478d 100644 --- a/backend/dataall/modules/dataset_sharing/api/resolvers.py +++ b/backend/dataall/modules/dataset_sharing/api/resolvers.py @@ -126,6 +126,7 @@ def resolve_dataset(context: Context, source: ShareObject, **kwargs): 'AwsAccountId': env.AwsAccountId if env else 'NotFound', 'region': env.region if env else 'NotFound', 'exists': True if ds else False, + 'description' : ds.description } diff --git a/backend/dataall/modules/dataset_sharing/api/types.py b/backend/dataall/modules/dataset_sharing/api/types.py index 41722352f..ed954962a 100644 --- a/backend/dataall/modules/dataset_sharing/api/types.py +++ b/backend/dataall/modules/dataset_sharing/api/types.py @@ -99,6 +99,7 @@ gql.Field(name='AwsAccountId', type=gql.String), gql.Field(name='region', type=gql.String), gql.Field(name='exists', type=gql.Boolean), + gql.Field(name='description', type=gql.String), ], ) diff --git a/frontend/src/design/components/ObjectBrief.js b/frontend/src/design/components/ObjectBrief.js index 19a7a1291..925310135 100644 --- a/frontend/src/design/components/ObjectBrief.js +++ b/frontend/src/design/components/ObjectBrief.js @@ -116,7 +116,11 @@ export const ObjectBrief = (props) => { Description - + {description} diff --git a/frontend/src/modules/Shares/services/getShareObject.js b/frontend/src/modules/Shares/services/getShareObject.js index 3075c3e85..61bcbed10 100644 --- a/frontend/src/modules/Shares/services/getShareObject.js +++ b/frontend/src/modules/Shares/services/getShareObject.js @@ -56,6 +56,7 @@ export const getShareObject = ({ shareUri, filter }) => ({ AwsAccountId region exists + description } } } diff --git a/frontend/src/modules/Shares/views/ShareView.js b/frontend/src/modules/Shares/views/ShareView.js index 1b06cd83a..50b048df8 100644 --- a/frontend/src/modules/Shares/views/ShareView.js +++ b/frontend/src/modules/Shares/views/ShareView.js @@ -728,6 +728,28 @@ const ShareView = () => { + + + + + + + + + + {share.dataset.description.trim().length !== 0 + ? share.dataset.description + : 'No dataset description'} + + + + +