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

[To Main] Bugfix: Comments do not update when editing rejected comments [DESENG-527] #2452

Merged
merged 4 commits into from
Apr 8, 2024

Conversation

NatSquared
Copy link
Contributor

Issue #: 🎟️ DESENG-527
Description of changes:

  • Bugfix: Submission of rejected comments 🎟️ DESENG-527
    • Fixed issue where resubmitted comments would not reappear in the queue for approval.
    • Added unit tests to ensure the issue does not reoccur.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@bcgov bcgov deleted a comment from codecov-commenter Apr 8, 2024
@bcgov bcgov deleted a comment from codecov-commenter Apr 8, 2024
submission = SubmissionService().create(
email_verification.verification_token, submission_request)
# pretend the comment was rejected
submission.comment_status_id = Status.Rejected.value
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this isn't a big deal but is there a way to get the service to set the value to comment_status_id rather than manually setting it? How much are we really testing the service if we're setting the value?

Copy link

sonarqubecloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bcgov bcgov deleted a comment from codecov-commenter Apr 8, 2024
@NatSquared NatSquared merged commit 13729fb into main Apr 8, 2024
11 checks passed
@NatSquared NatSquared deleted the bugfix/DESENG-527-rejected-comments branch April 8, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants