Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: removed all the standalone test case #13

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6191901
refactor: isPlugin for API level
Rajat-Dabade Jun 27, 2024
fae82fe
chore: removed GetContextConn as it is not required
Rajat-Dabade Jun 27, 2024
a20079b
chore: clean up api.go removed none required function
Rajat-Dabade Jun 27, 2024
60c76e9
chore: removed commented code
Rajat-Dabade Jun 27, 2024
4c9a8a9
refactor: removed the admin as its no log required
Rajat-Dabade Jun 27, 2024
f942a47
refactor: removed handlePostTeamRegenerateSignupToken as not used any…
Rajat-Dabade Jun 27, 2024
688f53a
refactor: updated make file rules
Rajat-Dabade Jun 28, 2024
80d402e
refactor: removed isGuest code
Rajat-Dabade Jun 28, 2024
403ba9c
refactor: removed auth login password changepassword code
Rajat-Dabade Jun 28, 2024
f2b54b8
chore: linter fixes
Rajat-Dabade Jun 28, 2024
70467de
refactor: removed user login register code
Rajat-Dabade Jun 30, 2024
ef9438a
chore: linter fixes
Rajat-Dabade Jul 1, 2024
2a1a362
refactor: removed auth layer
Rajat-Dabade Jul 1, 2024
e718d7e
refactor: removed isSingle user checks
Rajat-Dabade Jul 1, 2024
084839a
chore: removed debugging logs
Rajat-Dabade Jul 1, 2024
3b46c4b
chore: removed debugging logs
Rajat-Dabade Jul 1, 2024
64af4d5
revert: isGuestUser check
Rajat-Dabade Jul 5, 2024
4735490
Deprecate standalone SQL store level (#4)
Rajat-Dabade Jul 13, 2024
fdeee37
MM-59356: Fixing testcase for webapp and server (#6)
Rajat-Dabade Jul 16, 2024
868136f
refactor: removed all the standalone test case
Rajat-Dabade Jul 16, 2024
4b9bdfc
chore: removed test cases
Rajat-Dabade Jul 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: removed handlePostTeamRegenerateSignupToken as not used any…
…more
Rajat-Dabade committed Jun 27, 2024
commit f942a47e9cec5172828059ea38b187951d3618af
48 changes: 0 additions & 48 deletions server/api/teams.go
Original file line number Diff line number Diff line change
@@ -131,54 +131,6 @@ func (a *API) handleGetTeam(w http.ResponseWriter, r *http.Request) {
auditRec.Success()
}

func (a *API) handlePostTeamRegenerateSignupToken(w http.ResponseWriter, r *http.Request) {
// swagger:operation POST /teams/{teamID}/regenerate_signup_token regenerateSignupToken
//
// Regenerates the signup token for the root team
//
// ---
// produces:
// - application/json
// parameters:
// - name: teamID
// in: path
// description: Team ID
// required: true
// type: string
// security:
// - BearerAuth: []
// responses:
// '200':
// description: success
// default:
// description: internal error
// schema:
// "$ref": "#/definitions/ErrorResponse"
if a.MattermostAuth {
a.errorResponse(w, r, model.NewErrNotImplemented("not permitted in plugin mode"))
return
}

team, err := a.app.GetRootTeam()
if err != nil {
a.errorResponse(w, r, err)
return
}

auditRec := a.makeAuditRecord(r, "regenerateSignupToken", audit.Fail)
defer a.audit.LogRecord(audit.LevelModify, auditRec)

team.SignupToken = utils.NewID(utils.IDTypeToken)

if err = a.app.UpsertTeamSignupToken(*team); err != nil {
a.errorResponse(w, r, err)
return
}

jsonStringResponse(w, http.StatusOK, "{}")
auditRec.Success()
}

func (a *API) handleGetTeamUsers(w http.ResponseWriter, r *http.Request) {
// swagger:operation GET /teams/{teamID}/users getTeamUsers
//