373 Commits

Author SHA1 Message Date
Sriram Bhargav
53895c243b TP-48508 | Adding helper to download files form a google drive directory (#320) 2023-12-12 17:01:03 +05:30
Gullipalli Chetan Kumar
94f1eaca2d TP-50863| adding user email field to gen ai response data (#317) 2023-12-12 13:42:23 +05:30
Gullipalli Chetan Kumar
14b360d0e5 TP-47107| added restriction to not update incident to same status (#318) 2023-12-12 13:41:24 +05:30
Vijay Joshi
bcb352b5b6 BUild fix (#319) 2023-12-12 11:08:19 +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
e7d60fa70b TP-49969 | Adding helper in monitoring service client to fetch impacted customers (#309)
* TP-49969 | Adding helper in monitoring service client to fetch impacted customers

* TP-49969 | Fixing file extension issue
2023-12-12 10:27:04 +05:30
Ajay Devarakonda
5e9c243cfa TP-48512 | Fixed tag value indexes (#313)
* 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

* TP-48512 | Fixed migration duplicate

* TP-48512 | Fixed migration fkey constraints

* TP-48512 | Fixed tag indexes of tags
2023-12-07 18:53:24 +05:30
Ajay Devarakonda
e1c773df3e TP-48512 | Foreign key constraint fix (#312)
* 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

* TP-48512 | Fixed migration duplicate

* TP-48512 | Fixed migration fkey constraints
2023-12-07 18:39:58 +05:30
Ajay Devarakonda
57466e18ca TP-48512 | Fixed duplicate in migration script (#311)
* 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

* TP-48512 | Fixed migration duplicate
2023-12-07 18:28:30 +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
Ajay Devarakonda
1cec0657db TP-49982 | Modified incidents to tag already resolved incidents as duplicates (#308)
* TP-38709 | Merging the changes to master on the logfix

* TP-49982 | Modified to accept resolved incidents for duplicating the incidents
2023-12-05 12:16:27 +05:30
Ajay Devarakonda
00fa66d13e TP-50458 | Fixed blank user info issue while creating the incident (#307)
* TP-38709 | Merging the changes to master on the logfix

* TP-50458 | Fixed user info in incident log for creating incident
2023-12-05 12:16:06 +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
Shashank Shekhar
35061f5d84 TP-50320 | making create-incident-v2 API workflow async (#304) 2023-12-01 19:31:45 +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
Shashank Shekhar
805d45bb34 TP-49403 | restricting set status to Resolved (#299) 2023-11-30 13:39:06 +05:30
Shashank Shekhar
b2c59409ab TP-49403 | updating help message text and making incident status query by status name case insensitive (#298) 2023-11-30 13:11:00 +05:30
Shashank Shekhar
88459577f4 TP-49403 | parameterized slash command (#297)
* TP-49403 | parameterized slash command

* TP-49403 | handeling resolve and rca params also implemented Help-Commands button

* TP-49403 | using command pattern for command resolutiuon and execution

* TP-49403 | made find team by name and find severity by name queries case insensitive

* TP-49403 | updating help message keys
2023-11-30 11:56:32 +05:30
Gullipalli Chetan Kumar
4abb12f71f TP-47360 : Removed deleted_at column, changed text messages (#294)
* removed the deleted_at column and removed one extra space in the resolved,duplicated messages

* changed rca input entity stucture

* changes text in tests of rca service
2023-11-24 16:20:47 +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
a1d3d0dc39 TP-49039 : Schema changes to remove rca_input_links from rca table (#289) 2023-11-20 13:25:27 +05:30
Sriram Bhargav
28eeac680a TP-47105 | Removing logger input for document service (#287)
* TP-47105 | Removing logger input for documnet service

* TP-47105 | Removing logger input for documnet service
2023-11-17 12:11:30 +05:30
Sriram Bhargav
ebcd074286 TP-47105 | Removing logger input for documnet service (#286) 2023-11-17 11:54:46 +05:30
Sriram Bhargav
25c749a90e TP-47105 | Documentservice interface fix (#285) 2023-11-17 11:06:25 +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
Shashank Shekhar
25972ca295 TP-48403 | fix: too many users error fix, splitting the users list in chunks (#281) 2023-11-10 12:53:54 +05:30
Shashank Shekhar
76144451fa TP-48164 | Incident reminder to the team channels (#279) 2023-11-10 11:00:43 +05:30
Shashank Shekhar
0f8c326fe7 TP-47297 | Slack DM for incident reminder (#276)
* TP-47297 | Slack DM for incident reminder - A cron job to send list of open incidents to every users who are part of it along with their role in it

* Delete common/util/config_util.go

---------

Co-authored-by: Md Anees <md.anees@navi.com>
2023-11-09 17:38:43 +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
Shashank Shekhar
f075b0df8f TP-48200 | updated response messages in link and unlink jira apis (#278) 2023-11-08 17:29:25 +05:30
Gullipalli Chetan Kumar
f199f68ae6 removed immediately archiving feature in update incident api and changed message format (#274) 2023-11-06 13:02:58 +05:30
Shashank Shekhar
21db94d074 TP-46247 | Adding jira_links column and removing jira_id column (#273) 2023-11-03 15:38:40 +05:30
Shashank Shekhar
5ce7d38064 TP-46247 | API to add jira links to an incident (#257)
* TP-46247 | API to add jira links to an incident

* TP-464408 | Add Jira link modal

* TP-45730 | renaming log entity name back to log from logger
2023-11-03 15:30:07 +05:30
Gullipalli Chetan Kumar
3f4a671eb6 TP-44160 : created function to fetch slack channel conversation (#264)
* TP-44160| created api to fetch slack conversation

* exposed api to get conversation in channel

* replaced loggers from helper functions to service functions

* made the requested changes in pr

* replaced logging with global logger
2023-11-03 11:43:25 +05:30
Gullipalli Chetan Kumar
7454d3561e TP-42838: Auto archive incident channels after specified delay (#272)
* TP-42838| created auto archival scheduler

* TP-42838| created utility to post archival messages and updated the archiving scheduler

* TP-42838| added messages to be posted in incident channel for archiving

* TP-42838| made utility functions for posting messages

* added environmental variables for cron

* changed posting time to ist from utc

* archiving channels based on end time in incident table

* changed time from 24 to 12 hour format

* updated the query to retrieve channels to be archived

* resolved merge conflicts

* made the requested changes in PR
2023-11-03 11:42:43 +05:30
Gullipalli Chetan Kumar
f31be96a80 Revert "TP-42838: Auto archive incident channels after specific delay time (#268)" (#271)
This reverts commit a2e618659a.
2023-11-02 18:30:39 +05:30
Shashank Shekhar
4a0035b201 TP-46443 | updating incident alert message, removed section block for teams (#261) 2023-11-02 18:09:33 +05:30
Gullipalli Chetan Kumar
a2e618659a TP-42838: Auto archive incident channels after specific delay time (#268)
* TP-42838| created auto archival scheduler

* TP-42838| created utility to post archival messages and updated the archiving scheduler

* TP-42838| added messages to be posted in incident channel for archiving

* TP-42838| made utility functions for posting messages

* added environmental variables for cron

* changed posting time to ist from utc

* archiving channels based on end time in incident table

* changed time from 24 to 12 hour format

* updated the query to retrieve channels to be archived

* resolved merge conflicts
2023-11-02 16:42:56 +05:30
Shashank Shekhar
c306e7c64b TP-45730 | renaming log entity name back to log from logger (#269) 2023-11-02 15:32:04 +05:30
Shashank Shekhar
a9ffffc31a TP-45730 | creating a global logger (#263) 2023-11-02 13:11:52 +05:30
Md Anees
bf1da192bd Update CODEOWNERS (#260) 2023-10-27 14:54:29 +05:30
Shashank Shekhar
9f449b8ba4 TP-46953 | Updating incident alert query to exclude duplicate incidents (#259) 2023-10-27 12:03:22 +05:30
Sriram Bhargav
2c12e526ce -mTP43474 | Updating SLA breach to run on Sev 1 as well (#258) 2023-10-26 18:28:11 +05:30
Gullipalli Chetan Kumar
cd207a29c0 TP-43103 : Add houston user columns (#256)
* added new columns in houston user table

* added is archived column
2023-10-20 13:20:33 +05:30