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-3042]: Fix feature/unfeature counts bug #4502

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

kabeaty
Copy link
Contributor

@kabeaty kabeaty commented Jan 23, 2024

What does this PR do?

These changes address a bug where if a comment was featured or unfeatured multiple times by different mods, then the count would be updated. This makes it so that if a comment is already featured and someone tries to feature it again, it doesn't update counts or otherwise re-feature. If a comment is already unfeatured and someone tries to unfeature it again, it doesn't update counts or otherwise re-unfeature.

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

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

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

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

How do I test this PR?

See that if you have two windows open with different logged-in mods, and each mod features the same comment, the count will increment by 1 in both cases and it will say "featured". On refresh, the count will still be the same and the comment will still be featured.

See that if you have two windows open with different logged-in mods, and each mod unfeatures the same comment, the count will decrement by 1 in both cases and it will say "unfeatured". On refresh, the count will still be the same and the comment will be unfeatured.

Were any tests migrated to React Testing Library?

How do we deploy this PR?

Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit eb9a2c4
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/65b01901f29c660008ec8daf

@kabeaty kabeaty requested a review from nick-funk January 23, 2024 19:53
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 this pull request to the merge queue Feb 12, 2024
Merged via the queue into develop with commit 2a290f1 Feb 12, 2024
6 checks passed
@kabeaty kabeaty deleted the bug/CORL-3042-featured-comments-counts branch February 12, 2024 17:34
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