-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Platform] [User Notifications][TUS]Subscriptions are created when user performs certain actions #176
Comments
@tiagopazhs Please start with creating a Subscription collection. |
All rigth! So, how it works? If I create the collection in my strapi admin. Then push to my branch. If you pull this, you will see the collection in your strapi admin? Is it imediatly or do you need to run a migration? |
@tiagopazhs |
Why we have a created time instead of subscribed time? |
I didn't understand very weel about this two ones:
|
I just created the PR here with the other fields: #181 |
So I have another question: |
Could be subscribed time, I just thought it would be more consistent to have similar name in all collections |
Also difference between createdDateTime and subscribedDateTime is that user can resubscribe, but that will just set active to true and unsubscribeDateTime to null, but createdDateTime will stay the same. I.e. createdDateTime is a time when record was created, just once, while user might resubscribe, we really not care much (at least for now) when they resubscribe. |
entityType will be enum type with the name of the type of the data user subscribe to. For now it will have only one option - IdeaCard. |
In this case, should I create a field with normal integer type, right? Looks good? |
Is there a convetion here in the project for that? Something like: Last question wich one looks better, |
Hey @becevka is it still open because we have to test the endpoints and pass all tests before to finalize the entire epic ? |
Summary
In order to support User Notifications, we need to subscribe users by default to the Idea of their interest.
Describe the solution you'd like
Subscription Collection should consist of the following fields:
When user creates idea, subscription for the new idea is automatically created.
When user posts comment to the idea, subscription for that idea is automatically created.
For now, we can disable API endpoints to Subscription.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: