From 37e57c0f0f72ff8550a7baec6a6389dbcbd222ee Mon Sep 17 00:00:00 2001 From: Andrew Sikowitz Date: Wed, 14 Feb 2024 11:36:47 -0800 Subject: [PATCH] feat(graphql): Miscellaneous query additions --- datahub-web-react/src/graphql/dataPlatform.graphql | 8 ++++++++ datahub-web-react/src/graphql/post.graphql | 3 +++ datahub-web-react/src/graphql/preview.graphql | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/datahub-web-react/src/graphql/dataPlatform.graphql b/datahub-web-react/src/graphql/dataPlatform.graphql index e81fabfea37a9b..6281cf155a5d22 100644 --- a/datahub-web-react/src/graphql/dataPlatform.graphql +++ b/datahub-web-react/src/graphql/dataPlatform.graphql @@ -3,3 +3,11 @@ query getDataPlatform($urn: String!) { ...platformFields } } + +query getDataPlatforms($urns: [String!]!) { + entities(urns: $urns) { + ... on DataPlatform { + ...platformFields + } + } +} diff --git a/datahub-web-react/src/graphql/post.graphql b/datahub-web-react/src/graphql/post.graphql index 9f3bcfec3c5fc1..f29683fa6d036d 100644 --- a/datahub-web-react/src/graphql/post.graphql +++ b/datahub-web-react/src/graphql/post.graphql @@ -7,6 +7,9 @@ query listPosts($input: ListPostsInput!) { urn type postType + lastModified { + time + } content { contentType title diff --git a/datahub-web-react/src/graphql/preview.graphql b/datahub-web-react/src/graphql/preview.graphql index daa11b2e627e1b..48482c64face9a 100644 --- a/datahub-web-react/src/graphql/preview.graphql +++ b/datahub-web-react/src/graphql/preview.graphql @@ -295,6 +295,16 @@ fragment entityPreview on Entity { ...deprecationFields } } + ... on MLFeature { + name + description + ownership { + ...ownershipFields + } + deprecation { + ...deprecationFields + } + } ... on MLModelGroup { name origin