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

Notifications refactor #2082

Merged
merged 38 commits into from
Jul 7, 2022
Merged

Notifications refactor #2082

merged 38 commits into from
Jul 7, 2022

Conversation

mouse-reeve
Copy link
Member

@mouse-reeve mouse-reeve commented Apr 9, 2022

This refactor will allow similar notifications to be grouped. For example, instead of having 10 unique notifications that 10 different users liked a status, you can have one notification that lists all 10 users.

Example:
Screen Shot 2022-07-04 at 9 18 55 PM

Remaining work:

  • Migrate model
  • Fix generation of notification
    • Favs
    • Boosts
    • Replies & mentions
    • Reports
    • Group actions
    • List actions
    • Follow actions
  • Update notification view
  • Update individual notification types
    • Favs
    • Boosts
    • Replies & mentions
    • Reports
    • Group actions
    • List actions
    • Follow actions

Works on #2066

@mouse-reeve mouse-reeve marked this pull request as ready for review July 5, 2022 20:08
Right now notifications are a mix of post-save signals and clauses in
the save function of the model. I'm not actually sure which is better,
but I'm moving them to signals where it's straightforward to be
consistent.
Since the main way to interact with them is by approving them in the
notification, I didn't group them
Copy link
Contributor

@hughrun hughrun left a comment

Choose a reason for hiding this comment

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

Appears to work as advertised!

I've suggested some improvements around item notifications, and identified some errors relating to groups.

@mouse-reeve
Copy link
Member Author

Appears to work as advertised!

I've suggested some improvements around item notifications, and identified some errors relating to groups.

Thank you! I'm not seeing any comments besides this one

Copy link
Contributor

@hughrun hughrun left a comment

Choose a reason for hiding this comment

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

It might help if I "Submit review" 🙃

bookwyrm/views/group.py Outdated Show resolved Hide resolved
This test will catch my typo in generating the notifications
@mouse-reeve mouse-reeve merged commit 0b7c8e8 into main Jul 7, 2022
@mouse-reeve mouse-reeve deleted the notifications branch July 7, 2022 16: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