Skip to content

Commit 4bf74f1

Browse files
wip
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent b021176 commit 4bf74f1

22 files changed

Lines changed: 1357 additions & 681 deletions

.task/checksum/generate-ent-smart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
72fa30a003302debf7d1483ca0dc91d9
1+
61e2ab6dbc47a1e3535bd5d6128a8b14
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
94e0895ee52c5b94d359b74cfc3bdf7
1+
7842eb30ae6691f0d342b4ac7f77549b
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a5ea6f046fb222aad2d3c0483d6da270
1+
9f7a6cf93682ba9c334cb528ff4f46d3

cmd/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func serve(ctx context.Context) error {
278278
// add auth and integration options
279279
so.AddServerOptions(
280280
serveropts.WithAuth(),
281-
serveropts.WithIntegrationsRuntime(dbClient),
281+
serveropts.WithIntegrationsRuntime(ctx, dbClient),
282282
)
283283

284284
// add session manager
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ab1a715fb86d24166a914417c34ed7ea5fa6e5e84c908dab42037e35f712e64c
1+
a5249abb9688a21c3e9a1a55ffa3a902d27415f016c0d3adeb2bf6fff6e91098
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
77569e5f492746f4a0dbb2afecb5c1a9e7566307cbfa805a10a197ca180faace
1+
0a451c79267f3f3eae7b639646c5bb218c63d7a4271c535cc922c17ff82946e1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42e2e0f073ec4fefbc285d28b305afe2b4c1bcf34487541a035dbb372609206f
1+
813b1073a55487c19c5616e4b2b12067b86cc1bd2f78f3e90d3029b11e1a0048
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9186a098127484e3a4916396176d315605648724080287999ac06a6cd1c6c793
1+
1aa6acdf108b9d69fb351f1cfeba20ce006683287a454c11682fcc11600dfb5c

internal/graphapi/clientschema/schema.graphql

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8899,6 +8899,14 @@ type Control implements Node {
88998899
Returns the workflow event timeline for this control across all workflow instances
89008900
"""
89018901
workflowTimeline(after: Cursor, first: Int, before: Cursor, last: Int, orderBy: [WorkflowEventOrder!], where: WorkflowEventWhereInput, includeEmitFailures: Boolean): WorkflowEventConnection!
8902+
"""
8903+
relatedControls show the controls and frameworks mapped to this control
8904+
"""
8905+
relatedControls: RelatedControlConnection!
8906+
"""
8907+
relatedSubcontrols show the subcontrols and frameworks mapped to this control
8908+
"""
8909+
relatedSubcontrols: RelatedSubcontrolConnection!
89028910
}
89038911
"""
89048912
Return response for createBulkControl mutation
@@ -70578,10 +70586,6 @@ type RelatedControlConnection {
7057870586
"""
7057970587
edges: [RelatedControlEdge]
7058070588
"""
70581-
Information to aid in pagination.
70582-
"""
70583-
pageInfo: PageInfo!
70584-
"""
7058570589
Identifies the total count of items in the connection.
7058670590
"""
7058770591
totalCount: Int!
@@ -70596,26 +70600,6 @@ type RelatedControlEdge {
7059670600
node: Control!
7059770601
}
7059870602
"""
70599-
Ordering options for RelatedControl connections
70600-
"""
70601-
input RelatedControlOrder {
70602-
"""
70603-
The ordering direction.
70604-
"""
70605-
direction: OrderDirection! = ASC
70606-
"""
70607-
The field by which to order RelatedControl.
70608-
"""
70609-
field: RelatedControlOrderField!
70610-
}
70611-
"""
70612-
Properties by which RelatedControl connections can be ordered.
70613-
"""
70614-
enum RelatedControlOrderField {
70615-
referenceFramework
70616-
systemOwned
70617-
}
70618-
"""
7061970603
A connection to a list of items.
7062070604
"""
7062170605
type RelatedSubcontrolConnection {
@@ -70624,10 +70608,6 @@ type RelatedSubcontrolConnection {
7062470608
"""
7062570609
edges: [RelatedSubcontrolEdge]
7062670610
"""
70627-
Information to aid in pagination.
70628-
"""
70629-
pageInfo: PageInfo!
70630-
"""
7063170611
Identifies the total count of items in the connection.
7063270612
"""
7063370613
totalCount: Int!
@@ -70641,26 +70621,6 @@ type RelatedSubcontrolEdge {
7064170621
"""
7064270622
node: Subcontrol!
7064370623
}
70644-
"""
70645-
Ordering options for RelatedSubcontrol connections
70646-
"""
70647-
input RelatedSubcontrolOrder {
70648-
"""
70649-
The ordering direction.
70650-
"""
70651-
direction: OrderDirection! = ASC
70652-
"""
70653-
The field by which to order RelatedSubcontrol.
70654-
"""
70655-
field: RelatedSubcontrolOrderField!
70656-
}
70657-
"""
70658-
Properties by which RelatedSubcontrol connections can be ordered.
70659-
"""
70660-
enum RelatedSubcontrolOrderField {
70661-
referenceFramework
70662-
systemOwned
70663-
}
7066470624
type Remediation implements Node {
7066570625
id: ID!
7066670626
createdAt: Time
@@ -79130,6 +79090,14 @@ type Subcontrol implements Node {
7913079090
where: IdentityHolderWhereInput
7913179091
): IdentityHolderConnection!
7913279092
"""
79093+
relatedControls show the controls and frameworks mapped to this control
79094+
"""
79095+
relatedControls: RelatedControlConnection!
79096+
"""
79097+
relatedSubcontrols show the subcontrols and frameworks mapped to this control
79098+
"""
79099+
relatedSubcontrols: RelatedSubcontrolConnection!
79100+
"""
7913379101
Indicates if this subcontrol has pending changes awaiting workflow approval
7913479102
"""
7913579103
hasPendingWorkflow: Boolean!

internal/graphapi/control_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ func TestMutationCreateControlsByClone(t *testing.T) {
882882
request: testclient.CloneControlInput{
883883
ControlIDs: []string{orgOwnedControl.ID},
884884
},
885-
expectedStandard: lo.ToPtr("Custom"),
885+
expectedStandard: lo.ToPtr("CUSTOM"),
886886
expectedControls: []*generated.Control{orgOwnedControl},
887887
client: suite.client.api,
888888
ctx: sharedTestUser2.UserCtx,
@@ -891,7 +891,7 @@ func TestMutationCreateControlsByClone(t *testing.T) {
891891
{
892892
name: "clone control under org, empty request",
893893
request: testclient.CloneControlInput{},
894-
expectedStandard: lo.ToPtr("Custom"),
894+
expectedStandard: lo.ToPtr("CUSTOM"),
895895
expectedControls: []*generated.Control{orgOwnedControl},
896896
client: suite.client.api,
897897
ctx: sharedTestUser2.UserCtx,
@@ -2295,7 +2295,7 @@ func TestQueryControlSubcategories(t *testing.T) {
22952295
// never try to run this in parallel with other tests that create controls
22962296
// or standards, or that have controls linked to them
22972297
func TestQueryControlCategoriesByFramework(t *testing.T) {
2298-
customFramework := "Custom"
2298+
customFramework := "CUSTOM"
22992299

23002300
newUser := suite.userBuilder(context.Background(), t)
23012301
newUser2 := suite.userBuilder(context.Background(), t)
@@ -2440,7 +2440,7 @@ func TestQueryControlCategoriesByFramework(t *testing.T) {
24402440
}
24412441

24422442
func TestQueryControlSubcategoriesByFramework(t *testing.T) {
2443-
customFramework := "Custom"
2443+
customFramework := "CUSTOM"
24442444

24452445
testUser := suite.userBuilder(context.Background(), t)
24462446
testUserAnother := suite.userBuilder(context.Background(), t)

0 commit comments

Comments
 (0)