Skip to content

Commit 1a2d111

Browse files
authored
Ability to see errors in vendor creation (#2465)
* USE integration runs to track and store external_intake runs * add `error` to graphql response for assessment resposne so frontend can display if need be
1 parent e43c298 commit 1a2d111

38 files changed

Lines changed: 1040 additions & 151 deletions

.task/checksum/generate-ent-smart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1acbb24645ec24baa59407dd87401b26
1+
61e2ab6dbc47a1e3535bd5d6128a8b14
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16e43f7a7ec18f2f2990fd51993536c
1+
a2d6147631c485b3f62232f9f638f486
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
43096d80fa9a3094578191dad4ae6b5a
1+
a5ea6f046fb222aad2d3c0483d6da270
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-- +goose Up
2+
-- modify "integration_runs" table
3+
ALTER TABLE "integration_runs" ADD COLUMN "assessment_response_id" character varying NULL, ADD CONSTRAINT "integration_runs_assessment_responses_assessment_response" FOREIGN KEY ("assessment_response_id") REFERENCES "assessment_responses" ("id") ON UPDATE NO ACTION ON DELETE SET NULL;
4+
-- create index "integrationrun_assessment_response_id_operation_name" to table: "integration_runs"
5+
CREATE UNIQUE INDEX "integrationrun_assessment_response_id_operation_name" ON "integration_runs" ("assessment_response_id", "operation_name") WHERE ((deleted_at IS NULL) AND (assessment_response_id IS NOT NULL));
6+
-- create index "integrationrun_assessment_response_id_started_at" to table: "integration_runs"
7+
CREATE INDEX "integrationrun_assessment_response_id_started_at" ON "integration_runs" ("assessment_response_id", "started_at") WHERE (deleted_at IS NULL);
8+
9+
-- +goose Down
10+
-- reverse: create index "integrationrun_assessment_response_id_started_at" to table: "integration_runs"
11+
DROP INDEX "integrationrun_assessment_response_id_started_at";
12+
-- reverse: create index "integrationrun_assessment_response_id_operation_name" to table: "integration_runs"
13+
DROP INDEX "integrationrun_assessment_response_id_operation_name";
14+
-- reverse: modify "integration_runs" table
15+
ALTER TABLE "integration_runs" DROP CONSTRAINT "integration_runs_assessment_responses_assessment_response", DROP COLUMN "assessment_response_id";

db/migrations-goose-postgres/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:Jf33SdHVk4BqtycimHJp10CwAU/zUvg93K43chjvWB8=
1+
h1:fYH3aEoXshst1yplQKtLv6h7/xmYlTJgwinJUUWqrLA=
22
20251229183203_init.sql h1:g/05irCXoqKFObJV2PPLuvDRqma+da41VPsZ5fXQgfE=
33
20251229183205_init_history.sql h1:P/q2kAHb8zfNMOWzYkKtPbOwoh9GdJUQljSNAiPEjYI=
44
20251231045229_workflow.sql h1:uUPRLO4yw2y//fPGeqIXRrL+fiEN1TRGkF4wHiqPaPk=
@@ -142,3 +142,4 @@ h1:Jf33SdHVk4BqtycimHJp10CwAU/zUvg93K43chjvWB8=
142142
20260601213412_task_is_template_history.sql h1:Acqiozh04KQ2lQ+A34L36qkJT9rDHp3+qe+3pHg8BT4=
143143
20260604190613_trustcenter_group_approval.sql h1:aeVaVBSLF5tiJ3CzW9aCDpKubkIlXc9bBO0rZ7QigSM=
144144
20260604190623_trustcenter_group_approval_history.sql h1:Sk9o0z0qXw8mbLmJ4NiRHhOh1kA77UzjHqteA/O0vyQ=
145+
20260609205347_integration_run_assessment_response.sql h1:jlA3zVSSccugIp/r8LRvlPaB/uUgu7AwuIvbHoD6mGE=
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Modify "integration_runs" table
2+
ALTER TABLE "integration_runs" ADD COLUMN "assessment_response_id" character varying NULL, ADD CONSTRAINT "integration_runs_assessment_responses_assessment_response" FOREIGN KEY ("assessment_response_id") REFERENCES "assessment_responses" ("id") ON UPDATE NO ACTION ON DELETE SET NULL;
3+
-- Create index "integrationrun_assessment_response_id_operation_name" to table: "integration_runs"
4+
CREATE UNIQUE INDEX "integrationrun_assessment_response_id_operation_name" ON "integration_runs" ("assessment_response_id", "operation_name") WHERE ((deleted_at IS NULL) AND (assessment_response_id IS NOT NULL));
5+
-- Create index "integrationrun_assessment_response_id_started_at" to table: "integration_runs"
6+
CREATE INDEX "integrationrun_assessment_response_id_started_at" ON "integration_runs" ("assessment_response_id", "started_at") WHERE (deleted_at IS NULL);

db/migrations/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:u1UWnpsja5rWWfqMlY7XEv2b3dq+GZ0QKTS+rHnH6mA=
1+
h1:EP2iLBh7jvUpKS2TC1yTeYmZ2/tNBUuIk69MDIC0LXg=
22
20251229183159_init.sql h1:3uf/ftr28zW8YUD9qAaY2GESQHC7pYmkhlI6oDWUCKU=
33
20251229183201_init_history.sql h1:1tFSeCDWvZgb2Ctw80C/s3tqVPNLADQw9fSDACzL8WA=
44
20251231045221_workflow.sql h1:5bLq4cHh2kxUV7xajK5bq5McKKpr88HmufYauTdsgUw=
@@ -142,3 +142,4 @@ h1:u1UWnpsja5rWWfqMlY7XEv2b3dq+GZ0QKTS+rHnH6mA=
142142
20260601213351_task_is_template_history.sql h1:TYzI5AUpoeEJF7O8oOGQLuKMqIa/HopRxzPaI+E5LBQ=
143143
20260604190547_trustcenter_group_approval.sql h1:iMIykyriLSj5H6jUKZjJ1hzW+Ovtk37D24KDCpyNuhY=
144144
20260604190559_trustcenter_group_approval_history.sql h1:eH338TXyrvcL8nz//PJrXfczjw/2YzyYMNKLYE29IBo=
145+
20260609205325_integration_run_assessment_response.sql h1:a8PbktzAcUl1o3ohT7+p8WalKsxlYM6I0WaFmZZ/YQw=

fga/model/automation/integrations.fga

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ type integration_run
5858

5959
# parent permissions derived based on `crud` permissions or parents
6060
define parent_viewer: can_view from parent
61-
define parent: [integration]
61+
define parent: [integration, assessment_response]

internal/ent/authzgenerated/accessmap.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ca3ed96065b806134675a56e79bbb162e5abf2204f771ed629cab45486bd98f4
1+
a5249abb9688a21c3e9a1a55ffa3a902d27415f016c0d3adeb2bf6fff6e91098

0 commit comments

Comments
 (0)