42 Commits

Author SHA1 Message Date
Shashank Shekhar
bf9052f75c NTP-4943 | updated unit tests of incident service (#462) 2024-11-12 16:24:06 +05:30
Vijay Joshi
5332db8ed3 INFRA-3811 : Tag Value Management Module (#458)
* INFRA-3811 : Tag Value Management Module

* INFRA-3811 : PR review comments

* INFRA-3811 : Entity/Association update fix
2024-09-25 15:23:32 +05:30
Vijay Joshi
fd2a977e82 INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents (#456)
* INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents

* INFRA-3705 : Self review

* INFRA-3705 : Fix tests:

* INFRA-3705 : UT's and minor constant changes

* INFRA-3705 : Add migration script
2024-09-17 10:01:07 +05:30
Vijay Joshi
843274cf48 INFRA-3703 : Houston side changes to accomodate QA use case (#452)
* INFRA-3703 : Houston side changes to accomodate QA use case

* INFRA-3703 : UT failure fix

* INFRA-3703 : Minor changes

* INFRA-3703 : Unique constraint

* INFRA-3703 : Edit migration file

* INFRA-3703 : PR review comments and UT's

* INFRA-3703 : Channel name resolution
2024-09-05 19:27:42 +05:30
Vijay Joshi
288a7f8457 INFRA-3664 : Make get users in conversation api more performant, add api to sync incident users, module to track request statuses and remove old add incident-user api (#451)
* INFRA-3664 : Make get users in conversation api more performant

* INFRA-3664 : Add apis for incident user sync and get users in incident performance improvements

* INFRA-3664 : Self review

* INFRA-3664 : Add migration script

* INFRA-3664 : Review comments

* INFRA-3664 : Constant chanes

* INFRA-3664 : Add rate limit constants

* INFRA-3664 : Add rate limit constants

* INFRA-3664 : Fix failing tests

* INFRA-3664 : Add UT's
2024-08-29 11:52:56 +05:30
Vijay Joshi
804be01c2f INFRA-3467 : Private Houston Incidents (#445)
* INFRA-3467 : Private Houston Incidents

* INFRA-3627 : Minor self review

* INFRA-3627 : PR Review changes

INFRA-3627 : Minor changes

INFRA-3627 : UT fix

INFRA-3637 : Message changes

INFRA-3627 : Minor changes

INFRA-3627 : Constant fix

INFRA-3627 : Do not post SLA breach in public channels for private incidents
2024-08-08 19:20:04 +05:30
Vijay Joshi
55da2b4791 INFRA-3570 : Do not show the current severity and status in update incident in slack UI (#439)
* INFRA-3570 : Do not show same severity and status in update incident in slack UI

* INFRA-3570 : Cyclic dependency fix

* INFRA-3570 : Minor changes

* INFRA-3570 : Add UT'S

* INFRA-3570 : Major refactor

* INFRA-3570 : Move all incident status repo functions to new service

* INFRA-3570 : Add UT's
2024-07-18 13:17:28 +05:30
Vijay Joshi
b91d71e817 INFRA-3012 : Change ssl to require (#421) 2024-04-26 15:37:19 +05:30
Vijay Joshi
0d4400fc77 INFRA-3012 : migration ssl fix (#419) 2024-04-26 15:16:49 +05:30
Vijay Joshi
15c25eeae3 INFRA-2887 : auto archive refactor (#410)
* INFRA-2887 : Refactor auto escalate

* INFRA-2887 : Old cron cleanup and waitgroup refactor

* INFRA-2887 : Remove redundant nil check

* INFRA-3101 : aDD UT'S AND RETRYABLE LOGIC

* INFRA-2887 : review comments
2024-03-28 15:09:44 +05:30
Shashank Shekhar
d4d7da3328 INFRA-2866 | Create and update incident api changes (#386)
* INFRA-2866 | added APIs to get product for user and to get asigner and responder teams

* INFRA-2866 | added create-incident-v3 API

* INFRA-2866 | migration script to fill team_severity, team_user and team_user_severity tables

* INFRA-2866 | adding team severity users upon team and severity update

* INFRA-2866 | using update team v2 in slack action

* INFRA-2866 | update product flow

* INFRA-2866 | fixed user not invited issue

* INFRA-2866 | updated API paths

* INFRA-2866 | using constant for header fetching

* INFRA-2866 | PR review changes
2024-03-05 15:26:00 +05:30
Shashank Shekhar
c349cd65d5 INFRA-2945 | incident_products entity, repo, service and handler (#382)
* INFRA-2945 | incident_products entity, repo, service and handler

* INFRA-2945 | added product details in the incident DTO and removed incident_product_handler
2024-02-28 14:35:22 +05:30
Shashank Shekhar
9b1ff52994 INFRA-2922 | product-team orchestration service (#379)
* INFRA-2922 | product-team orchestration service

* INFRA-2922 | UT fixes
2024-02-26 13:29:49 +05:30
Vijay Joshi
7c1282711b INFRA-2873 : Severity wise team member list - Team Management Module - Add team (#372)
* INFRA-2873 : Boilerplate setup for team management revamp:

* INFRA-2873 : Complete till add team flow

* INFRA-2873 : Added unit tests and migration scripts

* INFRA-2873 : Code review comments

* INFRA-2873 : Add getter for team severity

* INFRA-2873 : Second round of review
2024-02-23 16:05:20 +05:30
Shashank Shekhar
94cb9758a0 INFRA-2915 | Products teams mapping (#378)
* INFRA-2915 | ProductTeams entity, Model and Repo

* INFRA-2915 | ProductTeams service, handler and tests

* INFRA-2915 | Added composit unique constrain for product and team ids
2024-02-21 16:19:15 +05:30
Shashank Shekhar
aa8161ca8b INFRA-2911 | Product service, repo and handler (#373)
* INFRA-2911 | Product entity, modal and repository

* INFRA-2911 | Product service and handler

* INFRA-2911 | Product service test

* INFRA-2911 | Optimisations

* INFRA-2911 | Optimisations
2024-02-19 18:57:10 +05:30
Vijay Joshi
ad96361d68 TP-49979 , TP-52174 : API to get resolution tags + resolve incident API + incident resolve entire flow refactor (#347)
* TP-49979 : Added API to get tags for resolving incident

* TP-49979 : Set up basic structure for resolve incident from UI

* TP-49979 : Complete till post rca flow

* TP-49979 : Complete till rca gen flow

* TP-52174 : rebase changes

* TP-52174 : Integrate with slack

* TP-52174 : fix error in flows

* TP-52174 : Segregate interface and impl

* TP-52174 : Fix ut failures

* TP-52174 : Fix resolve tag api error

* TP-52174 : Fix jira link bug

* TP-52174 : Remove nil

* TP-52174 : Rebase changes

* TP-52174 : Jira links table fix

* TP-52174 : Line length fix

* TP-52174 : Makefile changes

* TP-52174 : Basic bug fixes

* TP-52174 : Minor fixes

* TP-52174 : Add UT's for initial flows

* TP-52174 : Added all UT's

* TP-52174 : More PR review changes

* TP-52174 : Add UT's for incident jira and tag service

* TP-52174 : Fix jira link bug and batched create incident tags db call

* TP-52174 : Make auto archival severities configurable

* TP-52174 : Fix jira link in incident table issue
2024-02-01 15:23:15 +05:30
Gullipalli Chetan Kumar
8e7619f972 TP-52454 : Created Zenduty integration (#348)
* TP-52454| created zenduty integration

* TP-52454| added migration script for external team table

* TP-52454| added extra logs

* TP-52454| modified logs

* TP-52454|added extra logs

* TP-52454| changed post url for zenduty

* TP-52454| fixed bugs in zenduty client

* TP-52454| created constants for environmental varibales

* TP-52454| enabled zenduty if severity is less than or equal to the defined config
2024-01-12 14:24:19 +05:30
Ajay Devarakonda
72b6271947 TP-52077 | Implemented retry option for rca generation failure (#344)
* TP-38709 | Merging the changes to master on the logfix

* TP-52077 | Added on demand rca generation entry point and its implementation

* TP-52077 | slack client ack request issue fix

* TP-52077 | implemented retry button for rca generation failure

* TP-52077 | Added rca generation unit tests

* TP-52077 | Addressed review comments

* TP-52077 | Added retyr button on rca generation failure incoming webhook

* TP-52077 | Fixed unit test conflicts
2024-01-05 17:02:53 +05:30
Gullipalli Chetan Kumar
aeb572f47e TP-45807 : Sending google transcripts to gen ai (#315)
* created service for sending google transcripts to gen ai

* TP-45807| resolved bugs in drive service tests

* TP-45807| unit tests for getting conversation data function

* creating driveservice in app context and passing to rca service

* modified the unit tests to accomodate driveservicemock

* resolved merge conflicts

* resolved merge conflicts
2023-12-26 14:28:27 +05:30
Shashank Shekhar
5758e603e8 Jira link table (#331)
* TP-51013 | incident_jira entity, repo and service

* TP-51013 | get jira status api

* TP-51013 | added db migration file

* TP-51013 | added migration query to migrate existing jira links into new table

* TP-51013 | removing linked_jira_issues column from incident table

* TP-51013 | removing empty jira fields if no response found for a jira key in jira api response

* TP-51013 | handled jira api failure cases, will return empty jira fields

* TP-51013 | removed linked_jira_issues field from incident entity

* TP-51013 | handled jira link addition and removal in slack action

* TP-51013 | resolving PR comments

* TP-51013 | adding jira link max length check
2023-12-21 16:52:35 +05:30
Gullipalli Chetan Kumar
f31c75a1fb TP-51771 : Created Maverick Client (#333)
* TP-51771| created maverick client

* TP-51771| added check for empty data response form maverick

* made maverick client generic
2023-12-20 15:12:39 +05:30
Vijay Joshi
662a7c3446 TP-47449 : Added socket mode client wrapper (#316)
Added socket mode client wrapper
2023-12-12 10:40:36 +05:30
Sriram Bhargav
53da5c81b0 TP-48508 | Adding helper to download files form a google drive directory (#305)
* TP-48508 | Adding helper to download files form a google drive directory
2023-12-07 17:24:13 +05:30
Ajay Devarakonda
a62ecbe0a5 TP-48512 | Implementation of RCA and tag migration (#296)
* TP-38709 | Merging the changes to master on the logfix

* TP-48512 | Added button element for RCA section and implemented fill rca details

* TP-48512 | Small fixes

* TP-48512 | adding unit tests

* TP-48512 | added unit tests

* TP-48512 | updated color code for rca card

* TP-48512	| Removed duplicate interface

* TP-48512	| Added one more unit test

* TP-48512 | added comments for jira link validation and update

* TP-48512 | Merging the changes to master on the logfix

# Conflicts:
#	cmd/app/handler/slack_handler.go

* TP-48512 | Added button element for RCA section and implemented fill rca details

# Conflicts:
#	common/util/common_util.go
#	common/util/constant.go
#	internal/processor/action/incident_resolve_action.go
#	internal/processor/action/incident_update_jira-links_action.go
#	internal/processor/action/incident_update_resolution_text_action.go
#	internal/processor/action/view/incident_resolution_text.go
#	internal/processor/action/view/incident_section.go
#	service/slack/slack_service.go

* TP-48512 | Small fixes

* TP-48512 | adding unit tests

* TP-48512 | added unit tests

# Conflicts:
#	Makefile
#	service/incident/incident_service_v2_interface.go

* TP-48512 | updated color code for rca card

* TP-48512	| Removed duplicate interface

* TP-48512	| Added one more unit test

* TP-48512 | added comments for jira link validation and update

* TP-48512 | Fixed merge conflicts

* TP-48512 | Fixed merge conflicts

* TP-48512 | Fixed merge conflicts

* TP-48512 | Added sql migration script for adding tags

* TP-48512 | Updated sql migration script for adding tags

* TP-48512 | Fixed merge conflicts and updated tags in sql migration script
2023-12-07 14:13:12 +05:30
Vijay Joshi
120d508a05 Incident Service Integration with monitoring service client for Houston-Krakatoa integration (#302)
Incident Service Integration with monitoring service client for Houston-Krakatoa integration (#302)
2023-12-05 15:49:13 +05:30
Gullipalli Chetan Kumar
c393b81bbc TP-47335 : Update get teams api to reduce latency by getting user data from database instead of slack (#284)
* TP-47335| created teamservice version 2 for get teams api

* TP-47335| modified the getusers info function to handle nil error

* refactored the structure of team service and created interfaces

* TP-47335| created unit tests

* TP-47335| added unit tests for get teams api

* resolved PR comments

* created custom error types

* made some changes in unit tests

* added unit tests for team handler

* solved merge conflicts

* solved invalid users bug

* resolved merge conflicts

* restricting incident title length to 100 characters

* removed unecessary comments
2023-12-04 15:16:21 +05:30
Shashank Shekhar
428900b58b TP-48564 | Added Jira client with search JQL api (#303) 2023-12-04 12:12:52 +05:30
Sriram Bhargav
bcc288bb18 TP-47112 | Adding client for monitoring service (#301) 2023-11-30 15:57:57 +05:30
Sriram Bhargav
bf5e72cb05 TP-47112 | Adding client for monitoring service (#300)
* TP-47112 | Adding client for monitoring service

* TP-47112 | Adding unit tests for file utils

---------

Co-authored-by: Md Anees <md.anees@navi.com>
2023-11-30 14:59:33 +05:30
Vijay Joshi
527ba2c04f TP-44155, TP-47355 : Update incident web refractor + Update severity slack refractor with unit tests (#262)
* TP-44155 : Update incident web refractor

* Resolution of v1 and v2 service calls

* PR review changes

* Rebase fixes

* TP-47355 : Add slack update severity refractor

* Cors fix

* Rebase fix

* Second PR revice changes

* More review changes

* Add concurrency to slack calls

* rebase

* Setup interfaces

* Added unit tests for update incident refractor

* Add more test cases

* Rebase changes

* Fix responder addeb by

* Fix build error

* Fix concurretn slack calls

* Revert rebase bug

* Shorten function length: added slack workflows

* Made fucntion size smaller
2023-11-30 14:24:29 +05:30
Gullipalli Chetan Kumar
2dd4d710e5 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
2023-11-24 14:39:34 +05:30
Vijay Joshi
928a768b82 TP-48197 : Implementation of RCA Service, repo, handler, validator and webhook for posting RCA to incident channel along with unit tests (#282)
* TP-48197 : Implementation of RCA Service, repo, handler, validator and webhook for posting RCA to incident channel

* Added unit tests

* Added migration script"

* PR Review Changes

* Update migratrion
2023-11-16 12:03:34 +05:30
Sriram Bhargav
0c85c3b68d TP-47105 | Adding document service (#280)
* TP-47105 | Adding helpers for google drive service

* TP-47105! | Adding document service

* TP-47105 | Adding unit tests for docu ent service client

* TP-47105 | Adding document service client

* TP-47105 | Rebasing with master

* TP-47105 | Addressing PR comments

* TP-47105 | Adding commonly used constants with document service

* TP-47105 | Adding commonly used constants with document service

* TP-47105 | Fixing document service endpoints in test

* TP-47105 | Addressing PR comments

* TP-47105 | Addressing PR comments

* TP-47105 | Addressing PR comments
2023-11-15 17:17:38 +05:30
Ajay Devarakonda
1125f573b2 TP-44162 | Google Meet integration to create calendar invite with meeting link creation on incident creation (#277)
* TP-44158 | Adding service to get transcript files from Google Drive (#234)

Adding service to get transcript files from Google Drive

* TP-45120 (#275)

TP-45120 | merging Google auth implementation and calendar event fix

* TP-44162 | added service implementation for calendar actions

* TP-44162 | Updated label in slack message

* TP-44162 | Fixed build failures

* TP-44162 | Updated sql migration file name

* TP-44162 | added unit tests for google calendar service

* TP-48200 | updated response messages in link and unlink jira apis (#278)

* TP-44162 | resolved review comments

* TP-44158 | Adding service to get transcript files from Google Drive (#234)

Adding service to get transcript files from Google Drive

* TP-45120 (#275)

TP-45120 | merging Google auth implementation and calendar event fix

* TP-44162 | added service implementation for calendar actions

* TP-44162 | Updated label in slack message

* TP-44162 | Fixed build failures

* TP-44162 | Updated sql migration file name

* TP-44162 | added unit tests for google calendar service

* TP-44162 | resolved review comments

* TP-44162 | updated few naming conventions

* TP-44162 | Adding timeouts to google drive api calls and related UTs

* TP-44162 | Adding drive api timeout to viper for unit test

---------

Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com>
Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2023-11-09 16:25:20 +05:30
Vijay Joshi
0e7551f587 Fix makefile (#232) 2023-10-16 19:39:56 +05:30
Vijay Joshi
46553d4ebc TP-41458 : Added migration scripts for updated schemas (#231) 2023-10-16 19:29:40 +05:30
Tushar Kumar Saha
956cf339a0 TP-27996 | revert makefile (#95) 2023-06-14 12:45:13 +05:30
Tushar Kumar Saha
64a30d5081 TP-12345 | Rp/diagnostic bot (#90) 2023-06-13 03:23:24 +05:30
Ravi Chandora
a74c7612ec TP-0000 | DB migration (#13) 2023-04-12 00:14:47 +05:30
Ravi Chandora
25aa651515 TP-0000 | code refactoring (#1) 2023-03-29 20:57:20 +05:30
Shubham Kirve
b974cb6bf3 TP-0000 | Initialize houston repo (#1)
* TP-0000 | intialize houston repo

* TP-0000 | intialize houston repo
2023-03-29 00:01:17 +05:30