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

Closes #2292 - removed erroneous read-only annotation from TaskCommen… #2294

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ public ResponseEntity<TaskCommentRepresentationModel> getTaskComment(
/**
* This endpoint retrieves all Task Comments for a specific Task. Further filters can be applied.
*
* @title Get a list of all Task Comments for a specific Task
* @param taskId the Id of the Task whose comments are requested
* @param request the HTTP request
* @param filterParameter the filter parameters
* @param sortParameter the sort parameters
* @param pagingParameter the paging parameters
* @return a list of Task Comments
* @title Get a list of all Task Comments for a specific Task
*/
@GetMapping(path = RestEndpoints.URL_TASK_COMMENTS)
@Transactional(readOnly = true, rollbackFor = Exception.class)
Expand Down Expand Up @@ -136,7 +136,7 @@ public ResponseEntity<TaskCommentCollectionRepresentationModel> getTaskComments(
* @throws NotAuthorizedOnTaskCommentException if the current user has not correct permissions
*/
@DeleteMapping(path = RestEndpoints.URL_TASK_COMMENT)
@Transactional(readOnly = true, rollbackFor = Exception.class)
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<TaskCommentRepresentationModel> deleteTaskComment(
@PathVariable String taskCommentId)
throws TaskNotFoundException,
Expand Down Expand Up @@ -167,7 +167,7 @@ public ResponseEntity<TaskCommentRepresentationModel> deleteTaskComment(
* @throws NotAuthorizedOnWorkbasketException if the current user has not correct permissions
*/
@PutMapping(path = RestEndpoints.URL_TASK_COMMENT)
@Transactional(readOnly = true, rollbackFor = Exception.class)
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<TaskCommentRepresentationModel> updateTaskComment(
@PathVariable String taskCommentId,
@RequestBody TaskCommentRepresentationModel taskCommentRepresentationModel)
Expand Down