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

[CORL-2979]: Add custom reason field to Other rejection reason #4436

Merged

Conversation

kabeaty
Copy link
Contributor

@kabeaty kabeaty commented Nov 28, 2023

What does this PR do?

This adds a required Custom reason textbox to the rejection reason modal in the case that the Other reason is selected. This supports rejecting comments for custom reasons.

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

This adds the customReason field to RejectionReason to support this.

Does this PR introduce any new environment variables or feature flags?

no

If any indexes were added, were they added to INDEXES.md?

n/a

How do I test this PR?

You can go to a comment in the stream and reject it. Select the Other reason. See that there's now a required Custom reason field when Other is selected. Type a custom reason and click reject. See that the custom reason is saved. An additional explanation can also still be added. Other rejection reasons should still behave as before.

Also see that the same changes are reflected in the admin for rejection reason modal.

Where any tests migrated to React Testing Library?

How do we deploy this PR?

Copy link

netlify bot commented Nov 28, 2023

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit f585529
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/65663d3df7aa4200085f77bd

Copy link
Contributor

@nick-funk nick-funk left a comment

Choose a reason for hiding this comment

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

Looks good! ✅

@kabeaty kabeaty added the 🚀 merge it! Pull requests that should be merged after status checks pass with a review label Dec 4, 2023
@kabeaty kabeaty added this pull request to the merge queue Dec 4, 2023
Merged via the queue into develop with commit a12d931 Dec 4, 2023
@kabeaty kabeaty deleted the feat/CORL-2979-add-custom-reason-field-other-rejection branch December 4, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 merge it! Pull requests that should be merged after status checks pass with a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants