Documentation ¶
Overview ¶
Package update contains the logic for updating elements in the system (cases/sequences/projects...).
Index ¶
- func CasePut(t handler.TestCaseUpdater, caseChecker id.TestExistenceChecker, ...) http.HandlerFunc
- func CommentPut(commentStore handler.Comments) http.HandlerFunc
- func CreateNewTestCaseVersion(input TestCaseEditInput, tc test.Case) (test.Case, error)
- func DeactivateUserPut(uu handler.UserUpdater, uv handler.UserValidator) http.HandlerFunc
- func EditPasswordPut(ul handler.UserLister, ua handler.UserAdder, uv handler.UserValidator) http.HandlerFunc
- func EditProfilePut(ul handler.UserLister, userUpdater handler.UserUpdater) http.HandlerFunc
- func IntegrationsPut(adder handler.ProjectAdder) http.HandlerFunc
- func InvalidIsMinor(r *http.Request, v string, cause error) errors.HandlerError
- func MemberUpdate(us middleware.UserRetriever, ps handler.ProjectAdder) http.HandlerFunc
- func NoSequenceVersions(r *http.Request, testID id.TestID) errors.HandlerError
- func ProjectPost(pa handler.ProjectAdder, pec id.ProjectExistenceChecker) http.HandlerFunc
- func ProjectRolesPut(projectAdder handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
- func ProjectVariantsPut(ps handler.ProjectSUTVersionUpdater) func(w http.ResponseWriter, r *http.Request)
- func SequencePut(t handler.TestCaseGetter, tsu handler.TestSequenceUpdater, ...) http.HandlerFunc
- func SystemSettingsPut(systemSettingsStore handler.SystemSettings) http.HandlerFunc
- type TestCaseEditInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CasePut ¶
func CasePut(t handler.TestCaseUpdater, caseChecker id.TestExistenceChecker, commentStore handler.Comments, assigneeGetter handler.TaskGetter, lister handler.TestCaseLister) http.HandlerFunc
CasePut handles put requests that update existing cases.
func CommentPut ¶ added in v1.7.0
func CommentPut(commentStore handler.Comments) http.HandlerFunc
CommentPut updates a comment and prints the new fragment back.
func CreateNewTestCaseVersion ¶
CreateNewTestCaseVersion creates a new test case version with the user input and appends the new version to the list of test case versions in a test case. Returns the testcase with the new version if the input is valid. Otherwise an error is returned
func DeactivateUserPut ¶
func DeactivateUserPut(uu handler.UserUpdater, uv handler.UserValidator) http.HandlerFunc
DeactivateUserPut deletes or deactivates a user, identified by the user an password form values, depending on the system settings attained through contextdomain.GetGlobalSystemSettings().IsDeleteUsers
func EditPasswordPut ¶
func EditPasswordPut(ul handler.UserLister, ua handler.UserAdder, uv handler.UserValidator) http.HandlerFunc
func EditProfilePut ¶ added in v1.7.0
func EditProfilePut(ul handler.UserLister, userUpdater handler.UserUpdater) http.HandlerFunc
func IntegrationsPut ¶
func IntegrationsPut(adder handler.ProjectAdder) http.HandlerFunc
IntegrationsPut handles updating the settings for the integration of a gitlab project
func InvalidIsMinor ¶
InvalidIsMinor returns an error describing that the client send an invalid value for isMinor.
func MemberUpdate ¶ added in v1.3.0
func MemberUpdate(us middleware.UserRetriever, ps handler.ProjectAdder) http.HandlerFunc
func NoSequenceVersions ¶
NoSequenceVersions returns an ErrorMessage describing that the test sequence doesn't have a version.
func ProjectPost ¶
func ProjectPost(pa handler.ProjectAdder, pec id.ProjectExistenceChecker) http.HandlerFunc
ProjectPost is used to update an existing project
func ProjectRolesPut ¶ added in v1.1.0
func ProjectRolesPut(projectAdder handler.ProjectAdder) func(w http.ResponseWriter, r *http.Request)
ProjectRolesPut handles the request to update the roles of a project
func ProjectVariantsPut ¶
func ProjectVariantsPut(ps handler.ProjectSUTVersionUpdater) func(w http.ResponseWriter, r *http.Request)
*
- updates the name of a version or of a variant depending on the input
func SequencePut ¶
func SequencePut(t handler.TestCaseGetter, tsu handler.TestSequenceUpdater, sequenceChecker id.TestExistenceChecker, commentStore handler.Comments, taskGetter handler.TaskGetter, lister handler.TestSequenceLister) http.HandlerFunc
SequencePut handles requests that demand to update a sequence
func SystemSettingsPut ¶ added in v1.7.0
func SystemSettingsPut(systemSettingsStore handler.SystemSettings) http.HandlerFunc
Types ¶
type TestCaseEditInput ¶
type TestCaseEditInput struct { IsMinor bool InputCommitMessage string Data creation.TestCaseInput }
TestCaseEditInput is similar to testCaseInput but also contains information for the change such as the commit message and whether the change is minor.