Compliance updates should be public
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -39,8 +39,7 @@ export function MainLayout(props: Props) {
|
|||||||
<TabLink to="/documents">{__("Documents")}</TabLink>
|
<TabLink to="/documents">{__("Documents")}</TabLink>
|
||||||
{trustCenter.vendorInfo.totalCount > 0
|
{trustCenter.vendorInfo.totalCount > 0
|
||||||
&& <TabLink to="/subprocessors">{__("Subprocessors")}</TabLink>}
|
&& <TabLink to="/subprocessors">{__("Subprocessors")}</TabLink>}
|
||||||
{isAuthenticated
|
<TabLink to="/updates">{__("Updates")}</TabLink>
|
||||||
&& <TabLink to="/updates">{__("Updates")}</TabLink>}
|
|
||||||
</Tabs>
|
</Tabs>
|
||||||
<Outlet context={{ trustCenter }} />
|
<Outlet context={{ trustCenter }} />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -131,19 +131,19 @@ type ComplianceFrameworkEdge
|
|||||||
node: ComplianceFramework!
|
node: ComplianceFramework!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdate implements Node @nda {
|
type MailingListUpdate implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: String!
|
title: String!
|
||||||
body: String!
|
body: String!
|
||||||
updatedAt: Datetime!
|
updatedAt: Datetime!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdateConnection @nda {
|
type MailingListUpdateConnection {
|
||||||
edges: [MailingListUpdateEdge!]!
|
edges: [MailingListUpdateEdge!]!
|
||||||
pageInfo: PageInfo!
|
pageInfo: PageInfo!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdateEdge @nda {
|
type MailingListUpdateEdge {
|
||||||
cursor: CursorKey!
|
cursor: CursorKey!
|
||||||
node: MailingListUpdate!
|
node: MailingListUpdate!
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1832,19 +1832,19 @@ type ComplianceFrameworkEdge
|
|||||||
node: ComplianceFramework!
|
node: ComplianceFramework!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdate implements Node @nda {
|
type MailingListUpdate implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: String!
|
title: String!
|
||||||
body: String!
|
body: String!
|
||||||
updatedAt: Datetime!
|
updatedAt: Datetime!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdateConnection @nda {
|
type MailingListUpdateConnection {
|
||||||
edges: [MailingListUpdateEdge!]!
|
edges: [MailingListUpdateEdge!]!
|
||||||
pageInfo: PageInfo!
|
pageInfo: PageInfo!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MailingListUpdateEdge @nda {
|
type MailingListUpdateEdge {
|
||||||
cursor: CursorKey!
|
cursor: CursorKey!
|
||||||
node: MailingListUpdate!
|
node: MailingListUpdate!
|
||||||
}
|
}
|
||||||
@@ -5259,20 +5259,7 @@ func (ec *executionContext) _MailingListUpdateConnection_edges(ctx context.Conte
|
|||||||
func(ctx context.Context) (any, error) {
|
func(ctx context.Context) (any, error) {
|
||||||
return obj.Edges, nil
|
return obj.Edges, nil
|
||||||
},
|
},
|
||||||
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
nil,
|
||||||
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
|
|
||||||
},
|
|
||||||
ec.marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ,
|
ec.marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
@@ -5375,20 +5362,7 @@ func (ec *executionContext) _MailingListUpdateEdge_node(ctx context.Context, fie
|
|||||||
func(ctx context.Context) (any, error) {
|
func(ctx context.Context) (any, error) {
|
||||||
return obj.Node, nil
|
return obj.Node, nil
|
||||||
},
|
},
|
||||||
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
nil,
|
||||||
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
|
|
||||||
},
|
|
||||||
ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdate,
|
ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdate,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
@@ -8092,20 +8066,7 @@ func (ec *executionContext) _TrustCenter_updates(ctx context.Context, field grap
|
|||||||
fc := graphql.GetFieldContext(ctx)
|
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))
|
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 {
|
nil,
|
||||||
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
|
|
||||||
},
|
|
||||||
ec.marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection,
|
ec.marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
|
|||||||
Reference in New Issue
Block a user