-
Notifications
You must be signed in to change notification settings - Fork 1
Store the user stats like followers, subscribers in the socialStatsHistory after they sign up #56
Comments
Yes they would be similar, but I still think the For example when a new entry goes into So the dashboard stats is calculated on write not read. What do you think? |
Makes sense. Good with whichever is easier. So, we would be still keeping the |
Could you please elaborate more on this @eddiejaoude ? Should the stats for the cards in the dashboard should be fetched from |
That's correct. Atleast from my understanding |
From my understanding also 😂 👍 |
@eddiejaoude @SrijithRad Here is the normalised JSON for Please let me know if I have missed any fields. |
I think we only need the common data between all the platforms socialStatsHistory{
userId: "",
provider: "",
username: "",
followers: 0,
following: 0,
createdAt: ""
} Note: What about the actual change in users who follow/unfollow? Will that be added in later? @VenkatVenkatesh @SrijithRad what do you think? |
yes @eddiejaoude . Will modify and add the rest of the properties when we work on #26 |
…ion issue of user social connection
…store id and empty field values
feat(socialStats): #56 Functionality to store user social stats in firestore
…ion issue of user social connection
…store id and empty field values
This issue resulted after the discussion on how the stat history should work. #48
Issue
user
anduserSocial
. The former stores thetoken
and other details whereas the latter stores thefollowers
,subscribers
counts.socialStatsHistory
would be created and a cloud function would fetch data for this collection on a timely basis e.g. 24 hoursuserSocial
's data andsocialStatsHistory
data is almost the same. There is data duplication and doing complex queries in the future would require to join the two collectionsSolution (Proposed)
userSocial
profilePic
touser
user
data and thesocialStatsHistory
data.socialStatsHistory
data would thus be populatedsocialStatsHistory
on a schedule@eddiejaoude @VenkatVenkatesh
The text was updated successfully, but these errors were encountered: