diff --git a/apps/trust/src/layouts/MainLayout.tsx b/apps/trust/src/layouts/MainLayout.tsx index ad20b4099..d2c078d44 100644 --- a/apps/trust/src/layouts/MainLayout.tsx +++ b/apps/trust/src/layouts/MainLayout.tsx @@ -39,8 +39,7 @@ export function MainLayout(props: Props) { {__("Documents")} {trustCenter.vendorInfo.totalCount > 0 && {__("Subprocessors")}} - {isAuthenticated - && {__("Updates")}} + {__("Updates")} diff --git a/pkg/server/api/trust/v1/schema.graphql b/pkg/server/api/trust/v1/schema.graphql index 9dcfcc09b..5de44ee6c 100644 --- a/pkg/server/api/trust/v1/schema.graphql +++ b/pkg/server/api/trust/v1/schema.graphql @@ -131,19 +131,19 @@ type ComplianceFrameworkEdge node: ComplianceFramework! } -type MailingListUpdate implements Node @nda { +type MailingListUpdate implements Node { id: ID! title: String! body: String! updatedAt: Datetime! } -type MailingListUpdateConnection @nda { +type MailingListUpdateConnection { edges: [MailingListUpdateEdge!]! pageInfo: PageInfo! } -type MailingListUpdateEdge @nda { +type MailingListUpdateEdge { cursor: CursorKey! node: MailingListUpdate! } diff --git a/pkg/server/api/trust/v1/schema/schema.go b/pkg/server/api/trust/v1/schema/schema.go index 2a54572e3..98bc37586 100644 --- a/pkg/server/api/trust/v1/schema/schema.go +++ b/pkg/server/api/trust/v1/schema/schema.go @@ -1832,19 +1832,19 @@ type ComplianceFrameworkEdge node: ComplianceFramework! } -type MailingListUpdate implements Node @nda { +type MailingListUpdate implements Node { id: ID! title: String! body: String! updatedAt: Datetime! } -type MailingListUpdateConnection @nda { +type MailingListUpdateConnection { edges: [MailingListUpdateEdge!]! pageInfo: PageInfo! } -type MailingListUpdateEdge @nda { +type MailingListUpdateEdge { cursor: CursorKey! node: MailingListUpdate! } @@ -5259,20 +5259,7 @@ func (ec *executionContext) _MailingListUpdateConnection_edges(ctx context.Conte func(ctx context.Context) (any, error) { return obj.Edges, nil }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.MailingListUpdateEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, + nil, ec.marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ, true, true, @@ -5375,20 +5362,7 @@ func (ec *executionContext) _MailingListUpdateEdge_node(ctx context.Context, fie func(ctx context.Context) (any, error) { return obj.Node, nil }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.MailingListUpdate - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, + nil, ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdate, true, true, @@ -8092,20 +8066,7 @@ func (ec *executionContext) _TrustCenter_updates(ctx context.Context, field grap fc := graphql.GetFieldContext(ctx) return ec.Resolvers.TrustCenter().Updates(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.MailingListUpdateConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, + nil, ec.marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection, true, true,