Commit Graph

79 Commits

Author SHA1 Message Date
Ajay Devarakonda
4c0fbceb33 TP-51197 | Fixed meeting link display in blaze channel (#326)
* TP-38709 | Merging the changes to master on the logfix

* TP-51197 | Fixed meeting link display on blaze channel

* TP-51197 | Fixed label for meeting not available
2023-12-15 14:46:21 +05:30
Ajay Devarakonda
29fbf519e5 TP-51020 | Fixed houston commands alignment issue (#324)
* TP-38709 | Merging the changes to master on the logfix

* TP-51020 | Added help commands button in incident channel which displays the list of supported commands

* TP-51020 | Fixed houston commands alignment issue
2023-12-14 16:43:18 +05:30
Ajay Devarakonda
51e249cef6 TP-51020 | Added help commands button in incident channel section (#323)
* TP-38709 | Merging the changes to master on the logfix

* TP-51020 | Added help commands button in incident channel which displays the list of supported commands
2023-12-14 14:39:52 +05:30
Ajay Devarakonda
0f46d506e3 TP-49333 | Fixed auto escalation message while creating incident (#306)
* TP-38709 | Merging the changes to master on the logfix

* TP-49333 | Fixed SLA message while creating incident

* TP-49333 | Fixed PR review comments

* TP-49333 | Fixed merge conflicts
2023-12-13 18:39:15 +05:30
Vijay Joshi
a40785213b TP-50685 : Krakatoa Integration Phase 2 - Fetch CSV files from monitoring service and post CSV files to Slack (#321)
Krakatoa Integration Phase 2
2023-12-13 16:54:34 +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
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
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
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
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
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
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
Ajay Devarakonda
4238a905fb TP-41211 | Add tag issue fix when an incident has tags from multiple teams (#156)
* TP-38709 | Merging the changes to master on the logfix

* TP-41211 | Add tag fix when an incident has tags from multiple teams.
2023-09-09 23:08:55 +05:30
Shashank Shekhar
8f6a01996c TP-40888 | replacing new line characters in rca text with blank space when displaying the update in slack channel (#154) 2023-09-07 14:30:55 +05:30
Shashank Shekhar
74ff719e62 TP-40888 | fixed issue when rca text was not a code in slack when new line character was present, changed it to a code block (#153) 2023-09-07 13:26:40 +05:30
Sriram Bhargav
e837491231 TP-39899 | UAT updates (#152)
* 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

* TP-39899 | UAT updates
2023-09-05 16:05:47 +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
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
b2a7cf7372 TP-38068 | Fixing issue with inviting oncall to incident after re-assign (#126)
* TP-37854 | Requesting access to dev tools services on deployment protal

* TP-37854 | Fixing issue with inviting oncall to incident after re-assign

* TP-37854 | Fixing issue with inviting oncall to incident after re-assign
2023-08-18 15:30:59 +05:30
Shashank Shekhar
e7a134cac0 TP-38301 | making resolution text field mandatory when adding from incident section (#125) 2023-08-18 11:15:17 +05:30
Shashank Shekhar
a90aae4e59 TP-38301 | adding resolution text input with tags (#123) 2023-08-18 10:55:47 +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
Shubham Kirve
a37a0607e3 TP-0000 | shifting inviting users logic in async func (#115) 2023-07-10 14:03:54 +05:30
Tushar Kumar Saha
6a946dab52 TP-27996 | change date format and ack message (#114) 2023-06-23 17:51:36 +05:30
Tushar Kumar Saha
7498dd234d Deployment config (#101)
* TP-27996 | enable deployment config
2023-06-21 11:24:52 +05:30
Tushar Kumar Saha
d269e7705a TP-27996 | enable deployment portal (#108) 2023-06-20 18:30:34 +05:30
Tushar Kumar Saha
2d4a4d83e2 Grafana api (#104)
* TP-27996 | use grafana api to fetch dashboard screenshot
2023-06-20 15:14:15 +05:30
Tushar Kumar Saha
93ab7fe9d0 TP-27996 | add support for config changes (#102) 2023-06-19 21:23:42 +05:30
Shubham Kirve
8aa4cd4350 TP-25848 | shifting unnecessary logic of changing severity to async func (#99) 2023-06-18 20:13:37 +05:30
Shubham Kirve
4c80e19fbc TP-0000 | shifting unnecessary logic in async function (#94) 2023-06-14 12:02:07 +05:30
Tushar Kumar Saha
64a30d5081 TP-12345 | Rp/diagnostic bot (#90) 2023-06-13 03:23:24 +05:30