21 Commits

Author SHA1 Message Date
Vijay Joshi
fd2a977e82 INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents (#456)
* INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents

* INFRA-3705 : Self review

* INFRA-3705 : Fix tests:

* INFRA-3705 : UT's and minor constant changes

* INFRA-3705 : Add migration script
2024-09-17 10:01:07 +05:30
Amit Jambotkar
8915c79e18 INFRA-3437|Amit|Add resolve restriction (#435)
* INFRA-3437|Amit|Add resolve restriction

* INFRA-3437|Amit|Add resolve restriction

* INFRA-3437|Amit|Add resolve restriction

* INFRA-3437|Amit|Add resolve restriction

* INFRA-3437|Amit|Add resolve restriction
2024-07-14 16:13:41 +05:30
Amit Jambotkar
3a3a0a7c26 INFRA-3437|Amit|Severity reduction (#427)
* INFRA-3437|Amit|Severity reduction

* INFRA-3437|Amit|Severity reduction

* INFRA-3437|Amit|Severity reduction
2024-06-18 17:54:10 +05:30
Shashank Shekhar
233c632d38 INFRA-2866 | Create and update incident with assigner and responder from slack (#394)
* INFRA-2866 | create incident modal with product

* INFRA-2866 | Update product flow

* INFRA-2866 | Resolving review comments

* INFRA-2866 | Adding default values for product, assigner and responder

* INFRA-2866 | bug fix in getting assigner and responder team

* INFRA-2866 | bug-fix: users in no team are not getting products

* INFRA-2866 | adding log lines

* INFRA-2866 | adding assigner team members into incident

* INFRA-2866 | updated help command response text

* INFRA-2866 | adding assigner team members by severity

* INFRA-2866 | updating product list for users with no product

* INFRA-2866 | assigner teams = (teamsOfUser ++ teamsOfSelectedProducts)

* INFRA-2866 | renamed assigner to reporting team

* INFRA-2866 | query to seed product as others for current open incidents without any product
2024-03-19 16:26:30 +05:30
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
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
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
Shashank Shekhar
a9ffffc31a TP-45730 | creating a global logger (#263) 2023-11-02 13:11:52 +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
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
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
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
chandresh pancholi
d66ff0f2e9 TP-12345 | Slack webhook channel integration (#66) 2023-05-13 01:36:27 +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
a89525839d Formatting changes (#46)
* TP-0000 | fixing get incident issue

* TP-0000 | adding lastupdatedBy in team and severity, fixing empty user list issue

* TP-0000 | reformatting

* TP-0000 | reformatting

* TP-0000 | reformatting

* TP-0000 | reformatting

* TP-0000 | formatting changes

* TP-0000 | formatting changes

* TP-0000 | formatting changes
2023-04-27 13:50: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
Abhijeet Gupta
60ff45be60 TP-0000 | Metric setup And On Call Add And Fkey (#18)
* TP-0000 | Metric setup

* TP-0000 | adding oncall

* TP-0000 | fkey
2023-04-19 20:26:37 +05:30
Abhijeet Gupta
96ce2fff26 TP-0000 | SlackBot Changes (#16)
* TP-0000 | SlackBot Changes

* TP-000 | Confluene Page column

* TP-0000 | comments

* TP-0000 | properties fix

* TP-0000 | func refactor

* TP-0000 | minor changes

Co-authored-by: ravi chandora <ravi.chandora@navi.com>
2023-04-15 19:24:02 +05:30
Shubham Kirve
753228eb77 Shifting postgres/service to separate repo (#14)
* TP-0000 | shifting postgres service to separate repo folder

* TP-0000 | removing unwanted file

* TP-0000 | renaming repo to model

* TP-0000 | renaming repo to model

* TP-0000 | updating role.go
2023-04-12 21:46:03 +05:30