16 Commits

Author SHA1 Message Date
Vijay Joshi
b3a43b843a NTP-13111 : Skip user email updatation based on recent slack contract (#487) 2025-03-13 14:35:29 +05:30
Vijay Joshi
288a7f8457 INFRA-3664 : Make get users in conversation api more performant, add api to sync incident users, module to track request statuses and remove old add incident-user api (#451)
* INFRA-3664 : Make get users in conversation api more performant

* INFRA-3664 : Add apis for incident user sync and get users in incident performance improvements

* INFRA-3664 : Self review

* INFRA-3664 : Add migration script

* INFRA-3664 : Review comments

* INFRA-3664 : Constant chanes

* INFRA-3664 : Add rate limit constants

* INFRA-3664 : Add rate limit constants

* INFRA-3664 : Fix failing tests

* INFRA-3664 : Add UT's
2024-08-29 11:52:56 +05:30
Vijay Joshi
8cd72b46a3 INFRA-2887 : Upsert users cron refactor (#412)
* INFRA-2887 : Upsert users cron refactor

* INFRA-2887 : Review changes

* INFRA-2887 : added UT's

* INFRA-2887 : Second round review changes

* INFRA-2887 : Add default ack

* INFRA-2887 : Add default ack

* INFRA-2887 : make flow async
2024-04-02 16:25:34 +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
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
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
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
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
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
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
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
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
Abhijeet Gupta
0c69c9d191 HOUS-4 | add houston users (#91) 2023-06-02 11:34:42 +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