Skip to content

Commit

Permalink
DESENG-496: Fixed Comments cannot be approved
Browse files Browse the repository at this point in the history
Added missing transactional decorator
  • Loading branch information
ratheesh-aot committed Feb 28, 2024
1 parent 05be8f3 commit 7c23bfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## February 27, 2024
- **Bug Fix**Comments cannot be approved while reviewing [DESENG-496](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-496)
- Fixed by adding a missing decorator for transactional methods.

## February 26, 2024
- **Task**Models for dynamic engagement pages [DESENG-500](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-500)
- Implemented endpoints for dynamic engagement pages, including summary and custom sections.
Expand Down
1 change: 1 addition & 0 deletions met-api/src/met_api/services/submission_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def _validate_fields(submission):
raise ValueError('Engagement not open to submissions')

@classmethod
@transactional()
def review_comment(cls, submission_id, staff_review_details: dict, external_user_id) -> SubmissionSchema:
"""Review comment."""
user = StaffUserService.get_user_by_external_id(external_user_id)
Expand Down

0 comments on commit 7c23bfc

Please sign in to comment.