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

feature(mvp): Stage 2 - add initial model classes #289

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

johnhooks
Copy link
Collaborator

@johnhooks johnhooks commented Apr 20, 2023

What?

Add the initial models

  • Model\Channel
  • Model\Message
  • Model\Notification
  • Model\Subscription

Why?

These are the base of models developed in #259.

Notes

All the properties are nullable, because I intend to support the _fields rest option, which means the models might not be initialized with all of their properties, just what the api has requested. I’ll build that in later, but currently the jsonSerialize function always returns all property’s of the model, I think this is fine for now. I will build out a validation system that will actually ensure the model properties are valid on insert and update.

@johnhooks johnhooks added the [Scope] Model Definition of the data used in the WP Notify project label Apr 20, 2023
@johnhooks johnhooks changed the title feature: add initial model classes feature(mvp): stage 2 - add initial model classes Apr 20, 2023
@johnhooks johnhooks changed the title feature(mvp): stage 2 - add initial model classes feature(mvp): Stage 2 - add initial model classes Apr 20, 2023
@johnhooks johnhooks force-pushed the feature/add-models branch 2 times, most recently from 50a7c75 to 7d4a4b7 Compare April 20, 2023 22:35
@johnhooks johnhooks self-assigned this Apr 21, 2023
@johnhooks johnhooks force-pushed the feature/add-models branch 2 times, most recently from a343153 to 5141476 Compare April 21, 2023 16:28
Copy link
Collaborator

@erikyo erikyo left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@johnhooks johnhooks merged commit c1265d1 into WordPress:develop Apr 21, 2023
@johnhooks johnhooks deleted the feature/add-models branch April 21, 2023 17:48
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants