Files
houston-be/service/request/add_team.go
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

10 lines
459 B
Go

package service
type AddTeamRequest struct {
Name string `json:"name" gorm:"column:name"`
SlackUserEmails []string `json:"slack_user_emails" gorm:"column:slack_user_emails"`
OncallHandle string `json:"oncall_handle" gorm:"column:oncall_handle"`
WebhookSlackChannel string `json:"webhook_slack_channel" gorm:"column:webhook_slack_channel"`
ManagerEmail string `json:"manager_email" gorm:"column:manager_email"`
}