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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notifications' exceptions #2187

Merged
merged 2 commits into from
Dec 14, 2017
Merged

Fix notifications' exceptions #2187

merged 2 commits into from
Dec 14, 2017

Conversation

voodoorai2000
Copy link
Member

@voodoorai2000 voodoorai2000 commented Dec 13, 2017

Relate PR

Why

  • Some users are experiencing exceptions when viewing their notifications

What

  • Refactors notification system
  • Tests every combination of in-app notifications with the different notifiable models
  • Gotchas solved:
    • Notifications for resources that have been hidden by a moderator
    • Notifications for resources that have been retired by the author
    • Notifications for resources that did not have a created_at column

How

  • Using a concern to extract the logic common to every notifiable resource
  • Using shared_examples to test model specs and feature specs related to notifications for each resource that is notifiable through in-app notifications (馃敂 )

Test

  • Staging environment testing will be required to make sure all users can now see their notifications

Deployment

  • As usual

Warnings

  • Proposal Notifications are a special case. Tests are duplicated. It should be refactored in a separate PR. Probably best once we continue working on Admin Notifications and seeing how these two types would fit in nicely with the exiting Notifications about comments and comment replies.

@voodoorai2000 voodoorai2000 self-assigned this Dec 13, 2017
@voodoorai2000 voodoorai2000 added this to the v0.12 milestone Dec 13, 2017
@voodoorai2000 voodoorai2000 added this to Doing in Roadmap Dec 13, 2017
@voodoorai2000 voodoorai2000 changed the title [WIP] Notifications [WIP] Notifications Refactoring Dec 13, 2017
@voodoorai2000 voodoorai2000 changed the title [WIP] Notifications Refactoring [WIP] Refactoring Notifications Dec 13, 2017
@voodoorai2000 voodoorai2000 force-pushed the notifications branch 3 times, most recently from 28c6fc7 to 420084a Compare December 13, 2017 21:56
@bertocq bertocq modified the milestones: v0.13, v0.12 Dec 14, 2017
@bertocq bertocq removed this from the v0.12 milestone Dec 14, 2017
@voodoorai2000 voodoorai2000 changed the title [WIP] Refactoring Notifications Fix notification exceptions Dec 14, 2017
@voodoorai2000 voodoorai2000 changed the title Fix notification exceptions Fix notifications' exceptions Dec 14, 2017
@voodoorai2000 voodoorai2000 merged commit 9ba8ca7 into master Dec 14, 2017
@voodoorai2000 voodoorai2000 deleted the notifications branch December 14, 2017 21:11
@voodoorai2000 voodoorai2000 moved this from Doing to Done in Roadmap Dec 15, 2017
@voodoorai2000 voodoorai2000 removed this from Done in Roadmap Jan 3, 2018
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
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