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

Extend notification model with optional properties. #61

Closed
wants to merge 8 commits into from

Conversation

raaaahman
Copy link
Collaborator

Before

The WP_Notify_Base_Notification model was not up-to-date with the optional fields defined in PR #21

See #60

Changes

  • Introduces the title, image and action_link properties as decorators to the WP_Notify_Base_Notification class.
  • Uses JSON as test data, which should be reused when testing for displaying these notifications on the front-end.
  • Adds the image field in the database scheme.

Current limitations

The unserialization of the decorated notifications is not ready yet. It is debatable if this would be used at all (receiving notification data from the front-end), but on another hand, it would be better to keep this possibility open at such an early stage of development...

@raaaahman raaaahman added enhancement New feature or request [Scope] Model Definition of the data used in the WP Notify project labels Jul 6, 2021
@raaaahman
Copy link
Collaborator Author

Replaced by #63

@raaaahman raaaahman closed this Jul 20, 2021
@raaaahman raaaahman deleted the feature/extended-notifications branch July 20, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request [Scope] Model Definition of the data used in the WP Notify project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant