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

Send rejection reasons to reviews #108

Merged
merged 9 commits into from
Jul 30, 2023
Merged

Conversation

nathanmsmith
Copy link
Member

@nathanmsmith nathanmsmith commented Jul 30, 2023

Adds a text field to send a rejection reason to a reviewer. Can also be left blank.

CleanShot 2023-07-30 at 10 04 13@2x

I also did a lot of work refactoring the review approval/rejection messages to use Noticed and refactoring our tests.

@nathanmsmith nathanmsmith marked this pull request as ready for review July 30, 2023 16:57
@nathanmsmith nathanmsmith changed the title Nathan/rejection reason Send rejection reasons to reviews Jul 30, 2023
@codecov
Copy link

codecov bot commented Jul 30, 2023

Codecov Report

Merging #108 (e16273f) into main (1f9b55f) will increase coverage by 1.16%.
The diff coverage is 97.43%.

Additional details and impacted files
Files Changed Coverage Δ
...controllers/enrollment_notifications_controller.rb 82.50% <50.00%> (ø)
app/controllers/admin/reviews_controller.rb 94.59% <100.00%> (+0.30%) ⬆️
app/models/review.rb 94.79% <100.00%> (+0.05%) ⬆️
...notifications/delivery_methods/aws_text_message.rb 83.33% <100.00%> (ø)
app/notifications/enrollment_notification.rb 100.00% <100.00%> (+30.18%) ⬆️
app/notifications/review_approved_notification.rb 100.00% <100.00%> (ø)
app/notifications/review_rejected_notification.rb 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

@nathanmsmith nathanmsmith merged commit 3a8080a into main Jul 30, 2023
3 checks passed
@nathanmsmith nathanmsmith deleted the nathan/rejection-reason branch July 30, 2023 17:06
nathanmsmith added a commit that referenced this pull request Aug 3, 2023
* Testing improvements

* Add rejection reason to review.reject!

* Remove a T.unsafe

* Add ReviewRejectedNotification

* wip

* Add approved,rejected notification tests

* erblint --lint-all -a

* Fix tests

* rake sorbet:update:all
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.

1 participant