Skip to content

Conversation

@raaaahman
Copy link
Collaborator

@raaaahman raaaahman commented Jul 20, 2021

Before

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

See #60

Changes

  • Introduces a 'composite notification' model that can take additional fields
    • FIELD_TITLE
    • FIELD_IMAGE
    • FIELD_ACTION_LINK
  • Serializes the notifications with the optional fields into JSON
  • Unserializes notifications with optional fields from JSON

Replaces #61

TODO

  • Test serializing and unserializing notifications with several of the optional fields
  • Refactor WP_Notify_Composite_Notification::json_unserialize() to not encode and decode JSON data many times
  • (Maybe) Merge the WP_Notify_Composite_Notification with the WP_Notify_Base_Notification model

@raaaahman raaaahman added [Scope] Model Definition of the data used in the WP Notify project [Type] Feature Describe a feature to be added to the project labels Jul 20, 2021
@raaaahman raaaahman marked this pull request as draft July 20, 2021 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Scope] Model Definition of the data used in the WP Notify project [Type] Feature Describe a feature to be added to the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants