Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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
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
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
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
a9ffffc31a TP-45730 | creating a global logger (#263) 2023-11-02 13:11:52 +05:30
Gullipalli Chetan Kumar
6b44ec9ec3 TP-43103 : Synch users data from slack to database and exposed api to return a list of bot users (#228)
* TP-42310| created api service to get list of slackbots (#215)

* TP-42310| created api service to get list of slackbots

* minor bug fix in GetAllHoustonUserBots function

* Synch users to db (#213)

* TP-43103| added event listeners to user detail changes and saving to db

* TP-43103| refactored the upsert users scheduler

* TP-43103| fixed updating users when deactivated in scheduler

* TP-43103| Made the requested changes

* added info loggers to user change events

* made changes to process only navi workspace user changes

* made addressed changes in pr and returning Real name in GetAllHoustonUserBots api

* resolved merge conflicts
2023-10-20 13:05:40 +05:30
Gullipalli Chetan Kumar
92d2e24af8 Revert "TP-42838 : Auto archive incident channel after some time when incident gets resolved or duplicated (#249)" (#252)
This reverts commit 11e7013c51.
2023-10-19 19:38:49 +05:30
Gullipalli Chetan Kumar
11e7013c51 TP-42838 : Auto archive incident channel after some time when incident gets resolved or duplicated (#249)
TP-42838 : Auto archive incident channel after some time when incident gets resolved or duplicated
2023-10-19 18:00:53 +05:30
Vijay Joshi
842966cb2f TP-40559 : Incident logs (#227) (#244)
* TP-40559 : Incident logs (#227)

* TP-40559 : Adding BeforeUpdate and AfterUpdate hook in Incident Entity

* TP-40936 - Added deep compare util function

* TP-40559 | Added entity and repo for logs

* TP-40559 : Added log entry support for incident level updates

* Fix zero diff issue

* Added lowercase json parameter names

* TP-40559 : Added logs for team level updates

* Initialize log service

* TP-41640 : Added api to fetch logs for particular incident/team

* Before create and after create

* Convert 2 logs to one on incident creation

* Log id populate:

* Add populate for team id

* Branch update changes

* Typo changes

* PR REVIEW CHANGES

* Nil fix

* Fix order issue

* TP-43841 | Updating fetch users from conversation to differentiate memeber and others (#245)

* Build fix

* Added migration script for logs

---------

Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com>
2023-10-19 15:47:04 +05:30
Shashank Shekhar
70ee05ec76 TP-44002 | Created metric middleware, publishing API metrics. Added support for Custom metrics. (#233) 2023-10-17 15:17:05 +05:30
Sriram Bhargav
93dc9f5ea1 -mTP43474 | Deploying to master 2023-10-13 13:06:59 +05:30
shashank-shekhar
8ac29cb39e TP-44705 | updated InviteUsersToConversation method, posting list of failed to invite users list to slack channel 2023-10-11 16:13:04 +05:30
Shashank Shekhar
1f97532f50 Release 1 (#209)
* TP-43474 | Fixing time difference calculation issue (#193)

* TP-43298 | Adding SLA messagae to incident channel below incident summary (#183)

* TP-43298 | Resolving merge conflicts

* TP-43298 | Updating serverity check condition

* TP-43625 | Fixing user id check (#201)

* TP-43625 | Fixing user id check

* TP-43625 | Fixing user id check

* Incident service v2 (#191)

* TP-43339 | create-incident-v2

* TP-43339 | create-incident-v2 handler

* TP-43339 | added logs and some optimiations

* TP-43339 | added slack processor v2

* TP-43339 | create-incident-v2 integration with slack

* TP-43339 | adding feature flag for create-incident-v2

* TP-43339 | removed redundant entity fetch

* TP-43339 | Added SLA related changes to create-incident-v2

* TP-43339 | Posting incident summary to blazeGroup channel and improved logs

* TP-43339 | Moving post summary method to the incident service file

* TP-43339 | Removed socketModeClient usage from incident-service-v2, moved it to slack-service

* TP-43339 | Updated env variable for create-incident-v2

---------

Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com>
2023-10-09 16:04:04 +05:30
Vijay Joshi
1c7f925c06 Add team, add member, make manager, remove member, duplicate incidents, date filter, middleware/auth service, resolve non tag incidents, case fixing (#184)
* TP-39899 | Adding mjolnir based authorization for team based operations (#149)

* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-39899 | Adding helpers to authorize write operations using dark knight

* TP-39899 | Adding helpers to authorize write operations using dark knight

* TP-39899 | Adding helpers to authorize write operations using dark knight

* TP-39899 | Adding mjolnir permission based auth for write operations on teams

* TP-39899 | Adding mjolnir permission based auth for write operations on teams

* TP-39899 | Moving manager out to independent file

* TP-39623 : created services to make manager, remove team member and remove team (#148)

* Created services to make manager, remove team member and remove team

* TP-39126 | Fixing conflicts and pushing to common branch for testing

* added manager id field in json response for getting team data

* Removed add team member api

* TP-39899 | Sending roles as part of headers

* TP-39899 | Sending permissions in headers

* Add admin role check to create team

* TP-39899 | Adding helper to check if user is manager or admin

* Minor changes in access logic

* TP-39899 | added checks for manager role in remove team member service

* TP-39899 | added validation checks for both make manager and remove team member services

* TP-39899 | added validation checks for remove team service and exposed IsAdmin and IsManager utility functions

* change manager and user ids to emails in request

* TP-39899 | Adding user role check in update team API

* TP:39899 | added loggers and a check whether session token is of email id

* TP-39126 , TP-40468 : Internal UAT Callouts (#155)

* TP-39126 , TP-40468 : UAT Callouts

* PR Review Changes

---------

Co-authored-by: Gullipalli Chetan Kumar <gullipalli.chetan@navi.com>
Co-authored-by: Vijay Joshi <vijay.joshi@navi.com>

* TP-39899 | Fixing build issue (#159)

* TP-38710 | Adding code owners (#158)

* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-38710 | Adding code owners

* TP-39899 | Fixing build issue

* TP-39899 | Fixing build issue (#162)

* TP-39899 | Moving mjolnir call from middleware to helper to avoid build issues (#163)

* TP-39899 | Moving mjolnir call from middleware to helper to avoid build issues

* TP-39899 | Moving mjolnir call from middleware to helper to avoid build issues

* TP-39899 | Moving mjolnir call from middleware to helper to avoid build issues

* TP-39899 | Fixing middleware

* Add invalid email member message fix (#166)

* created fucntion to get only active team by team id and used that in remove team,member and make manager functions (#167)

* TP-38710 | Adding PATCH calls to allowed methods (#172)

* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-38710 | Adding PATCH calls to allowed methods

* TP-39786: Mark duplicate incident (#169)

* Mark incident as duplicate

* TP-38710 | Adding DELETE calls to allowed methods (#174)

TP-38710 | Adding DELETE calls to allowed methods

* TP-38710 | Adding DELETE calls to allowed methods

* TP-40652 : Add date filter on Houston Backend for incidents (#165)

* TP-41745 : Added API to Add/Update On-Call and PSE On-Call (#173)

* TP-41745 : Added API to Add/Update On-Call and PSE On-Call

* TP-41745 : Remove in team check for pse oncall

* TP-41745 : Changes in add oncall and pse oncall after testing (#175)

* Added API to Add/Update On-Call and PSE On-Call

* TP-40539 : Fix can not resolve ticket if no entry found in team tag table for any team (#177)

* TP-40539 : Fix can not resolve ticket if no entry found in team tag table for any team

* TP-40539 : Add tags not require log for non tag team

* TP-40539 : Fix log

* Tp 42583 synch slackusers list to database (#178)

* TP-42583| created api to synch houston user list in database with slack workspace

* TP-42583| exposed api to synch slack users to db and added loggers to scheduler

* TP-42583| added only admin access to the synch users service

* TP-42583| made the service asynch

* edited error messages of remove member,team and make manager functions (#179)

* Case fixing in add team and add member post internal uat (#180)

* TP-43221| added the required design changes in slackbot services (#181)

* TP-43221| added the required design changes in slackbot services

* TP-43221| edited names of commands

---------

Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com>
Co-authored-by: Gullipalli Chetan Kumar <gullipalli.chetan@navi.com>
2023-09-28 11:35:34 +05:30
Shashank Shekhar
3316dde28c TP-40273 | adding responder to the incidents while creating and updating incidents (#150) 2023-09-04 16:35:52 +05:30
Sriram Bhargav
05b09bf7a1 TP-40276 | UAT Updates (#147)
* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-40274 | Resolving merge conflicts

* TP-40276 | Removing comments
2023-09-04 12:43:59 +05:30
Shashank Shekhar
73e77f28fc TP-40164 | renamed resolution_text to RCA (#145) 2023-09-01 19:57:11 +05:30
Shashank Shekhar
52cc8e2967 Psec on call (#144)
* TP-39711 | added pse_oncall_handle to team

* TP-39711 | code cleanup
2023-09-01 18:17:21 +05:30
Sriram Bhargav
3f9402d933 TP-39130 | Adding a slack command in houston to show all the open incidents for a selected team (#140)
* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-39125 | Adding houston option on slack to fetch all open incidents by team

* TP-39130 | Adding slack command to display all open incidents for a team

* TP-39130 | Adding slack command to display all open incidents for a team

* TP-39130 | Changing resonse from normal message to ephemeral
2023-08-31 18:35:24 +05:30
Sriram Bhargav
28d2c6ae53 TP-37863 | Finalizing slack CRM update format (#132)
* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-37863 | Updating crm ticket creation time format in slack update

* TP-37863 | Finalizing slack CRM update format
2023-08-22 14:28:46 +05:30
Sriram Bhargav
335d1dfd66 TP-37863 | Updating crm ticket creation time format in slack update (#131)
* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37588 | Adding error message for unavailable incident issue

* TP-37863 | Updating crm ticket creation time format in slack update

* TP-37863 | Updating crm ticket creation time format in slack update
2023-08-22 13:24:33 +05:30
Shashank Shekhar
138c621ce6 TP-37863 | (#127)
* TP-37863 |
1. sending severities list in descending order
2. resolving slack user from created by email

* TP-37866 | posting metadata in slack channel

* TP-37863 | making resolution text optional

* TP-37863 | adding customerName in metaData
2023-08-21 19:58:41 +05:30
Sriram Bhargav
eff9dbd5a0 TP-37588 | Adding support to send customer information from CRM during incident update (#118)
Adding support to send customer information from CRM during incident update
2023-08-16 14:29:58 +05:30
Shashank Shekhar
147958cc1a TP-38301 | ading resolution text modal and action (#120)
* TP-38301 | ading resolution text modal and action

* TP-38301 | ading resolution text processor
2023-08-16 13:43:07 +05:30
Abhijeet Gupta
1945df5fa5 Tp 28766 (#69)
* TP-28766 | Houston summary

* TP-28766 | cron changes

* TP-28766 | update

* TP-28766 | changes in format

* TP-28766 | Team metric

* TP-28766 | change config

* TP-28766 | change config

* TP-28766 | team metric interval change
2023-05-17 18:42:50 +05:30
Abhijeet Gupta
3d064e35da TP-0000 | team api fix (#33) 2023-04-25 23:30:22 +05:30
Shubham Kirve
9e8195d298 TP-0000 | Adding web apis (#17)
* TP-0000 | adding readiness controller and skeleton for weapi

* TP-0000 | adding apis for web

* TP-0000 | Refactoring code by renaming function

* TP-0000 | reformatting code

* TP-0000 | reformatting code

* TP-0000 | reformatting code

* TP-0000 | reformatting code

* TP-0000 | accomodating review comments and adding remaining apis

* TP-0000 | formatting changes

* TP-25848 | accomodating review comments

* TP-25848 | updating severtiy response
2023-04-20 22:40:57 +05:30
Ravi Chandora
4f74943cf9 TP-0000 | Code Refactor (#10) 2023-04-10 17:30:28 +05:30