Commit Graph

281 Commits

Author SHA1 Message Date
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
Vijay Joshi
8ad6a842f8 INFRA-2971 : Add member api segregated (#385)
* INFRA-2971 : Add member api segregated

* INFRA-2971 : pr review changes

* INFRA-2971 : Message updated
2024-03-05 13:03:56 +05:30
Vijay Joshi
eda6e689e3 INFRA-2901 : rename migration (#384) 2024-02-28 19:40:48 +05:30
Vijay Joshi
17acefb2a8 INFRA-2901 : Add severity team function for incident use cases (#383)
* INFRA-2901 : Add severity team function for incident use cases

* INFRA-2901 : Add migration scripts as single and add nullability in bot and channel response

---------

Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2024-02-28 18:20:10 +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
Vijay Joshi
983c743609 INFRA-2873 : Team Management V2 - Update team, remove member, make manager, get team details Phase 2 changes (#381)
* INFRA-2873 : Completed till update team and remove member flow

* INFRA-2873 : Complete make manager, remove member, get teams flow

* INFRA-2873 : Minor auth service and rebase changes

* INFRA-2873 : Minor changes

* INFRA-2873 : Minor changes

* INFRA-2873 : PR Review changes

* INFRA-2873 : Added UTs

* INFRA-2873 : Second round review changes
2024-02-27 17:02: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
99c79a6484 INFRA-2911 | updated unit test (#377) 2024-02-20 14:18:10 +05:30
Shashank Shekhar
c147de3a0c INFRA-2911 | updated error messages for product APIs (#376) 2024-02-20 13:08:20 +05:30
Shashank Shekhar
c575dc3289 INFRA-2911 | fixed test failure (#375) 2024-02-20 12:08:34 +05:30
Shashank Shekhar
4ddbde07b5 INFRA-2911 | Removing index query on primary key (gets auto created) (#374) 2024-02-19 19:18:01 +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
Shashank Shekhar
36d590221c INFRA-2829 | Implemented transaction in create incident flow (#371)
* INFRA-2829 | Implemented transaction in create incident flow

* INFRA-2829 | created util func for rollback

* INFRA-2829 | removed redundant cod to create slack channel
2024-02-16 14:47:22 +05:30
Shashank Shekhar
ede0b1a60c INFRA-2894 | updated slack text for de-escalation reason (#370) 2024-02-16 12:02:49 +05:30
Vijay Joshi
976c12bf83 INFRA-2897 : [DT] Add configurable archival interval in archival cron (#369)
Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2024-02-15 20:08:36 +05:30
Shashank Shekhar
5b34edf9a3 INFRA-2894 | handled justification text's max length in update incident API (#368) 2024-02-15 14:13:24 +05:30
Vijay Joshi
358799442e INFRA-2828 : Drop unused tables, update migrations and removed unused code modules (#367) 2024-02-13 15:43:24 +05:30
Vijay Joshi
f8b286adb1 INFRA-2856 : Added alerts for incident creation, resolve and zenduty failures (#366) 2024-02-12 19:11:02 +05:30
Shashank Shekhar
e88123ede6 INFRA-2847 | Added API to remove member from severity (#365)
* INFRA-2847 | Added API to remove member from severity

* INFRA-2847 | Adding missing return statements after http responses

* INFRA-2847 | Checking if user is already part of sev list or not before removing

* INFRA-2847 | Updated error messages and code formatting
2024-02-12 18:16:12 +05:30
Gullipalli Chetan Kumar
a4c648649b TP-54496 | Created justification message prompt for de-escalation (#360)
* TP-54496| created justification message prompt for de-escalation

* TP-54496| added migration file to update new column in log table

* TP-54496| added feature flag

* TP-54496| created util functions and constants

* TP-54496| updated design changes

* TP-54496| made the requested changed in PR comments

* TP-54496| fixed bugs in merge conflicts

* TP-54496| acknowledging to slack before hand so to not time out

* TP-54496| modified log entity field justification

---------

Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2024-02-07 18:11:50 +05:30
Vijay Joshi
44756e482d INFRA-2816 : Slack Service UT - Channel Operations (#364) 2024-02-07 18:07:55 +05:30
Vijay Joshi
6e73a8add8 TP-56019 : Slack Service UT - User Operations (#363) 2024-02-06 14:49:44 +05:30
Vijay Joshi
4f139abc85 TP-56017 : Slack Service UT - Messaging Operations (#362) 2024-02-05 12:28:13 +05:30
Vijay Joshi
34596e9a38 TP-55808 : On-call mid-term fix for failure when not not in channel for team update and get conversation history (#361)
* TP-55808 : Add Houston Bot to channel on to avoid get conversation history error

* TP-55808 : Add mid term fix to set topic failure

* TP-55808 : Add TO-DO
2024-02-02 17:11:31 +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
dependabot[bot]
984118a85d Bump golang.org/x/crypto from 0.14.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 11:24:33 +00:00
Shashank Shekhar
e0f78dc190 TP-54880 | Posting SLA breach heads-up message when an incident is reopened and TAT is breached or breaching within next 24 hours (#358)
* TP-54880 | Posting SLA breach headsup message when an incident is reopened and TAT is breached or breaching withing next 24 hours

* TP-54880 | Posting SLA breach headsup message when an incident is reopened and TAT is breached or breaching withing next 24 hours

* TP-54880 | Posting SLA breach headsup message when an incident is reopened and TAT is breached or breaching withing next 24 hours
2024-01-23 19:07:05 +05:30
Ajay Devarakonda
0b9fca2b2f TP-55036 | Added alert for Krakatoa workflow failures while fetching grafana images and csv file (#356)
* TP-38709 | Merging the changes to master on the logfix

* TP-55036 | Added alert for krakatoa failures if there are grafana errors or csv errors

* TP-55036 | Fixed unit tests
2024-01-23 19:02:47 +05:30
Ajay Devarakonda
45fce5521f TP-55035 | Added alerts for conference event creation, fetching and deletion failures (#357)
* TP-38709 | Merging the changes to master on the logfix

* TP-55035 | Added alerts for failures while creating, fetching and deleting conference events

* TP-55035 | Fixed conflicts

* TP-55035 | trying guage metric to reset counter

* TP-55035 | Revertingn guage metrics
2024-01-23 18:51:56 +05:30
Ajay Devarakonda
d8d17ef901 TP-54479 | Fixed backend to accept date and timestamp in get incidents api call (#352)
* TP-38709 | Merging the changes to master on the logfix

* TP-54479 | Fixed get incidents to acceept time stamp for time zone based results
2024-01-19 18:39:37 +05:30
Ajay Devarakonda
9ad824c7de TP-53168 | Fixed build conflict (#355)
* TP-38709 | Merging the changes to master on the logfix

* TP-53168 | Implemented metrics publishment on failure of RCA generation

* TP-53168 | Added rca generation failure counter to must register alerts

* TP-53168 | fixed log level on rca failure

* TP-53168 | Added incident id as part of log for rca failure

* TP-53168 | Fixed build conflict
2024-01-19 18:09:54 +05:30
Ajay Devarakonda
7b5161803b TP-53168 | Added alert when RCA generation fails while sending request to Gen AI or when we receive failure from Gen AI (#354)
* TP-38709 | Merging the changes to master on the logfix

* TP-53168 | Implemented metrics publishment on failure of RCA generation

* TP-53168 | Added rca generation failure counter to must register alerts

* TP-53168 | fixed log level on rca failure

* TP-53168 | Added incident id as part of log for rca failure
2024-01-19 17:45:53 +05:30
Ajay Devarakonda
392f434e46 TP-53262 | Fixed incident status from slash command processor and incident update status popup (#353)
* TP-38709 | Merging the changes to master on the logfix

* TP-53262 | Fixed set status to investigating from incident action drop down and from slash command resolver

* TP-53262 | Resolved pr comment

* TP-53262 | Resolved pr comment

* TP-53262 | Resolved pr comment
2024-01-17 17:42:51 +05:30
Ajay Devarakonda
bc21096b6e TP-54495 | Removed @here in rca generation message (#351)
* TP-38709 | Merging the changes to master on the logfix

* TP-54495 | Removed @here in rca generation message
2024-01-17 12:03:12 +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
Gullipalli Chetan Kumar
6e783c993e TP-53720 : Sending RCA summary in slack conversation data (#350)
* TP-53720| sending rca summary in slack conversation data

* TP-53720| updated time stamps

* TP-53720
2024-01-10 18:37:58 +05:30
Gullipalli Chetan Kumar
e4c4fec988 TP-50862 | Exposed an api to get slack conversation pre signed url (#349)
* TP-50862| created api to get slack conversation pre signed url

* TP-50862| added unit tests

* TP-50862| fixed authentication bug
2024-01-09 10:01:33 +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
d8fc4380ff TP-52739| added ordering of team members in get teams api (#343) 2023-12-28 18:12:49 +05:30
Ajay Devarakonda
adb2795b12 TP-51651 | Fixed error logging for delete event skipping case (#340)
* TP-38709 | Merging the changes to master on the logfix

* TP-51651 | Fixed merge conflicts issue along with error optimisation

* TP-51651 | Fixed error handling for empty record not found use case while fetching rca link
2023-12-27 12:05:08 +05:30
Shashank Shekhar
777437652e TP-52227 | Deleting deprecatd API (#339) 2023-12-27 10:45:11 +05:30
Shashank Shekhar
d962754050 TP-52227 | adding custom metric for slack channel creation failures (#338) 2023-12-26 14:34:22 +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
Gullipalli Chetan Kumar
74c1b88b3d TP-51709 : Enabled Marking an Incident as Duplicate through update Incident API (#336)
* TP-51709| created mark-duplicate-incident-status function

* TP-51709| made the duplicate status code modular
2023-12-22 14:18:43 +05:30
Ajay Devarakonda
c9785af64b TP-51651 | Implemented delete event (#335)
* TP-38709 | Merging the changes to master on the logfix

* TP-51651 | Added implementation for deleting event on incident resolve and duplicate status updates

* TP-51651 | Added delete event as go routine

* TP-51651 | Added go routine in resolve action as well

* TP-51651 | Fixed naming conventions

* TP-51651 | Fixed naming conventions
2023-12-22 12:05:47 +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
Ajay Devarakonda
1750ac3c18 TP-51655 | Implementation for creating conference event when severity is updated to other than sev3 (#334)
* TP-38709 | Merging the changes to master on the logfix

* TP-51652 | Added condition to not create conference events for sev3 severity incidents

* TP-51653 | Added condition to skip krakatoa workflow for sev 3 incidents

* TP-51655 | Added implementation to create google meet when severity is changed from sev3

* TP-51655 | Updated wait group count

* TP-51655 | Removed service as a param
2023-12-19 18:17:39 +05:30