Commit Graph

59 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Shashank Shekhar
f075b0df8f TP-48200 | updated response messages in link and unlink jira apis (#278) 2023-11-08 17:29:25 +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
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
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
Shashank Shekhar
79199f35da Revert "TP-43339 | cors error fix (#210)" (#211)
This reverts commit 0393c26724.
2023-10-09 19:38:38 +05:30
Shashank Shekhar
0393c26724 TP-43339 | cors error fix (#210) 2023-10-09 18:48:52 +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
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
Ajay Devarakonda
9cbc70c23a Log fix (#139)
* TP-38709 || serialized callback and event attributes while publishing log to kibana to limit the field types

* TP-38709 | Serialized event log as well

* TP-38709 | Megred latest changes of logfix to master
2023-08-25 14:58:52 +05:30
Ajay Devarakonda
c20112f150 Log fix (#130)
* TP-38709 || serialized callback and event attributes while publishing log to kibana to limit the field types

* TP-38709 | Serialized event log as well
2023-08-21 19:16:03 +05:30
Ajay Devarakonda
ba33f46b7d TP-38709 || serialized callback and event attributes while publishing log to kibana to limit the field types (#129) 2023-08-21 18:33:41 +05:30
Sriram Bhargav
299a0b430a TP-37854 | Adding API to fetch last 5 incidents by team (#119)
Adding API to fetch last 5 incidents by team
2023-08-16 14:30:22 +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
89df2f8300 Crm integration (#117)
* TP-37863 | update create-incident api request and database model

* TP-37863 | checking if user exists before adding into slack channel
2023-08-14 13:54:12 +05:30
Tushar Kumar Saha
7498dd234d Deployment config (#101)
* TP-27996 | enable deployment config
2023-06-21 11:24:52 +05:30
Shubham Kirve
593bca83ee TP-0000 | dummy change (#97)
* TP-0000 | dummy change

* TP-0000| removing unwanted file

* TP-0000 | dummy change
2023-06-14 14:28:00 +05:30
Tushar Kumar Saha
64a30d5081 TP-12345 | Rp/diagnostic bot (#90) 2023-06-13 03:23:24 +05:30
Abhijeet Gupta
0c69c9d191 HOUS-4 | add houston users (#91) 2023-06-02 11:34:42 +05:30
Shubham Kirve
e1b39f3a07 TP-0000 | excluding filters api from middleware (#89)
* TP-0000 | excluding filters api from middleware

* TP-0000 | excluding filters api from middleware
2023-05-29 14:49:20 +05:30
Abhijeet Gupta
cbbdb9aba1 TP-0000 | header file (#88) 2023-05-29 12:36:42 +05:30
Abhijeet Gupta
57788c808f TP-0000 | unsecured get incident krakatoa api (#87) 2023-05-21 09:22:43 +05:30
Abhijeet Gupta
68b12f5a14 TP-0000 | Use houston group (#75) 2023-05-18 14:44:30 +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
Shubham Kirve
b135eade9c Revert "Revert "TP-0000 | restricting incident creation from private channels"" (#63)
* Revert "Revert "TP-0000 | restricting incident creation from private channels (#60)" (#62)"

This reverts commit b3eed5dd63.

* TP-0000 | allow incident creation from channels where houston is invited

* TP-0000 | renaming functions

* TP-0000 | making desc mandatory
2023-05-11 17:56:34 +05:30
Abhijeet Gupta
b3eed5dd63 Revert "TP-0000 | restricting incident creation from private channels (#60)" (#62)
This reverts commit 3b00d91e48.
2023-05-11 01:20:38 +05:30
Shubham Kirve
3b00d91e48 TP-0000 | restricting incident creation from private channels (#60)
* TP-0000 | restricting incident creation from private channels

* TP-0000 | handling null channel info

* TP-0000 | updating name of function

* TP-0000 | refactoring codee
2023-05-10 14:22:37 +05:30
chandresh pancholi
95c1c72771 TP-12345|adding slack topic while creating channel (#51)
* TP-12345|adding slack topic while creating channel

* TP-12345|create incident request api update
2023-05-03 12:54:59 +05:30
Shubham Kirve
22e508ec69 Archiving only sev2 and sev3 after resolution, some formatting changes (#47)
* TP-0000 | bug fix

* TP-0000 | archiving only sev-2 and 3 after resolution

* TP-0000 | archiving only sev-2 and 3 after resolution

Co-authored-by: Abhijeet <abhijeet.gupta@navi.com>
2023-04-28 00:35:34 +05:30
Abhijeet Gupta
12ce39cb77 Revert "TP-0000 | middleware (#41)" (#42)
This reverts commit 3713b793a3.
2023-04-27 00:03:32 +05:30
Abhijeet Gupta
3713b793a3 TP-0000 | middleware (#41) 2023-04-26 23:33:39 +05:30
Abhijeet Gupta
285c1c2794 TP-0000 | sev-proile (#37) 2023-04-26 00:23:31 +05:30
Abhijeet Gupta
1f99edcb83 TP-0000 | sev fix (#34) 2023-04-25 23:46:29 +05:30
Abhijeet Gupta
c8f8a3bcc7 TP-0000 | fix (#30) 2023-04-24 23:44:12 +05:30
Abhijeet Gupta
3cbf76e4af TP-0000 | create inc api (#29)
* TP-0000 | create inc api

* TP-0000 | fix

* TP-0000 | sev 0 id

* TP-0000 | incident client handler
2023-04-24 23:33:56 +05:30
Shubham Kirve
0928515d49 TP-0000 | shifting readiness controller at top (#23) 2023-04-21 14:08:56 +05:30
Abhijeet Gupta
51f285b272 TP-0000 | middleware (#22) 2023-04-21 13:42:45 +05:30
Abhijeet Gupta
bd5e6aa9eb TP-0000 | fix (#21) 2023-04-20 23:48:12 +05:30
Shubham Kirve
a33ee0949a TP-0000 | adding logs to check values (#20) 2023-04-20 23:43:04 +05:30
Abhijeet Gupta
810b314649 TP-0000 | Add tag condition for not resolved (#19)
* TP-0000 | Add tag condition for not resolved

* TP-0000 | archive uncomment

* TP-0000 | ping api

* TP-0000 | mjolnir
2023-04-20 23:19:10 +05:30