mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-28 13:09:40 +01:00
Address Greptile review feedback for decomposition PR
This commit is contained in:
1 parent
32dbcc1da4
commit
ac4dee8579
8 files changed
+174
-3
No files matched your search
@@ -23,4 +23,5 @@ ALTER TABLE "issue_plan_decompositions" ADD CONSTRAINT "issue_plan_decomposition
|
||||
ALTER TABLE "issue_plan_decompositions" ADD CONSTRAINT "issue_plan_decompositions_owner_agent_id_agents_id_fk" FOREIGN KEY ("owner_agent_id") REFERENCES "public"."agents"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "issue_plan_decompositions" ADD CONSTRAINT "issue_plan_decompositions_owner_run_id_heartbeat_runs_id_fk" FOREIGN KEY ("owner_run_id") REFERENCES "public"."heartbeat_runs"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
||||
CREATE INDEX "issue_plan_decompositions_company_source_status_idx" ON "issue_plan_decompositions" USING btree ("company_id","source_issue_id","status");--> statement-breakpoint
|
||||
CREATE INDEX "issue_plan_decompositions_active_owner_idx" ON "issue_plan_decompositions" USING btree ("company_id","owner_agent_id") WHERE "issue_plan_decompositions"."status" = 'in_flight';--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "issue_plan_decompositions_source_revision_uq" ON "issue_plan_decompositions" USING btree ("company_id","source_issue_id","accepted_plan_revision_id");
|
||||
@@ -10302,6 +10302,28 @@
|
||||
"method": "btree",
|
||||
"with": {}
|
||||
},
|
||||
"issue_plan_decompositions_active_owner_idx": {
|
||||
"name": "issue_plan_decompositions_active_owner_idx",
|
||||
"columns": [
|
||||
{
|
||||
"expression": "company_id",
|
||||
"isExpression": false,
|
||||
"asc": true,
|
||||
"nulls": "last"
|
||||
},
|
||||
{
|
||||
"expression": "owner_agent_id",
|
||||
"isExpression": false,
|
||||
"asc": true,
|
||||
"nulls": "last"
|
||||
}
|
||||
],
|
||||
"isUnique": false,
|
||||
"concurrently": false,
|
||||
"method": "btree",
|
||||
"where": "\"issue_plan_decompositions\".\"status\" = 'in_flight'",
|
||||
"with": {}
|
||||
},
|
||||
"issue_plan_decompositions_source_revision_uq": {
|
||||
"name": "issue_plan_decompositions_source_revision_uq",
|
||||
"columns": [
|
||||
@@ -18349,4 +18371,4 @@
|
||||
"schemas": {},
|
||||
"tables": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,9 @@ export const issuePlanDecompositions = pgTable(
|
||||
table.sourceIssueId,
|
||||
table.status,
|
||||
),
|
||||
activeOwnerIdx: index("issue_plan_decompositions_active_owner_idx")
|
||||
.on(table.companyId, table.ownerAgentId)
|
||||
.where(sql`${table.status} = 'in_flight'`),
|
||||
sourceRevisionUq: uniqueIndex("issue_plan_decompositions_source_revision_uq").on(
|
||||
table.companyId,
|
||||
table.sourceIssueId,
|
||||
|
||||
Reference in new issue
Block a user