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

DSA notifications: handle not found comment #4411

Merged

Conversation

nick-funk
Copy link
Contributor

What does this PR do?

Handles the case when a comment no longer exists in the database when resolving notifications in graphql.

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

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

None

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

No

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

None

How do I test this PR?

  • enable DSA in config
  • create a new user (you're deleting them soon)
  • post a comment
  • have a mod/admin reject the comment
  • check the user's notifications to see that they have a rejection notification for the comment
  • delete the comment using mongo
  • go back to the user's notifications
  • see that the notification exists, but the referenced comment is not longer there

Where any tests migrated to React Testing Library?

No

How do we deploy this PR?

  • Merge into DSA epic branch

Sorry, something went wrong.

simply return null instead of throwing an error
Copy link

netlify bot commented Nov 20, 2023

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit 294fb31
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/655bd0657082e40008792980

@nick-funk nick-funk changed the base branch from develop to feat/dsa-launch-pad November 20, 2023 21:32
Copy link
Contributor

@kabeaty kabeaty 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 merged commit db50f62 into feat/dsa-launch-pad Nov 21, 2023
@kabeaty kabeaty deleted the fix/dsa-notifications-handle-not-found-comment branch November 21, 2023 18:11
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.

None yet

2 participants