Remove audit link to registries

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-28 15:12:30 +02:00
parent 199de3bdb0
commit ec7fe810d0
45 changed files with 540 additions and 2680 deletions

View File

@@ -31,14 +31,6 @@ export const complianceRegistryNodeQuery = graphql`
lastReviewDate
dueDate
status
audit {
id
name
framework {
id
name
}
}
owner {
id
fullName
@@ -72,13 +64,6 @@ export const createComplianceRegistryMutation = graphql`
lastReviewDate
dueDate
status
audit {
id
name
framework {
name
}
}
owner {
id
fullName
@@ -108,14 +93,6 @@ export const updateComplianceRegistryMutation = graphql`
id
fullName
}
audit {
id
name
framework {
id
name
}
}
updatedAt
}
}
@@ -176,7 +153,6 @@ export const useCreateComplianceRegistry = (connectionId: string) => {
referenceId: string;
area?: string;
source?: string;
auditId: string;
requirement?: string;
actionsToBeImplemented?: string;
regulator?: string;
@@ -191,9 +167,6 @@ export const useCreateComplianceRegistry = (connectionId: string) => {
if (!input.referenceId) {
return alert(__("Failed to create compliance registry entry: reference ID is required"));
}
if (!input.auditId) {
return alert(__("Failed to create compliance registry entry: audit is required"));
}
if (!input.ownerId) {
return alert(__("Failed to create compliance registry entry: owner is required"));
}
@@ -205,7 +178,6 @@ export const useCreateComplianceRegistry = (connectionId: string) => {
referenceId: input.referenceId,
area: input.area,
source: input.source,
auditId: input.auditId,
requirement: input.requirement,
actionsToBeImplemented: input.actionsToBeImplemented,
regulator: input.regulator,
@@ -229,7 +201,6 @@ export const useUpdateComplianceRegistry = () => {
referenceId?: string;
area?: string;
source?: string;
auditId?: string;
requirement?: string;
actionsToBeImplemented?: string;
regulator?: string;

View File

@@ -28,14 +28,6 @@ export const continualImprovementRegistryNodeQuery = graphql`
targetDate
status
priority
audit {
id
name
framework {
id
name
}
}
owner {
id
fullName
@@ -66,13 +58,6 @@ export const createContinualImprovementRegistryMutation = graphql`
targetDate
status
priority
audit {
id
name
framework {
name
}
}
owner {
id
fullName
@@ -99,14 +84,6 @@ export const updateContinualImprovementRegistryMutation = graphql`
id
fullName
}
audit {
id
name
framework {
id
name
}
}
updatedAt
}
}
@@ -167,7 +144,6 @@ export const useCreateContinualImprovementRegistry = (connectionId: string) => {
referenceId: string;
description?: string;
source?: string;
auditId: string;
ownerId: string;
targetDate?: string;
status: string;
@@ -179,9 +155,6 @@ export const useCreateContinualImprovementRegistry = (connectionId: string) => {
if (!input.referenceId) {
return alert(__("Failed to create continual improvement registry entry: reference ID is required"));
}
if (!input.auditId) {
return alert(__("Failed to create continual improvement registry entry: audit is required"));
}
if (!input.ownerId) {
return alert(__("Failed to create continual improvement registry entry: owner is required"));
}
@@ -193,7 +166,6 @@ export const useCreateContinualImprovementRegistry = (connectionId: string) => {
referenceId: input.referenceId,
description: input.description,
source: input.source,
auditId: input.auditId,
ownerId: input.ownerId,
targetDate: input.targetDate,
status: input.status || "OPEN",
@@ -214,7 +186,6 @@ export const useUpdateContinualImprovementRegistry = () => {
referenceId?: string;
description?: string;
source?: string;
auditId?: string;
ownerId?: string;
targetDate?: string;
status?: string;

View File

@@ -37,14 +37,6 @@ export const processingActivityRegistryNodeQuery = graphql`
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
id
name
}
}
organization {
id
name
@@ -80,13 +72,6 @@ export const createProcessingActivityRegistryMutation = graphql`
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
name
}
}
createdAt
}
}
@@ -114,14 +99,6 @@ export const updateProcessingActivityRegistryMutation = graphql`
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
id
name
}
}
updatedAt
}
}
@@ -179,7 +156,6 @@ export const useCreateProcessingActivityRegistry = (connectionId?: string) => {
return (input: {
organizationId: string;
auditId: string;
name: string;
purpose?: string;
dataSubjectCategory?: string;
@@ -202,15 +178,11 @@ export const useCreateProcessingActivityRegistry = (connectionId?: string) => {
if (!input.name) {
return alert(__("Failed to create processing activity registry entry: name is required"));
}
if (!input.auditId) {
return alert(__("Failed to create processing activity registry entry: audit is required"));
}
return promisifyMutation(mutate)({
variables: {
input: {
organizationId: input.organizationId,
auditId: input.auditId,
name: input.name,
purpose: input.purpose,
dataSubjectCategory: input.dataSubjectCategory,
@@ -239,7 +211,6 @@ export const useUpdateProcessingActivityRegistry = () => {
return (input: {
id: string;
auditId?: string;
name?: string;
purpose?: string;
dataSubjectCategory?: string;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<a3f34af85b45563725a110a4e6b6cbfb>>
* @generated SignedSource<<4cd5e6a5205e9438408c95bba2378cde>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,7 +13,6 @@ export type ComplianceRegistryStatus = "CLOSED" | "IN_PROGRESS" | "OPEN";
export type CreateComplianceRegistryInput = {
actionsToBeImplemented?: string | null | undefined;
area?: string | null | undefined;
auditId: string;
dueDate?: any | null | undefined;
lastReviewDate?: any | null | undefined;
organizationId: string;
@@ -34,13 +33,6 @@ export type ComplianceRegistryGraphCreateMutation$data = {
readonly node: {
readonly actionsToBeImplemented: string | null | undefined;
readonly area: string | null | undefined;
readonly audit: {
readonly framework: {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt: any;
readonly dueDate: any | null | undefined;
readonly id: string;
@@ -91,98 +83,114 @@ v3 = {
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "referenceId",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "area",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "requirement",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "actionsToBeImplemented",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "regulator",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastReviewDate",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dueDate",
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"concreteType": "People",
"concreteType": "ComplianceRegistryEdge",
"kind": "LinkedField",
"name": "owner",
"name": "complianceRegistryEdge",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"concreteType": "ComplianceRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "referenceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "area",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "requirement",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "actionsToBeImplemented",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastReviewDate",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dueDate",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "owner",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
},
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
};
return {
"fragment": {
@@ -202,65 +210,7 @@ return {
"name": "createComplianceRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ComplianceRegistryEdge",
"kind": "LinkedField",
"name": "complianceRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ComplianceRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v13/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v13/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
(v4/*: any*/)
],
"storageKey": null
}
@@ -285,66 +235,7 @@ return {
"name": "createComplianceRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ComplianceRegistryEdge",
"kind": "LinkedField",
"name": "complianceRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ComplianceRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v13/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v13/*: any*/),
(v3/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v4/*: any*/),
{
"alias": null,
"args": null,
@@ -367,16 +258,16 @@ return {
]
},
"params": {
"cacheID": "68c793eb099ce3e917992b3f8c22d551",
"cacheID": "01d9290d9f4bb8162a0d18ab3c72bdaf",
"id": null,
"metadata": {},
"name": "ComplianceRegistryGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation ComplianceRegistryGraphCreateMutation(\n $input: CreateComplianceRegistryInput!\n) {\n createComplianceRegistry(input: $input) {\n complianceRegistryEdge {\n node {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n audit {\n id\n name\n framework {\n name\n id\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
"text": "mutation ComplianceRegistryGraphCreateMutation(\n $input: CreateComplianceRegistryInput!\n) {\n createComplianceRegistry(input: $input) {\n complianceRegistryEdge {\n node {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "50e1966d2f9cc1ed347a77f8f024125c";
(node as any).hash = "c203076113948b2c59dddad5577e1c13";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8e9c859e7b87a623664e1bd16c620ef1>>
* @generated SignedSource<<fa68dc3f1afe9ab6d98e189eff649e04>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -214,32 +207,6 @@ return {
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -346,12 +313,12 @@ return {
]
},
"params": {
"cacheID": "bec30edcb0f8d7c4147e827c422d524f",
"cacheID": "2852dc9732086326e7770650cbd00ad1",
"id": null,
"metadata": {},
"name": "ComplianceRegistryGraphListQuery",
"operationKind": "query",
"text": "query ComplianceRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ComplianceRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment on Organization {\n id\n complianceRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ComplianceRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ComplianceRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment on Organization {\n id\n complianceRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<14a59a4b5703ae1fb885b70ff8c8d479>>
* @generated SignedSource<<f3d37c53737c5f0f3bd062eb2b682898>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -17,14 +17,6 @@ export type ComplianceRegistryGraphNodeQuery$data = {
readonly node: {
readonly actionsToBeImplemented?: string | null | undefined;
readonly area?: string | null | undefined;
readonly audit?: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt?: any;
readonly dueDate?: any | null | undefined;
readonly id?: string;
@@ -136,40 +128,6 @@ v11 = {
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v13 = [
(v2/*: any*/),
(v12/*: any*/)
],
v14 = {
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v2/*: any*/),
(v12/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": (v13/*: any*/),
"storageKey": null
}
],
"storageKey": null
},
v15 = {
"alias": null,
"args": null,
"concreteType": "People",
@@ -188,24 +146,33 @@ v15 = {
],
"storageKey": null
},
v16 = {
v13 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": (v13/*: any*/),
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
],
"storageKey": null
},
v17 = {
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v18 = {
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -240,11 +207,10 @@ return {
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/)
(v15/*: any*/)
],
"type": "ComplianceRegistry",
"abstractKey": null
@@ -290,11 +256,10 @@ return {
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/)
(v15/*: any*/)
],
"type": "ComplianceRegistry",
"abstractKey": null
@@ -305,16 +270,16 @@ return {
]
},
"params": {
"cacheID": "bb1bf89e0916abe7f9807404aa2cf9eb",
"cacheID": "4b91258de0711b2821a26bef89b60b02",
"id": null,
"metadata": {},
"name": "ComplianceRegistryGraphNodeQuery",
"operationKind": "query",
"text": "query ComplianceRegistryGraphNodeQuery(\n $complianceRegistryId: ID!\n) {\n node(id: $complianceRegistryId) {\n __typename\n ... on ComplianceRegistry {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
"text": "query ComplianceRegistryGraphNodeQuery(\n $complianceRegistryId: ID!\n) {\n node(id: $complianceRegistryId) {\n __typename\n ... on ComplianceRegistry {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "292fb8d0ee375d8c5e34cbf2633b7f77";
(node as any).hash = "1b3352776a5b514b7545111aeb780148";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<e0af427b5ec1a1056bee3859d5c06a8a>>
* @generated SignedSource<<833c870a75dfe52e076fd57045cf1acd>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,7 +13,6 @@ export type ComplianceRegistryStatus = "CLOSED" | "IN_PROGRESS" | "OPEN";
export type UpdateComplianceRegistryInput = {
actionsToBeImplemented?: string | null | undefined;
area?: string | null | undefined;
auditId?: string | null | undefined;
dueDate?: any | null | undefined;
id: string;
lastReviewDate?: any | null | undefined;
@@ -32,14 +31,6 @@ export type ComplianceRegistryGraphUpdateMutation$data = {
readonly complianceRegistry: {
readonly actionsToBeImplemented: string | null | undefined;
readonly area: string | null | undefined;
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly dueDate: any | null | undefined;
readonly id: string;
readonly lastReviewDate: any | null | undefined;
@@ -76,14 +67,7 @@ v1 = {
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v3 = [
v2 = [
{
"alias": null,
"args": [
@@ -189,32 +173,6 @@ v3 = [
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -235,7 +193,7 @@ return {
"kind": "Fragment",
"metadata": null,
"name": "ComplianceRegistryGraphUpdateMutation",
"selections": (v3/*: any*/),
"selections": (v2/*: any*/),
"type": "Mutation",
"abstractKey": null
},
@@ -244,19 +202,19 @@ return {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ComplianceRegistryGraphUpdateMutation",
"selections": (v3/*: any*/)
"selections": (v2/*: any*/)
},
"params": {
"cacheID": "4a4f7e9273f36c87a7e48b5373f69bc2",
"cacheID": "d6a24a6f7a42eceab325fb186e1bf7fa",
"id": null,
"metadata": {},
"name": "ComplianceRegistryGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation ComplianceRegistryGraphUpdateMutation(\n $input: UpdateComplianceRegistryInput!\n) {\n updateComplianceRegistry(input: $input) {\n complianceRegistry {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n updatedAt\n }\n }\n}\n"
"text": "mutation ComplianceRegistryGraphUpdateMutation(\n $input: UpdateComplianceRegistryInput!\n) {\n updateComplianceRegistry(input: $input) {\n complianceRegistry {\n id\n referenceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "c4d17f11888dd8a4769b471797c25b95";
(node as any).hash = "607857e9f72cf13338ea52813c035e06";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<b4f30f53809f3ed05e6830c0afade59b>>
* @generated SignedSource<<66b92b83fa5be4a0dcc2e7f11ad162b6>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -12,7 +12,6 @@ import { ConcreteRequest } from 'relay-runtime';
export type ContinualImprovementRegistriesPriority = "HIGH" | "LOW" | "MEDIUM";
export type ContinualImprovementRegistriesStatus = "CLOSED" | "IN_PROGRESS" | "OPEN";
export type CreateContinualImprovementRegistryInput = {
auditId: string;
description?: string | null | undefined;
organizationId: string;
ownerId: string;
@@ -30,13 +29,6 @@ export type ContinualImprovementRegistryGraphCreateMutation$data = {
readonly createContinualImprovementRegistry: {
readonly continualImprovementRegistryEdge: {
readonly node: {
readonly audit: {
readonly framework: {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt: any;
readonly description: string | null | undefined;
readonly id: string;
@@ -86,77 +78,93 @@ v3 = {
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "referenceId",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "description",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "targetDate",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "priority",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"concreteType": "People",
"concreteType": "ContinualImprovementRegistryEdge",
"kind": "LinkedField",
"name": "owner",
"name": "continualImprovementRegistryEdge",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"concreteType": "ContinualImprovementRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "referenceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "description",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "targetDate",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "priority",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "owner",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
};
return {
"fragment": {
@@ -176,62 +184,7 @@ return {
"name": "createContinualImprovementRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ContinualImprovementRegistryEdge",
"kind": "LinkedField",
"name": "continualImprovementRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ContinualImprovementRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v10/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v10/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v11/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
(v4/*: any*/)
],
"storageKey": null
}
@@ -256,63 +209,7 @@ return {
"name": "createContinualImprovementRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ContinualImprovementRegistryEdge",
"kind": "LinkedField",
"name": "continualImprovementRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ContinualImprovementRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v10/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v10/*: any*/),
(v3/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v11/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v4/*: any*/),
{
"alias": null,
"args": null,
@@ -335,16 +232,16 @@ return {
]
},
"params": {
"cacheID": "a3ddc3c5ac1f55ef2db276ae41ae213b",
"cacheID": "7d03cdc29b6ecb916bf8bdf5ea1df737",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistryGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation ContinualImprovementRegistryGraphCreateMutation(\n $input: CreateContinualImprovementRegistryInput!\n) {\n createContinualImprovementRegistry(input: $input) {\n continualImprovementRegistryEdge {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n audit {\n id\n name\n framework {\n name\n id\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
"text": "mutation ContinualImprovementRegistryGraphCreateMutation(\n $input: CreateContinualImprovementRegistryInput!\n) {\n createContinualImprovementRegistry(input: $input) {\n continualImprovementRegistryEdge {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "5d9e0771c839c6c220dabdb00267a7ee";
(node as any).hash = "c2acef94a51f4ae101d7d115aa9761bf";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<7d5f12e454c99687263a264f59618ebe>>
* @generated SignedSource<<09a183f301bdb0deae825495f9fdd438>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -193,32 +186,6 @@ return {
"name": "priority",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -325,12 +292,12 @@ return {
]
},
"params": {
"cacheID": "875ae8e8faf73c6c1672d6c033e8dcf0",
"cacheID": "248942c6d0d46f56e8c55fd3eb1e8888",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistryGraphListQuery",
"operationKind": "query",
"text": "query ContinualImprovementRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ContinualImprovementRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment on Organization {\n id\n continualImprovementRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ContinualImprovementRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ContinualImprovementRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment on Organization {\n id\n continualImprovementRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<6ac0e2eaa895ed1c2409e524e0333ab6>>
* @generated SignedSource<<d8054e9d19ae22b3af4b79fb3b88f5af>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -16,14 +16,6 @@ export type ContinualImprovementRegistryGraphNodeQuery$variables = {
};
export type ContinualImprovementRegistryGraphNodeQuery$data = {
readonly node: {
readonly audit?: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt?: any;
readonly description?: string | null | undefined;
readonly id?: string;
@@ -113,40 +105,6 @@ v8 = {
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v10 = [
(v2/*: any*/),
(v9/*: any*/)
],
v11 = {
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v2/*: any*/),
(v9/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": (v10/*: any*/),
"storageKey": null
}
],
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"concreteType": "People",
@@ -165,24 +123,33 @@ v12 = {
],
"storageKey": null
},
v13 = {
v10 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": (v10/*: any*/),
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
],
"storageKey": null
},
v14 = {
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v15 = {
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -214,11 +181,10 @@ return {
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/)
(v12/*: any*/)
],
"type": "ContinualImprovementRegistry",
"abstractKey": null
@@ -261,11 +227,10 @@ return {
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/)
(v12/*: any*/)
],
"type": "ContinualImprovementRegistry",
"abstractKey": null
@@ -276,16 +241,16 @@ return {
]
},
"params": {
"cacheID": "c3195d70369df1a1ca2a73fdfef37039",
"cacheID": "cdf6a776528b7eb148caaa696e7c348c",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistryGraphNodeQuery",
"operationKind": "query",
"text": "query ContinualImprovementRegistryGraphNodeQuery(\n $continualImprovementRegistryId: ID!\n) {\n node(id: $continualImprovementRegistryId) {\n __typename\n ... on ContinualImprovementRegistry {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
"text": "query ContinualImprovementRegistryGraphNodeQuery(\n $continualImprovementRegistryId: ID!\n) {\n node(id: $continualImprovementRegistryId) {\n __typename\n ... on ContinualImprovementRegistry {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "fe3c3ff44245eb13ea465ae5809ef5bd";
(node as any).hash = "1b5811e2cd314786117ef60841743dc5";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<befa49d6faa4e4c918a2ff8a85c7fe7d>>
* @generated SignedSource<<0f5c8a4c09725f287ec32e2366f5d829>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -12,7 +12,6 @@ import { ConcreteRequest } from 'relay-runtime';
export type ContinualImprovementRegistriesPriority = "HIGH" | "LOW" | "MEDIUM";
export type ContinualImprovementRegistriesStatus = "CLOSED" | "IN_PROGRESS" | "OPEN";
export type UpdateContinualImprovementRegistryInput = {
auditId?: string | null | undefined;
description?: string | null | undefined;
id: string;
ownerId?: string | null | undefined;
@@ -28,14 +27,6 @@ export type ContinualImprovementRegistryGraphUpdateMutation$variables = {
export type ContinualImprovementRegistryGraphUpdateMutation$data = {
readonly updateContinualImprovementRegistry: {
readonly continualImprovementRegistry: {
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly description: string | null | undefined;
readonly id: string;
readonly owner: {
@@ -71,14 +62,7 @@ v1 = {
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v3 = [
v2 = [
{
"alias": null,
"args": [
@@ -163,32 +147,6 @@ v3 = [
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -209,7 +167,7 @@ return {
"kind": "Fragment",
"metadata": null,
"name": "ContinualImprovementRegistryGraphUpdateMutation",
"selections": (v3/*: any*/),
"selections": (v2/*: any*/),
"type": "Mutation",
"abstractKey": null
},
@@ -218,19 +176,19 @@ return {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ContinualImprovementRegistryGraphUpdateMutation",
"selections": (v3/*: any*/)
"selections": (v2/*: any*/)
},
"params": {
"cacheID": "b3b3931c06838e6e60f33738be340d6c",
"cacheID": "4fa7e841eea92d03f30fadf630135159",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistryGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation ContinualImprovementRegistryGraphUpdateMutation(\n $input: UpdateContinualImprovementRegistryInput!\n) {\n updateContinualImprovementRegistry(input: $input) {\n continualImprovementRegistry {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n updatedAt\n }\n }\n}\n"
"text": "mutation ContinualImprovementRegistryGraphUpdateMutation(\n $input: UpdateContinualImprovementRegistryInput!\n) {\n updateContinualImprovementRegistry(input: $input) {\n continualImprovementRegistry {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "e59f20342fd5532b1815034334cd5560";
(node as any).hash = "82fad800ffad42813aeceda43c3304a3";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8372cc0960f7642aa8619dbc091dc4de>>
* @generated SignedSource<<0eb58c6c3650563cef060921b0d7f65c>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -15,7 +15,6 @@ export type ProcessingActivityRegistrySpecialOrCriminalData = "NO" | "POSSIBLE"
export type ProcessingActivityRegistryTransferImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryTransferSafeguards = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES";
export type CreateProcessingActivityRegistryInput = {
auditId: string;
consentEvidenceLink?: string | null | undefined;
dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
dataSubjectCategory?: string | null | undefined;
@@ -31,7 +30,7 @@ export type CreateProcessingActivityRegistryInput = {
securityMeasures?: string | null | undefined;
specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
transferSafeguards?: ProcessingActivityRegistryTransferSafeguards | null | undefined;
};
export type ProcessingActivityRegistryGraphCreateMutation$variables = {
connections: ReadonlyArray<string>;
@@ -41,13 +40,6 @@ export type ProcessingActivityRegistryGraphCreateMutation$data = {
readonly createProcessingActivityRegistry: {
readonly processingActivityRegistryEdge: {
readonly node: {
readonly audit: {
readonly framework: {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink: string | null | undefined;
readonly createdAt: any;
readonly dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
@@ -64,7 +56,7 @@ export type ProcessingActivityRegistryGraphCreateMutation$data = {
readonly securityMeasures: string | null | undefined;
readonly specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards | null | undefined;
};
};
};
@@ -95,120 +87,142 @@ v2 = [
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "specialOrCriminalData",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "consentEvidenceLink",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "recipients",
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferSafeguards",
"storageKey": null
},
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "retentionPeriod",
"storageKey": null
},
v16 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "securityMeasures",
"storageKey": null
},
v17 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataProtectionImpactAssessment",
"storageKey": null
},
v18 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferImpactAssessment",
"storageKey": null
},
v19 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "processingActivityRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "specialOrCriminalData",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "consentEvidenceLink",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "recipients",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferSafeguards",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "retentionPeriod",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "securityMeasures",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataProtectionImpactAssessment",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferImpactAssessment",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
};
return {
@@ -229,70 +243,7 @@ return {
"name": "createProcessingActivityRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "processingActivityRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v19/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
(v3/*: any*/)
],
"storageKey": null
}
@@ -317,71 +268,7 @@ return {
"name": "createProcessingActivityRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "processingActivityRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/),
(v3/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v19/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v3/*: any*/),
{
"alias": null,
"args": null,
@@ -404,16 +291,16 @@ return {
]
},
"params": {
"cacheID": "9942999c0282d64a6250774f8a26f1f9",
"cacheID": "22dc5c717c1e1de0a4bc8399a8e4f2eb",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation ProcessingActivityRegistryGraphCreateMutation(\n $input: CreateProcessingActivityRegistryInput!\n) {\n createProcessingActivityRegistry(input: $input) {\n processingActivityRegistryEdge {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n name\n id\n }\n }\n createdAt\n }\n }\n }\n}\n"
"text": "mutation ProcessingActivityRegistryGraphCreateMutation(\n $input: CreateProcessingActivityRegistryInput!\n) {\n createProcessingActivityRegistry(input: $input) {\n processingActivityRegistryEdge {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "7563c6519bb6f538e3c211322a5a638f";
(node as any).hash = "000dcbeea412bc2b3863a37f58135df3";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<44f708dc14c5476a3b7c8cf751aca32f>>
* @generated SignedSource<<8f505e33f8bc537835367f0f54547998>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -151,7 +144,13 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -194,32 +193,6 @@ return {
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -307,12 +280,12 @@ return {
]
},
"params": {
"cacheID": "b5b5c645e407c2bfb68aaa717b7d2ae7",
"cacheID": "720254aa19136fdf96cc29e26f980533",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphListQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ProcessingActivityRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment on Organization {\n id\n processingActivityRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ProcessingActivityRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ProcessingActivityRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment on Organization {\n id\n processingActivityRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<681e1d8f8073e0efd781bdf322b893ab>>
* @generated SignedSource<<e44cc513f256fbae2b03229efc8bd938>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -19,14 +19,6 @@ export type ProcessingActivityRegistryGraphNodeQuery$variables = {
};
export type ProcessingActivityRegistryGraphNodeQuery$data = {
readonly node: {
readonly audit?: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink?: string | null | undefined;
readonly createdAt?: any;
readonly dataProtectionImpactAssessment?: ProcessingActivityRegistryDataProtectionImpactAssessment;
@@ -47,7 +39,7 @@ export type ProcessingActivityRegistryGraphNodeQuery$data = {
readonly securityMeasures?: string | null | undefined;
readonly specialOrCriminalData?: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment?: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards?: ProcessingActivityRegistryTransferSafeguards;
readonly transferSafeguards?: ProcessingActivityRegistryTransferSafeguards | null | undefined;
readonly updatedAt?: any;
};
};
@@ -183,51 +175,27 @@ v17 = {
"name": "transferImpactAssessment",
"storageKey": null
},
v18 = [
(v2/*: any*/),
(v3/*: any*/)
],
v19 = {
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": (v18/*: any*/),
"storageKey": null
}
],
"storageKey": null
},
v20 = {
v18 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": (v18/*: any*/),
"selections": [
(v2/*: any*/),
(v3/*: any*/)
],
"storageKey": null
},
v21 = {
v19 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v22 = {
v20 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -268,10 +236,9 @@ return {
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
(v19/*: any*/),
(v20/*: any*/),
(v21/*: any*/),
(v22/*: any*/)
(v20/*: any*/)
],
"type": "ProcessingActivityRegistry",
"abstractKey": null
@@ -323,10 +290,9 @@ return {
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
(v19/*: any*/),
(v20/*: any*/),
(v21/*: any*/),
(v22/*: any*/)
(v20/*: any*/)
],
"type": "ProcessingActivityRegistry",
"abstractKey": null
@@ -337,16 +303,16 @@ return {
]
},
"params": {
"cacheID": "74eed9b882f3bf3b11af0c15f65ef870",
"cacheID": "4a2a061717de77346b788a94d5c6b4ef",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphNodeQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistryGraphNodeQuery(\n $processingActivityRegistryId: ID!\n) {\n node(id: $processingActivityRegistryId) {\n __typename\n ... on ProcessingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
"text": "query ProcessingActivityRegistryGraphNodeQuery(\n $processingActivityRegistryId: ID!\n) {\n node(id: $processingActivityRegistryId) {\n __typename\n ... on ProcessingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "979f4b05c845c90dd6359d24821e44fd";
(node as any).hash = "80aa43b56a3258a77b0d1c6c0c9b950d";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<945fa4ed1c5bab25f39047b601307e03>>
* @generated SignedSource<<86ea716b0545bec9ee5eabbc2bf35b74>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -15,7 +15,6 @@ export type ProcessingActivityRegistrySpecialOrCriminalData = "NO" | "POSSIBLE"
export type ProcessingActivityRegistryTransferImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryTransferSafeguards = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES";
export type UpdateProcessingActivityRegistryInput = {
auditId?: string | null | undefined;
consentEvidenceLink?: string | null | undefined;
dataProtectionImpactAssessment?: ProcessingActivityRegistryDataProtectionImpactAssessment | null | undefined;
dataSubjectCategory?: string | null | undefined;
@@ -39,14 +38,6 @@ export type ProcessingActivityRegistryGraphUpdateMutation$variables = {
export type ProcessingActivityRegistryGraphUpdateMutation$data = {
readonly updateProcessingActivityRegistry: {
readonly processingActivityRegistry: {
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink: string | null | undefined;
readonly dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
readonly dataSubjectCategory: string | null | undefined;
@@ -62,7 +53,7 @@ export type ProcessingActivityRegistryGraphUpdateMutation$data = {
readonly securityMeasures: string | null | undefined;
readonly specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards | null | undefined;
readonly updatedAt: any;
};
};
@@ -80,21 +71,7 @@ var v0 = [
"name": "input"
}
],
v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v3 = [
v1 = [
{
"alias": null,
"args": [
@@ -117,8 +94,20 @@ v3 = [
"name": "processingActivityRegistry",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -217,32 +206,6 @@ v3 = [
"name": "transferImpactAssessment",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -263,7 +226,7 @@ return {
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"selections": (v3/*: any*/),
"selections": (v1/*: any*/),
"type": "Mutation",
"abstractKey": null
},
@@ -272,19 +235,19 @@ return {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"selections": (v3/*: any*/)
"selections": (v1/*: any*/)
},
"params": {
"cacheID": "40f01e772e5377add784e6c455b173a9",
"cacheID": "d4baf575ac4c35aab308228550cc6474",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation ProcessingActivityRegistryGraphUpdateMutation(\n $input: UpdateProcessingActivityRegistryInput!\n) {\n updateProcessingActivityRegistry(input: $input) {\n processingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n updatedAt\n }\n }\n}\n"
"text": "mutation ProcessingActivityRegistryGraphUpdateMutation(\n $input: UpdateProcessingActivityRegistryInput!\n) {\n updateProcessingActivityRegistry(input: $input) {\n processingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "0833d096c755275a5255d98276922c04";
(node as any).hash = "2a6f14684cad524d383d66421354d6c7";
export default node;

View File

@@ -64,14 +64,6 @@ const complianceRegistriesPageFragment = graphql`
dueDate
actionsToBeImplemented
regulator
audit {
id
name
framework {
id
name
}
}
owner {
id
fullName
@@ -148,7 +140,6 @@ export default function ComplianceRegistriesPage({ queryRef }: ComplianceRegistr
<Th>{__("Area")}</Th>
<Th>{__("Source")}</Th>
<Th>{__("Status")}</Th>
<Th>{__("Audit")}</Th>
<Th>{__("Owner")}</Th>
<Th>{__("Due Date")}</Th>
<Th>{__("Actions")}</Th>
@@ -232,12 +223,6 @@ function RegistryRow({
{getStatusLabel(registry.status || "OPEN")}
</Badge>
</Td>
<Td>
{registry.audit.name
? `${registry.audit.framework.name} - ${registry.audit.name}`
: registry.audit.framework.name
}
</Td>
<Td>{registry.owner?.fullName || "-"}</Td>
<Td>
{registry.dueDate ? (

View File

@@ -27,7 +27,6 @@ import {
import { useTranslate } from "@probo/i18n";
import { useOrganizationId } from "/hooks/useOrganizationId";
import { PeopleSelectField } from "/components/form/PeopleSelectField";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { Controller } from "react-hook-form";
import z from "zod";
@@ -45,7 +44,6 @@ const updateRegistrySchema = z.object({
dueDate: z.string().optional(),
status: z.enum(["OPEN", "IN_PROGRESS", "CLOSED"]),
ownerId: z.string().min(1, "Owner is required"),
auditId: z.string().min(1, "Audit is required"),
});
type Props = {
@@ -91,7 +89,6 @@ export default function ComplianceRegistryDetailsPage(props: Props) {
: "",
status: registry.status || "OPEN",
ownerId: registry.owner?.id || "",
auditId: registry.audit?.id || "",
},
}
);
@@ -110,7 +107,7 @@ export default function ComplianceRegistryDetailsPage(props: Props) {
dueDate: formatDatetime(formData.dueDate),
status: formData.status,
ownerId: formData.ownerId,
auditId: formData.auditId,
});
toast({
@@ -165,20 +162,7 @@ export default function ComplianceRegistryDetailsPage(props: Props) {
/>
</Field>
<Controller
name="auditId"
control={control}
render={() => (
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
)}
/>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<Field

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<388195a5e7e9e9a1a167ad7cb298c935>>
* @generated SignedSource<<312905201e0a72d96dd29afeed17dee1>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -18,14 +18,6 @@ export type ComplianceRegistriesPageFragment$data = {
readonly node: {
readonly actionsToBeImplemented: string | null | undefined;
readonly area: string | null | undefined;
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt: any;
readonly dueDate: any | null | undefined;
readonly id: string;
@@ -68,13 +60,6 @@ v1 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"argumentDefinitions": [
@@ -216,32 +201,6 @@ return {
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -341,6 +300,6 @@ return {
};
})();
(node as any).hash = "c85f1b770b00186cc074726ee8766698";
(node as any).hash = "b6b97d09ba132cbc1ffb006c23a33589";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<45ac04d64bae14926f41dccda7ec5a25>>
* @generated SignedSource<<c6faaadb8a0f7d2b70fed9a5801f3580>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -214,32 +207,6 @@ return {
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -346,12 +313,12 @@ return {
]
},
"params": {
"cacheID": "fcc5d4d2cc4ca376314b334d7f36316f",
"cacheID": "e4fba5ed79a8d19c72d2814f1adf38c3",
"id": null,
"metadata": {},
"name": "ComplianceRegistriesPageQuery",
"operationKind": "query",
"text": "query ComplianceRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ComplianceRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment on Organization {\n id\n complianceRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ComplianceRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ComplianceRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment on Organization {\n id\n complianceRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<2f421894f05c26b8fbca3d5e76ebdf0d>>
* @generated SignedSource<<25a63f42437f72ee5aea5f2c6e324d4a>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -75,13 +75,6 @@ v4 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
@@ -224,32 +217,6 @@ return {
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -356,16 +323,16 @@ return {
]
},
"params": {
"cacheID": "aaec01ab09a3becc49afe167cc55acb6",
"cacheID": "2b10e1f8598c007ee1e3e93e39b51b0d",
"id": null,
"metadata": {},
"name": "ComplianceRegistriesPageRefetchQuery",
"operationKind": "query",
"text": "query ComplianceRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ComplianceRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment_2HEEH6 on Organization {\n id\n complianceRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ComplianceRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ComplianceRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ComplianceRegistriesPageFragment_2HEEH6 on Organization {\n id\n complianceRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n referenceId\n area\n source\n requirement\n status\n lastReviewDate\n dueDate\n actionsToBeImplemented\n regulator\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();
(node as any).hash = "c85f1b770b00186cc074726ee8766698";
(node as any).hash = "b6b97d09ba132cbc1ffb006c23a33589";
export default node;

View File

@@ -19,7 +19,6 @@ import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { useCreateComplianceRegistry } from "../../../../hooks/graph/ComplianceRegistryGraph";
import { PeopleSelectField } from "/components/form/PeopleSelectField";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { Controller } from "react-hook-form";
import { formatDatetime, getComplianceRegistryStatusOptions } from "@probo/helpers";
@@ -27,7 +26,6 @@ const schema = z.object({
referenceId: z.string().min(1, "Reference ID is required"),
area: z.string().optional(),
source: z.string().optional(),
auditId: z.string().min(1, "Audit is required"),
requirement: z.string().optional(),
actionsToBeImplemented: z.string().optional(),
regulator: z.string().optional(),
@@ -62,7 +60,6 @@ export function CreateComplianceRegistryDialog({
referenceId: "",
area: "",
source: "",
auditId: "",
requirement: "",
actionsToBeImplemented: "",
regulator: "",
@@ -80,7 +77,6 @@ export function CreateComplianceRegistryDialog({
referenceId: formData.referenceId,
area: formData.area || undefined,
source: formData.source || undefined,
auditId: formData.auditId,
requirement: formData.requirement || undefined,
actionsToBeImplemented: formData.actionsToBeImplemented || undefined,
regulator: formData.regulator || undefined,
@@ -124,15 +120,6 @@ export function CreateComplianceRegistryDialog({
required
/>
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
<div className="grid grid-cols-2 gap-4">
<Field
label={__("Area")}

View File

@@ -61,14 +61,6 @@ const continualImprovementRegistriesPageFragment = graphql`
targetDate
status
priority
audit {
id
name
framework {
id
name
}
}
owner {
id
fullName
@@ -145,7 +137,6 @@ export default function ContinualImprovementRegistriesPage({ queryRef }: Continu
<Th>{__("Description")}</Th>
<Th>{__("Status")}</Th>
<Th>{__("Priority")}</Th>
<Th>{__("Audit")}</Th>
<Th>{__("Owner")}</Th>
<Th>{__("Target Date")}</Th>
<Th>{__("Actions")}</Th>
@@ -244,12 +235,6 @@ function RegistryRow({
{registry.priority === "HIGH" ? __("High") : registry.priority === "MEDIUM" ? __("Medium") : __("Low")}
</Badge>
</Td>
<Td>
{registry.audit.name
? `${registry.audit.framework.name} - ${registry.audit.name}`
: registry.audit.framework.name
}
</Td>
<Td>{registry.owner?.fullName || "-"}</Td>
<Td>
{registry.targetDate ? (

View File

@@ -27,7 +27,6 @@ import {
import { useTranslate } from "@probo/i18n";
import { useOrganizationId } from "/hooks/useOrganizationId";
import { PeopleSelectField } from "/components/form/PeopleSelectField";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { Controller } from "react-hook-form";
import z from "zod";
@@ -42,7 +41,6 @@ const updateRegistrySchema = z.object({
status: z.enum(["OPEN", "IN_PROGRESS", "CLOSED"]),
priority: z.enum(["LOW", "MEDIUM", "HIGH"]),
ownerId: z.string().min(1, "Owner is required"),
auditId: z.string().min(1, "Audit is required"),
});
type Props = {
@@ -82,7 +80,6 @@ export default function ContinualImprovementRegistryDetailsPage(props: Props) {
status: registry.status || "OPEN",
priority: registry.priority || "MEDIUM",
ownerId: registry.owner?.id || "",
auditId: registry.audit?.id || "",
},
}
);
@@ -98,7 +95,7 @@ export default function ContinualImprovementRegistryDetailsPage(props: Props) {
status: formData.status,
priority: formData.priority,
ownerId: formData.ownerId,
auditId: formData.auditId,
});
toast({
@@ -165,14 +162,7 @@ export default function ContinualImprovementRegistryDetailsPage(props: Props) {
required
/>
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
<div>
<Label>{__("Description")}</Label>

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<9fd7671cda5fa074c27aebb356782846>>
* @generated SignedSource<<ee61c51b37dbc7c5b31c298b91dd8b5b>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -17,14 +17,6 @@ export type ContinualImprovementRegistriesPageFragment$data = {
readonly __id: string;
readonly edges: ReadonlyArray<{
readonly node: {
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt: any;
readonly description: string | null | undefined;
readonly id: string;
@@ -66,13 +58,6 @@ v1 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"argumentDefinitions": [
@@ -193,32 +178,6 @@ return {
"name": "priority",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -318,6 +277,6 @@ return {
};
})();
(node as any).hash = "838609d0047346d2031f045e5227c9f0";
(node as any).hash = "1532ac43a0b47d9cd63980861eaa7306";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<a226745b4849f8d82a412528166f860f>>
* @generated SignedSource<<ab460337b0bf2fc7b9af31b90c613e7a>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -193,32 +186,6 @@ return {
"name": "priority",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -325,12 +292,12 @@ return {
]
},
"params": {
"cacheID": "734faf62cb9f84c554159d0cc35a9eda",
"cacheID": "aefda1aa296696b978edb452106544c5",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistriesPageQuery",
"operationKind": "query",
"text": "query ContinualImprovementRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ContinualImprovementRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment on Organization {\n id\n continualImprovementRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ContinualImprovementRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ContinualImprovementRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment on Organization {\n id\n continualImprovementRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<4ae1cc52a5065a1ee1c8edf344307b6c>>
* @generated SignedSource<<105f0362fe12b8fd084e076e760d51f2>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -75,13 +75,6 @@ v4 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
@@ -203,32 +196,6 @@ return {
"name": "priority",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -335,16 +302,16 @@ return {
]
},
"params": {
"cacheID": "2b886a4652dbea93012ef2306451ea4e",
"cacheID": "2e8a89e4ba6d6811f415617a559381b1",
"id": null,
"metadata": {},
"name": "ContinualImprovementRegistriesPageRefetchQuery",
"operationKind": "query",
"text": "query ContinualImprovementRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ContinualImprovementRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment_2HEEH6 on Organization {\n id\n continualImprovementRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ContinualImprovementRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ContinualImprovementRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ContinualImprovementRegistriesPageFragment_2HEEH6 on Organization {\n id\n continualImprovementRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();
(node as any).hash = "838609d0047346d2031f045e5227c9f0";
(node as any).hash = "1532ac43a0b47d9cd63980861eaa7306";
export default node;

View File

@@ -19,7 +19,6 @@ import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { useCreateContinualImprovementRegistry } from "../../../../hooks/graph/ContinualImprovementRegistryGraph";
import { PeopleSelectField } from "/components/form/PeopleSelectField";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { Controller } from "react-hook-form";
import { formatDatetime } from "@probo/helpers";
@@ -27,7 +26,6 @@ const schema = z.object({
referenceId: z.string().min(1, "Reference ID is required"),
description: z.string().optional(),
source: z.string().optional(),
auditId: z.string().min(1, "Audit is required"),
ownerId: z.string().min(1, "Owner is required"),
targetDate: z.string().optional(),
status: z.enum(["OPEN", "IN_PROGRESS", "CLOSED"]),
@@ -58,7 +56,6 @@ export function CreateContinualImprovementRegistryDialog({
referenceId: "",
description: "",
source: "",
auditId: "",
ownerId: "",
targetDate: "",
status: "OPEN" as const,
@@ -73,7 +70,6 @@ export function CreateContinualImprovementRegistryDialog({
referenceId: formData.referenceId,
description: formData.description || undefined,
source: formData.source || undefined,
auditId: formData.auditId,
ownerId: formData.ownerId,
targetDate: formatDatetime(formData.targetDate),
status: formData.status,
@@ -126,15 +122,6 @@ export function CreateContinualImprovementRegistryDialog({
required
/>
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
<div>
<Label>{__("Description")}</Label>
<Textarea

View File

@@ -63,14 +63,6 @@ const processingActivityRegistriesPageFragment = graphql`
lawfulBasis
location
internationalTransfers
audit {
id
name
framework {
id
name
}
}
createdAt
updatedAt
}
@@ -145,7 +137,6 @@ export default function ProcessingActivityRegistriesPage({ queryRef }: Processin
<Th>{__("Lawful Basis")}</Th>
<Th>{__("Location")}</Th>
<Th>{__("International Transfers")}</Th>
<Th>{__("Audit")}</Th>
<Th>{__("Actions")}</Th>
</Tr>
</Thead>
@@ -240,12 +231,6 @@ function RegistryRow({
{registry.internationalTransfers ? __("Yes") : __("No")}
</Badge>
</Td>
<Td>
{registry.audit.name
? `${registry.audit.framework.name} - ${registry.audit.name}`
: registry.audit.framework.name
}
</Td>
<Td noLink width={50} className="text-end">
<ActionDropdown>
<DropdownItem

View File

@@ -24,7 +24,6 @@ import {
} from "@probo/ui";
import { useTranslate } from "@probo/i18n";
import { useOrganizationId } from "/hooks/useOrganizationId";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { Controller } from "react-hook-form";
import z from "zod";
@@ -54,7 +53,6 @@ const updateRegistrySchema = z.object({
securityMeasures: z.string().optional(),
dataProtectionImpactAssessment: z.enum(["NEEDED", "NOT_NEEDED"] as const),
transferImpactAssessment: z.enum(["NEEDED", "NOT_NEEDED"] as const),
auditId: z.string().min(1, "Audit is required"),
});
type Props = {
@@ -100,7 +98,6 @@ export default function ProcessingActivityRegistryDetailsPage(props: Props) {
securityMeasures: registry.securityMeasures || "",
dataProtectionImpactAssessment: registry.dataProtectionImpactAssessment || "NOT_NEEDED" as const,
transferImpactAssessment: registry.transferImpactAssessment || "NOT_NEEDED" as const,
auditId: registry.audit?.id || "",
},
}
);
@@ -109,7 +106,6 @@ export default function ProcessingActivityRegistryDetailsPage(props: Props) {
try {
await updateRegistry({
id: registry.id!,
auditId: formData.auditId || undefined,
name: formData.name,
purpose: formData.purpose || undefined,
dataSubjectCategory: formData.dataSubjectCategory || undefined,
@@ -175,15 +171,6 @@ export default function ProcessingActivityRegistryDetailsPage(props: Props) {
required
/>
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
<div>
<Label>{__("Purpose")}</Label>
<Textarea

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<a05ed8b664f858ac30c3bf5d71ba20ea>>
* @generated SignedSource<<f2595590d945925932f5093a2c76dd1b>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -17,14 +17,6 @@ export type ProcessingActivityRegistriesPageFragment$data = {
readonly __id: string;
readonly edges: ReadonlyArray<{
readonly node: {
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly createdAt: any;
readonly dataSubjectCategory: string | null | undefined;
readonly id: string;
@@ -62,13 +54,6 @@ v1 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"argumentDefinitions": [
@@ -147,7 +132,13 @@ return {
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -190,32 +181,6 @@ return {
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -296,6 +261,6 @@ return {
};
})();
(node as any).hash = "7e63a0911396373ab39811be65844b89";
(node as any).hash = "25222b5244115092f96c424d8a52a5db";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<4af375f7d8057aa29a6fcfe47854e707>>
* @generated SignedSource<<71dfd7c0d78070061957215363022475>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,14 +58,7 @@ v4 = [
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -151,7 +144,13 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -194,32 +193,6 @@ return {
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -307,12 +280,12 @@ return {
]
},
"params": {
"cacheID": "9fe4ad1f3cd0dbd50f63b9dd93a95df8",
"cacheID": "331d1a749711d7a519fbdc5a721d2cec",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistriesPageQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ProcessingActivityRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment on Organization {\n id\n processingActivityRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ProcessingActivityRegistriesPageQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ProcessingActivityRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment on Organization {\n id\n processingActivityRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<eae0517caf3cfcc45963a0cc7bcd4dca>>
* @generated SignedSource<<3ad73dde5a41f4370035f6156fc1f38b>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -75,13 +75,6 @@ v4 = {
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
@@ -161,7 +154,13 @@ return {
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -204,32 +203,6 @@ return {
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -317,16 +290,16 @@ return {
]
},
"params": {
"cacheID": "352606982d18141d1e790715a3554f8c",
"cacheID": "1d359fcdec190d343db1cef8c01c7672",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistriesPageRefetchQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProcessingActivityRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment_2HEEH6 on Organization {\n id\n processingActivityRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
"text": "query ProcessingActivityRegistriesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProcessingActivityRegistriesPageFragment_2HEEH6\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment_2HEEH6 on Organization {\n id\n processingActivityRegistries(first: $first, after: $after) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();
(node as any).hash = "7e63a0911396373ab39811be65844b89";
(node as any).hash = "25222b5244115092f96c424d8a52a5db";
export default node;

View File

@@ -17,7 +17,6 @@ import { useTranslate } from "@probo/i18n";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { useCreateProcessingActivityRegistry } from "../../../../hooks/graph/ProcessingActivityRegistryGraph";
import { AuditSelectField } from "/components/form/AuditSelectField";
import { Controller } from "react-hook-form";
import {
SpecialOrCriminalDataOptions,
@@ -43,7 +42,6 @@ const schema = z.object({
securityMeasures: z.string().optional(),
dataProtectionImpactAssessment: z.enum(["NEEDED", "NOT_NEEDED"] as const),
transferImpactAssessment: z.enum(["NEEDED", "NOT_NEEDED"] as const),
auditId: z.string().min(1, "Audit is required"),
});
type FormData = z.infer<typeof schema>;
@@ -82,7 +80,6 @@ export function CreateProcessingActivityRegistryDialog({
securityMeasures: "",
dataProtectionImpactAssessment: "NOT_NEEDED" as const,
transferImpactAssessment: "NOT_NEEDED" as const,
auditId: "",
},
});
@@ -105,7 +102,6 @@ export function CreateProcessingActivityRegistryDialog({
securityMeasures: formData.securityMeasures || undefined,
dataProtectionImpactAssessment: formData.dataProtectionImpactAssessment || undefined,
transferImpactAssessment: formData.transferImpactAssessment || undefined,
auditId: formData.auditId,
});
toast({
@@ -144,15 +140,6 @@ export function CreateProcessingActivityRegistryDialog({
required
/>
<AuditSelectField
organizationId={organizationId}
control={control}
name="auditId"
label={__("Audit")}
error={formState.errors.auditId?.message}
required
/>
<div>
<Label>{__("Purpose")}</Label>
<Textarea

View File

@@ -33,7 +33,6 @@ type (
ReferenceID string `db:"reference_id"`
Area *string `db:"area"`
Source *string `db:"source"`
AuditID gid.GID `db:"audit_id"`
Requirement *string `db:"requirement"`
ActionsToBeImplemented *string `db:"actions_to_be_implemented"`
Regulator *string `db:"regulator"`
@@ -78,7 +77,6 @@ SELECT
reference_id,
area,
source,
audit_id,
requirement,
actions_to_be_implemented,
regulator,
@@ -162,7 +160,6 @@ SELECT
reference_id,
area,
source,
audit_id,
requirement,
actions_to_be_implemented,
regulator,
@@ -214,7 +211,6 @@ INSERT INTO compliance_registries (
reference_id,
area,
source,
audit_id,
requirement,
actions_to_be_implemented,
regulator,
@@ -231,7 +227,6 @@ INSERT INTO compliance_registries (
@reference_id,
@area,
@source,
@audit_id,
@requirement,
@actions_to_be_implemented,
@regulator,
@@ -251,7 +246,6 @@ INSERT INTO compliance_registries (
"reference_id": cr.ReferenceID,
"area": cr.Area,
"source": cr.Source,
"audit_id": cr.AuditID,
"requirement": cr.Requirement,
"actions_to_be_implemented": cr.ActionsToBeImplemented,
"regulator": cr.Regulator,
@@ -281,7 +275,6 @@ UPDATE compliance_registries SET
reference_id = @reference_id,
area = @area,
source = @source,
audit_id = @audit_id,
requirement = @requirement,
actions_to_be_implemented = @actions_to_be_implemented,
regulator = @regulator,
@@ -302,7 +295,6 @@ WHERE
"reference_id": cr.ReferenceID,
"area": cr.Area,
"source": cr.Source,
"audit_id": cr.AuditID,
"requirement": cr.Requirement,
"actions_to_be_implemented": cr.ActionsToBeImplemented,
"regulator": cr.Regulator,

View File

@@ -32,7 +32,6 @@ type (
OrganizationID gid.GID `db:"organization_id"`
ReferenceID string `db:"reference_id"`
Description *string `db:"description"`
AuditID gid.GID `db:"audit_id"`
Source *string `db:"source"`
OwnerID gid.GID `db:"owner_id"`
TargetDate *time.Time `db:"target_date"`
@@ -74,7 +73,6 @@ SELECT
organization_id,
reference_id,
description,
audit_id,
source,
owner_id,
target_date,
@@ -155,7 +153,6 @@ SELECT
organization_id,
reference_id,
description,
audit_id,
source,
owner_id,
target_date,
@@ -204,7 +201,6 @@ INSERT INTO continual_improvement_registries (
organization_id,
reference_id,
description,
audit_id,
source,
owner_id,
target_date,
@@ -218,7 +214,6 @@ INSERT INTO continual_improvement_registries (
@organization_id,
@reference_id,
@description,
@audit_id,
@source,
@owner_id,
@target_date,
@@ -235,7 +230,6 @@ INSERT INTO continual_improvement_registries (
"organization_id": cir.OrganizationID,
"reference_id": cir.ReferenceID,
"description": cir.Description,
"audit_id": cir.AuditID,
"source": cir.Source,
"owner_id": cir.OwnerID,
"target_date": cir.TargetDate,
@@ -262,7 +256,6 @@ func (cir *ContinualImprovementRegistry) Update(
UPDATE continual_improvement_registries SET
reference_id = @reference_id,
description = @description,
audit_id = @audit_id,
source = @source,
owner_id = @owner_id,
target_date = @target_date,
@@ -280,7 +273,6 @@ WHERE
"id": cir.ID,
"reference_id": cir.ReferenceID,
"description": cir.Description,
"audit_id": cir.AuditID,
"source": cir.Source,
"owner_id": cir.OwnerID,
"target_date": cir.TargetDate,

View File

@@ -36,7 +36,6 @@ CREATE TABLE processing_activity_registries (
id TEXT PRIMARY KEY,
tenant_id TEXT NOT NULL,
organization_id TEXT NOT NULL,
audit_id TEXT NOT NULL,
name TEXT NOT NULL,
purpose TEXT,
data_subject_category TEXT,
@@ -59,11 +58,5 @@ CREATE TABLE processing_activity_registries (
FOREIGN KEY (organization_id)
REFERENCES organizations(id)
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT processing_activity_registries_audit_id_fkey
FOREIGN KEY (audit_id)
REFERENCES audits(id)
ON UPDATE CASCADE
ON DELETE CASCADE
);

View File

@@ -0,0 +1,5 @@
ALTER TABLE compliance_registries DROP CONSTRAINT compliance_registries_audit_id_fkey;
ALTER TABLE compliance_registries DROP COLUMN audit_id;
ALTER TABLE continual_improvement_registries DROP CONSTRAINT continual_improvement_registries_audit_id_fkey;
ALTER TABLE continual_improvement_registries DROP COLUMN audit_id;

View File

@@ -30,7 +30,6 @@ type (
ProcessingActivityRegistry struct {
ID gid.GID `db:"id"`
OrganizationID gid.GID `db:"organization_id"`
AuditID gid.GID `db:"audit_id"`
Name string `db:"name"`
Purpose *string `db:"purpose"`
DataSubjectCategory *string `db:"data_subject_category"`
@@ -74,7 +73,6 @@ func (p *ProcessingActivityRegistry) LoadByID(
SELECT
id,
organization_id,
audit_id,
name,
purpose,
data_subject_category,
@@ -163,7 +161,6 @@ func (p *ProcessingActivityRegistries) LoadByOrganizationID(
SELECT
id,
organization_id,
audit_id,
name,
purpose,
data_subject_category,
@@ -210,96 +207,6 @@ WHERE
return nil
}
func (p *ProcessingActivityRegistries) CountByAuditID(
ctx context.Context,
conn pg.Conn,
scope Scoper,
auditID gid.GID,
) (int, error) {
q := `
SELECT
COUNT(id)
FROM
processing_activity_registries
WHERE
%s
AND audit_id = @audit_id
`
q = fmt.Sprintf(q, scope.SQLFragment())
args := pgx.StrictNamedArgs{"audit_id": auditID}
maps.Copy(args, scope.SQLArguments())
row := conn.QueryRow(ctx, q, args)
var count int
err := row.Scan(&count)
if err != nil {
return 0, fmt.Errorf("cannot count processing activity registries: %w", err)
}
return count, nil
}
func (p *ProcessingActivityRegistries) LoadByAuditID(
ctx context.Context,
conn pg.Conn,
scope Scoper,
auditID gid.GID,
cursor *page.Cursor[ProcessingActivityRegistryOrderField],
) error {
q := `
SELECT
id,
organization_id,
audit_id,
name,
purpose,
data_subject_category,
personal_data_category,
special_or_criminal_data,
consent_evidence_link,
lawful_basis,
recipients,
location,
international_transfers,
transfer_safeguards,
retention_period,
security_measures,
data_protection_impact_assessment,
transfer_impact_assessment,
created_at,
updated_at
FROM
processing_activity_registries
WHERE
%s
AND audit_id = @audit_id
AND %s
`
q = fmt.Sprintf(q, scope.SQLFragment(), cursor.SQLFragment())
args := pgx.StrictNamedArgs{"audit_id": auditID}
maps.Copy(args, scope.SQLArguments())
maps.Copy(args, cursor.SQLArguments())
rows, err := conn.Query(ctx, q, args)
if err != nil {
return fmt.Errorf("cannot query processing activity registries: %w", err)
}
processingActivityRegistries, err := pgx.CollectRows(rows, pgx.RowToAddrOfStructByName[ProcessingActivityRegistry])
if err != nil {
return fmt.Errorf("cannot collect processing activity registries: %w", err)
}
*p = processingActivityRegistries
return nil
}
func (p *ProcessingActivityRegistry) Insert(
ctx context.Context,
conn pg.Conn,
@@ -310,7 +217,6 @@ INSERT INTO processing_activity_registries (
id,
tenant_id,
organization_id,
audit_id,
name,
purpose,
data_subject_category,
@@ -332,7 +238,6 @@ INSERT INTO processing_activity_registries (
@id,
@tenant_id,
@organization_id,
@audit_id,
@name,
@purpose,
@data_subject_category,
@@ -357,7 +262,6 @@ INSERT INTO processing_activity_registries (
"id": p.ID,
"tenant_id": scope.GetTenantID(),
"organization_id": p.OrganizationID,
"audit_id": p.AuditID,
"name": p.Name,
"purpose": p.Purpose,
"data_subject_category": p.DataSubjectCategory,
@@ -395,7 +299,6 @@ UPDATE processing_activity_registries
SET
name = @name,
purpose = @purpose,
audit_id = @audit_id,
data_subject_category = @data_subject_category,
personal_data_category = @personal_data_category,
special_or_criminal_data = @special_or_criminal_data,
@@ -421,7 +324,6 @@ WHERE
"id": p.ID,
"name": p.Name,
"purpose": p.Purpose,
"audit_id": p.AuditID,
"data_subject_category": p.DataSubjectCategory,
"personal_data_category": p.PersonalDataCategory,
"special_or_criminal_data": p.SpecialOrCriminalData,

View File

@@ -35,7 +35,6 @@ type (
ReferenceID string
Area *string
Source *string
AuditID gid.GID
Requirement *string
ActionsToBeImplemented *string
Regulator *string
@@ -50,7 +49,6 @@ type (
ReferenceID *string
Area **string
Source **string
AuditID *gid.GID
Requirement **string
ActionsToBeImplemented **string
Regulator **string
@@ -97,7 +95,6 @@ func (s *ComplianceRegistryService) Create(
ReferenceID: req.ReferenceID,
Area: req.Area,
Source: req.Source,
AuditID: req.AuditID,
Requirement: req.Requirement,
ActionsToBeImplemented: req.ActionsToBeImplemented,
Regulator: req.Regulator,
@@ -117,11 +114,6 @@ func (s *ComplianceRegistryService) Create(
return fmt.Errorf("cannot load organization: %w", err)
}
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
owner := &coredata.People{}
if err := owner.LoadByID(ctx, conn, s.svc.scope, req.OwnerID); err != nil {
return fmt.Errorf("cannot load owner: %w", err)
@@ -167,14 +159,6 @@ func (s *ComplianceRegistryService) Update(
registry.Source = *req.Source
}
if req.AuditID != nil {
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, *req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
registry.AuditID = *req.AuditID
}
if req.Requirement != nil {
registry.Requirement = *req.Requirement
}

View File

@@ -34,7 +34,6 @@ type (
OrganizationID gid.GID
ReferenceID string
Description *string
AuditID gid.GID
Source *string
OwnerID gid.GID
TargetDate *time.Time
@@ -46,7 +45,6 @@ type (
ID gid.GID
ReferenceID *string
Description **string
AuditID *gid.GID
Source **string
OwnerID *gid.GID
TargetDate **time.Time
@@ -90,7 +88,6 @@ func (s *ContinualImprovementRegistriesService) Create(
OrganizationID: req.OrganizationID,
ReferenceID: req.ReferenceID,
Description: req.Description,
AuditID: req.AuditID,
Source: req.Source,
OwnerID: req.OwnerID,
TargetDate: req.TargetDate,
@@ -108,11 +105,6 @@ func (s *ContinualImprovementRegistriesService) Create(
return fmt.Errorf("cannot load organization: %w", err)
}
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
owner := &coredata.People{}
if err := owner.LoadByID(ctx, conn, s.svc.scope, req.OwnerID); err != nil {
return fmt.Errorf("cannot load owner: %w", err)
@@ -154,14 +146,6 @@ func (s *ContinualImprovementRegistriesService) Update(
registry.Description = *req.Description
}
if req.AuditID != nil {
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, *req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
registry.AuditID = *req.AuditID
}
if req.Source != nil {
registry.Source = *req.Source
}

View File

@@ -32,7 +32,6 @@ type ProcessingActivityRegistryService struct {
type (
CreateProcessingActivityRegistryRequest struct {
OrganizationID gid.GID
AuditID gid.GID
Name string
Purpose *string
DataSubjectCategory *string
@@ -52,7 +51,6 @@ type (
UpdateProcessingActivityRegistryRequest struct {
ID gid.GID
AuditID *gid.GID
Name *string
Purpose **string
DataSubjectCategory **string
@@ -100,7 +98,6 @@ func (s *ProcessingActivityRegistryService) Create(
processingActivityRegistry := &coredata.ProcessingActivityRegistry{
ID: gid.New(s.svc.scope.GetTenantID(), coredata.ProcessingActivityRegistryEntityType),
OrganizationID: req.OrganizationID,
AuditID: req.AuditID,
Name: req.Name,
Purpose: req.Purpose,
DataSubjectCategory: req.DataSubjectCategory,
@@ -128,11 +125,6 @@ func (s *ProcessingActivityRegistryService) Create(
return fmt.Errorf("cannot load organization: %w", err)
}
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
if err := processingActivityRegistry.Insert(ctx, conn, s.svc.scope); err != nil {
return fmt.Errorf("cannot insert processing activity registry: %w", err)
}
@@ -161,14 +153,6 @@ func (s *ProcessingActivityRegistryService) Update(
return fmt.Errorf("cannot load processing activity registry: %w", err)
}
if req.AuditID != nil {
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, *req.AuditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
processingActivityRegistry.AuditID = audit.ID
}
if req.Name != nil {
processingActivityRegistry.Name = *req.Name
}
@@ -300,60 +284,3 @@ func (s ProcessingActivityRegistryService) CountForOrganizationID(
return count, nil
}
func (s ProcessingActivityRegistryService) ListForAuditID(
ctx context.Context,
auditID gid.GID,
cursor *page.Cursor[coredata.ProcessingActivityRegistryOrderField],
) (*page.Page[*coredata.ProcessingActivityRegistry, coredata.ProcessingActivityRegistryOrderField], error) {
var processingActivityRegistries coredata.ProcessingActivityRegistries
err := s.svc.pg.WithConn(
ctx,
func(conn pg.Conn) error {
audit := &coredata.Audit{}
if err := audit.LoadByID(ctx, conn, s.svc.scope, auditID); err != nil {
return fmt.Errorf("cannot load audit: %w", err)
}
err := processingActivityRegistries.LoadByAuditID(ctx, conn, s.svc.scope, audit.ID, cursor)
if err != nil {
return fmt.Errorf("cannot load processing activity registries: %w", err)
}
return nil
},
)
if err != nil {
return nil, err
}
return page.NewPage(processingActivityRegistries, cursor), nil
}
func (s ProcessingActivityRegistryService) CountForAuditID(
ctx context.Context,
auditID gid.GID,
) (int, error) {
var count int
err := s.svc.pg.WithConn(
ctx,
func(conn pg.Conn) (err error) {
processingActivityRegistries := coredata.ProcessingActivityRegistries{}
count, err = processingActivityRegistries.CountByAuditID(ctx, conn, s.svc.scope, auditID)
if err != nil {
return fmt.Errorf("cannot count processing activity registries: %w", err)
}
return nil
},
)
if err != nil {
return 0, err
}
return count, nil
}

View File

@@ -1691,14 +1691,6 @@ type Audit implements Node {
filter: ControlFilter
): ControlConnection! @goField(forceResolver: true)
processingActivityRegistries(
first: Int
after: CursorKey
last: Int
before: CursorKey
orderBy: ProcessingActivityRegistryOrder
): ProcessingActivityRegistryConnection! @goField(forceResolver: true)
showOnTrustCenter: Boolean!
createdAt: Datetime!
updatedAt: Datetime!
@@ -1727,7 +1719,6 @@ type ComplianceRegistry implements Node {
referenceId: String!
area: String
source: String
audit: Audit! @goField(forceResolver: true)
requirement: String
actionsToBeImplemented: String
regulator: String
@@ -1744,7 +1735,6 @@ type ContinualImprovementRegistry implements Node {
organization: Organization! @goField(forceResolver: true)
referenceId: String!
description: String
audit: Audit! @goField(forceResolver: true)
source: String
owner: People! @goField(forceResolver: true)
targetDate: Datetime
@@ -1757,7 +1747,6 @@ type ContinualImprovementRegistry implements Node {
type ProcessingActivityRegistry implements Node {
id: ID!
organization: Organization! @goField(forceResolver: true)
audit: Audit! @goField(forceResolver: true)
name: String!
purpose: String
dataSubjectCategory: String
@@ -2971,7 +2960,6 @@ input CreateComplianceRegistryInput {
referenceId: String!
area: String
source: String
auditId: ID!
requirement: String
actionsToBeImplemented: String
regulator: String
@@ -2986,7 +2974,6 @@ input UpdateComplianceRegistryInput {
referenceId: String
area: String
source: String
auditId: ID
requirement: String
actionsToBeImplemented: String
regulator: String
@@ -3004,7 +2991,6 @@ input CreateContinualImprovementRegistryInput {
organizationId: ID!
referenceId: String!
description: String
auditId: ID!
source: String
ownerId: ID!
targetDate: Datetime
@@ -3016,7 +3002,6 @@ input UpdateContinualImprovementRegistryInput {
id: ID!
referenceId: String
description: String
auditId: ID
source: String
ownerId: ID
targetDate: Datetime
@@ -3030,7 +3015,6 @@ input DeleteContinualImprovementRegistryInput {
input CreateProcessingActivityRegistryInput {
organizationId: ID!
auditId: ID!
name: String!
purpose: String
dataSubjectCategory: String
@@ -3050,7 +3034,6 @@ input CreateProcessingActivityRegistryInput {
input UpdateProcessingActivityRegistryInput {
id: ID!
auditId: ID
name: String
purpose: String
dataSubjectCategory: String

File diff suppressed because it is too large Load Diff

View File

@@ -57,20 +57,19 @@ type AssignTaskPayload struct {
}
type Audit struct {
ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"`
Organization *Organization `json:"organization"`
Framework *Framework `json:"framework"`
ValidFrom *time.Time `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"`
Report *Report `json:"report,omitempty"`
ReportURL *string `json:"reportUrl,omitempty"`
State coredata.AuditState `json:"state"`
Controls *ControlConnection `json:"controls"`
ProcessingActivityRegistries *ProcessingActivityRegistryConnection `json:"processingActivityRegistries"`
ShowOnTrustCenter bool `json:"showOnTrustCenter"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"`
Organization *Organization `json:"organization"`
Framework *Framework `json:"framework"`
ValidFrom *time.Time `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"`
Report *Report `json:"report,omitempty"`
ReportURL *string `json:"reportUrl,omitempty"`
State coredata.AuditState `json:"state"`
Controls *ControlConnection `json:"controls"`
ShowOnTrustCenter bool `json:"showOnTrustCenter"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
func (Audit) IsNode() {}
@@ -114,7 +113,6 @@ type ComplianceRegistry struct {
ReferenceID string `json:"referenceId"`
Area *string `json:"area,omitempty"`
Source *string `json:"source,omitempty"`
Audit *Audit `json:"audit"`
Requirement *string `json:"requirement,omitempty"`
ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"`
Regulator *string `json:"regulator,omitempty"`
@@ -173,7 +171,6 @@ type ContinualImprovementRegistry struct {
Organization *Organization `json:"organization"`
ReferenceID string `json:"referenceId"`
Description *string `json:"description,omitempty"`
Audit *Audit `json:"audit"`
Source *string `json:"source,omitempty"`
Owner *People `json:"owner"`
TargetDate *time.Time `json:"targetDate,omitempty"`
@@ -252,7 +249,6 @@ type CreateComplianceRegistryInput struct {
ReferenceID string `json:"referenceId"`
Area *string `json:"area,omitempty"`
Source *string `json:"source,omitempty"`
AuditID gid.GID `json:"auditId"`
Requirement *string `json:"requirement,omitempty"`
ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"`
Regulator *string `json:"regulator,omitempty"`
@@ -270,7 +266,6 @@ type CreateContinualImprovementRegistryInput struct {
OrganizationID gid.GID `json:"organizationId"`
ReferenceID string `json:"referenceId"`
Description *string `json:"description,omitempty"`
AuditID gid.GID `json:"auditId"`
Source *string `json:"source,omitempty"`
OwnerID gid.GID `json:"ownerId"`
TargetDate *time.Time `json:"targetDate,omitempty"`
@@ -445,7 +440,6 @@ type CreatePeoplePayload struct {
type CreateProcessingActivityRegistryInput struct {
OrganizationID gid.GID `json:"organizationId"`
AuditID gid.GID `json:"auditId"`
Name string `json:"name"`
Purpose *string `json:"purpose,omitempty"`
DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"`
@@ -1228,7 +1222,6 @@ type PeopleFilter struct {
type ProcessingActivityRegistry struct {
ID gid.GID `json:"id"`
Organization *Organization `json:"organization"`
Audit *Audit `json:"audit"`
Name string `json:"name"`
Purpose *string `json:"purpose,omitempty"`
DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"`
@@ -1486,7 +1479,6 @@ type UpdateComplianceRegistryInput struct {
ReferenceID *string `json:"referenceId,omitempty"`
Area *string `json:"area,omitempty"`
Source *string `json:"source,omitempty"`
AuditID *gid.GID `json:"auditId,omitempty"`
Requirement *string `json:"requirement,omitempty"`
ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"`
Regulator *string `json:"regulator,omitempty"`
@@ -1504,7 +1496,6 @@ type UpdateContinualImprovementRegistryInput struct {
ID gid.GID `json:"id"`
ReferenceID *string `json:"referenceId,omitempty"`
Description *string `json:"description,omitempty"`
AuditID *gid.GID `json:"auditId,omitempty"`
Source *string `json:"source,omitempty"`
OwnerID *gid.GID `json:"ownerId,omitempty"`
TargetDate *time.Time `json:"targetDate,omitempty"`
@@ -1631,7 +1622,6 @@ type UpdatePeoplePayload struct {
type UpdateProcessingActivityRegistryInput struct {
ID gid.GID `json:"id"`
AuditID *gid.GID `json:"auditId,omitempty"`
Name *string `json:"name,omitempty"`
Purpose *string `json:"purpose,omitempty"`
DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"`

View File

@@ -209,31 +209,6 @@ func (r *auditResolver) Controls(ctx context.Context, obj *types.Audit, first *i
return types.NewControlConnection(page, r, obj.ID, controlFilter), nil
}
// ProcessingActivityRegistries is the resolver for the processingActivityRegistries field.
func (r *auditResolver) ProcessingActivityRegistries(ctx context.Context, obj *types.Audit, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProcessingActivityRegistryOrderBy) (*types.ProcessingActivityRegistryConnection, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
pageOrderBy := page.OrderBy[coredata.ProcessingActivityRegistryOrderField]{
Field: coredata.ProcessingActivityRegistryOrderFieldCreatedAt,
Direction: page.OrderDirectionDesc,
}
if orderBy != nil {
pageOrderBy = page.OrderBy[coredata.ProcessingActivityRegistryOrderField]{
Field: orderBy.Field,
Direction: orderBy.Direction,
}
}
cursor := types.NewCursor(first, after, last, before, pageOrderBy)
page, err := prb.ProcessingActivityRegistries.ListForAuditID(ctx, obj.ID, cursor)
if err != nil {
return nil, fmt.Errorf("cannot list processing activity registries: %w", err)
}
return types.NewProcessingActivityRegistryConnection(page, r, obj.ID), nil
}
// TotalCount is the resolver for the totalCount field.
func (r *auditConnectionResolver) TotalCount(ctx context.Context, obj *types.AuditConnection) (int, error) {
prb := r.ProboService(ctx, obj.ParentID.TenantID())
@@ -262,23 +237,6 @@ func (r *complianceRegistryResolver) Organization(ctx context.Context, obj *type
return types.NewOrganization(organization), nil
}
// Audit is the resolver for the audit field.
func (r *complianceRegistryResolver) Audit(ctx context.Context, obj *types.ComplianceRegistry) (*types.Audit, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
registry, err := prb.ComplianceRegistries.Get(ctx, obj.ID)
if err != nil {
panic(fmt.Errorf("cannot get compliance registry: %w", err))
}
audit, err := prb.Audits.Get(ctx, registry.AuditID)
if err != nil {
panic(fmt.Errorf("cannot get compliance registry audit: %w", err))
}
return types.NewAudit(audit), nil
}
// Owner is the resolver for the owner field.
func (r *complianceRegistryResolver) Owner(ctx context.Context, obj *types.ComplianceRegistry) (*types.People, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
@@ -329,23 +287,6 @@ func (r *continualImprovementRegistryResolver) Organization(ctx context.Context,
return types.NewOrganization(organization), nil
}
// Audit is the resolver for the audit field.
func (r *continualImprovementRegistryResolver) Audit(ctx context.Context, obj *types.ContinualImprovementRegistry) (*types.Audit, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
registry, err := prb.ContinualImprovementRegistries.Get(ctx, obj.ID)
if err != nil {
panic(fmt.Errorf("cannot get continual improvement registry: %w", err))
}
audit, err := prb.Audits.Get(ctx, registry.AuditID)
if err != nil {
panic(fmt.Errorf("cannot get continual improvement registry audit: %w", err))
}
return types.NewAudit(audit), nil
}
// Owner is the resolver for the owner field.
func (r *continualImprovementRegistryResolver) Owner(ctx context.Context, obj *types.ContinualImprovementRegistry) (*types.People, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
@@ -3080,7 +3021,6 @@ func (r *mutationResolver) CreateComplianceRegistry(ctx context.Context, input t
ReferenceID: input.ReferenceID,
Area: input.Area,
Source: input.Source,
AuditID: input.AuditID,
Requirement: input.Requirement,
ActionsToBeImplemented: input.ActionsToBeImplemented,
Regulator: input.Regulator,
@@ -3109,7 +3049,6 @@ func (r *mutationResolver) UpdateComplianceRegistry(ctx context.Context, input t
ReferenceID: input.ReferenceID,
Area: &input.Area,
Source: &input.Source,
AuditID: input.AuditID,
Requirement: &input.Requirement,
ActionsToBeImplemented: &input.ActionsToBeImplemented,
Regulator: &input.Regulator,
@@ -3151,7 +3090,6 @@ func (r *mutationResolver) CreateContinualImprovementRegistry(ctx context.Contex
OrganizationID: input.OrganizationID,
ReferenceID: input.ReferenceID,
Description: input.Description,
AuditID: input.AuditID,
Source: input.Source,
OwnerID: input.OwnerID,
TargetDate: input.TargetDate,
@@ -3177,7 +3115,6 @@ func (r *mutationResolver) UpdateContinualImprovementRegistry(ctx context.Contex
ID: input.ID,
ReferenceID: input.ReferenceID,
Description: &input.Description,
AuditID: input.AuditID,
Source: &input.Source,
OwnerID: input.OwnerID,
TargetDate: &input.TargetDate,
@@ -3229,7 +3166,6 @@ func (r *mutationResolver) CreateProcessingActivityRegistry(ctx context.Context,
SecurityMeasures: input.SecurityMeasures,
DataProtectionImpactAssessment: input.DataProtectionImpactAssessment,
TransferImpactAssessment: input.TransferImpactAssessment,
AuditID: input.AuditID,
}
registry, err := prb.ProcessingActivityRegistries.Create(ctx, &req)
@@ -3262,7 +3198,6 @@ func (r *mutationResolver) UpdateProcessingActivityRegistry(ctx context.Context,
SecurityMeasures: &input.SecurityMeasures,
DataProtectionImpactAssessment: input.DataProtectionImpactAssessment,
TransferImpactAssessment: input.TransferImpactAssessment,
AuditID: input.AuditID,
}
registry, err := prb.ProcessingActivityRegistries.Update(ctx, &req)
@@ -3922,23 +3857,6 @@ func (r *processingActivityRegistryResolver) Organization(ctx context.Context, o
return types.NewOrganization(organization), nil
}
// Audit is the resolver for the audit field.
func (r *processingActivityRegistryResolver) Audit(ctx context.Context, obj *types.ProcessingActivityRegistry) (*types.Audit, error) {
prb := r.ProboService(ctx, obj.ID.TenantID())
processingActivityRegistry, err := prb.ProcessingActivityRegistries.Get(ctx, obj.ID)
if err != nil {
panic(fmt.Errorf("cannot get processing activity registry: %w", err))
}
audit, err := prb.Audits.Get(ctx, processingActivityRegistry.AuditID)
if err != nil {
return nil, fmt.Errorf("cannot get audit: %w", err)
}
return types.NewAudit(audit), nil
}
// TotalCount is the resolver for the totalCount field.
func (r *processingActivityRegistryConnectionResolver) TotalCount(ctx context.Context, obj *types.ProcessingActivityRegistryConnection) (int, error) {
prb := r.ProboService(ctx, obj.ParentID.TenantID())
@@ -3950,12 +3868,6 @@ func (r *processingActivityRegistryConnectionResolver) TotalCount(ctx context.Co
panic(fmt.Errorf("cannot count organization processing activity registries: %w", err))
}
return count, nil
case *auditResolver:
count, err := prb.ProcessingActivityRegistries.CountForAuditID(ctx, obj.ParentID)
if err != nil {
panic(fmt.Errorf("cannot count audit processing activity registries: %w", err))
}
return count, nil
}
panic(fmt.Errorf("unsupported resolver: %T", obj.Resolver))