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

Implement the Notification Repository #42

Open
2 tasks
raaaahman opened this issue Jan 18, 2021 · 0 comments
Open
2 tasks

Implement the Notification Repository #42

raaaahman opened this issue Jan 18, 2021 · 0 comments
Labels
[Scope] Database / Persistence Issue related to storing data. To WP database or another location. [Type] Feature Describe a feature to be added to the project

Comments

@raaaahman
Copy link
Collaborator

raaaahman commented Jan 18, 2021

The Repository will allow to query, store or update the notifications status: https://github.com/WordPress/wp-notify/blob/develop/includes/persistence/class-wp-notify-wpdb-notification-repository.php

It should be configured with a connection to an actual persistence mechanism (like a MariaDB database) but be decoupled from it.

A tutorial about how to implement a Repository using WordPress queries: https://carlalexander.ca/designing-class-manage-wordpress-posts/

  • The repository should be able to query notifications by a date range (e.g.: last month, last week, etc.)
  • The queried notifications should be filtered to only return notifications with a recipient matching the current user.
@raaaahman raaaahman added [Scope] Database / Persistence Issue related to storing data. To WP database or another location. [Type] Feature Describe a feature to be added to the project labels Jan 18, 2021
@raaaahman raaaahman changed the title Implement a Notification Registry Implement the Notification Repository Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Scope] Database / Persistence Issue related to storing data. To WP database or another location. [Type] Feature Describe a feature to be added to the project
Projects
None yet
Development

No branches or pull requests

1 participant