feat: implmentation with Redis

This commit is contained in:
Wyatt Johnson
2020-08-14 09:52:01 -06:00
parent 27d6f1c245
commit 3d9f8bd9ea
30 changed files with 439 additions and 274 deletions
+7 -17
View File
@@ -418,6 +418,12 @@ enum FEATURE_FLAG {
"read more of this conversation" in the comment stream.
"""
READ_MORE_NEW_TAB
"""
VIEWER_COUNT when true will enable the display and tracking of the viewer
count.
"""
VIEWER_COUNT
}
# The moderation mode of the site.
@@ -3452,7 +3458,7 @@ type Story {
"""
viewerCount is the number of viewers active on this Story.
"""
viewerCount: Int!
viewerCount: Int
}
"""
@@ -7970,17 +7976,6 @@ type CommentReleasedPayload {
comment: Comment!
}
"""
LiveStoryViewersUpdatePayload is returned when the viewer count on a story has
been updated.
"""
type LiveStoryViewersUpdatePayload {
"""
viewerCount is the number of viewers on the selected story.
"""
viewerCount: Int!
}
type Subscription {
"""
commentEnteredModerationQueue returns when a Comment enters a ModerationQueue.
@@ -8033,9 +8028,4 @@ type Subscription {
"""
commentFeatured(storyID: ID!): CommentFeaturedPayload!
@auth(roles: [MODERATOR, ADMIN])
"""
liveStoryViewersUpdate returns when the number of viewers on a story changes.
"""
liveStoryViewersUpdate(storyID: ID!): LiveStoryViewersUpdatePayload!
}