TP-47360 : Created service for uploading slack conversations to s3 and send request to maverick for generating RCA (#290)

* TP-47360| created services to upload slack conversation to cloud and send urls to generate RCA

* created rca input repository

* TP-47360| enabled generating rca service on resolution

* resolved merge conflicts

* TP-47360| added migration script for creating rca input table

* changed json response structure according to contract

* added unit tests

* removed api to make gen ai call

* made changes in message format posted in slack

* changed entity struct and adding flag to enable rca generation

* attaching title, description and replies related to incident status block

* made design changes in message format
This commit is contained in:
Gullipalli Chetan Kumar
2023-11-24 14:39:34 +05:30
committed by GitHub
parent a1d3d0dc39
commit 2dd4d710e5
17 changed files with 741 additions and 50 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS rca_input (
id SERIAL PRIMARY KEY,
incident_id integer NOT NULL REFERENCES incident(id),
document_type character varying(100),
identifier_keys text[] DEFAULT '{}'::text[],
provider_name character varying(100),
is_active boolean DEFAULT true,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);