Skip to content

Implement querying the database for notifications #307

@johnhooks

Description

@johnhooks

What problem does this address?

Currently the notifications are contained in a static JSON file. The data should be queried from the database.

What is your proposed solution?

Implement the database query for the REST Notification_Controller to return the users latest notifications.

Concepts specific to the MVP

  • Fetch all user notifications every request. The true system will need to limit the amount of data fetched on each query, but it isn't necessary to provide those features for the MVP.

To implement in a later iteration

REST parameters for all controllers

  • order_by - Order the query results.
  • per_page - Limit the number of items returned in the response.
  • offset- Offset the query result.
  • _fields - Request only specific fields of a resource.
  • _embed - Request related data to be embedded into the response.

Please confirm that you have searched existing issues in the repo.

Yes

Metadata

Metadata

Assignees

Labels

[Scope] ServiceThe core logic of the WP Notify project.phpPull requests that update Php code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions