-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Rationale
Once an article is viewed, this is considered as a new view to be displayed in the news info (for news list, in the news activity box).
❓Then, What is the problem?
However, this is not possible to have the same info for other activities (posts, kudos, poll).
While this info is suggested in other social networks for readers to engage more users to read infos, users have reported this feedback as a missing feature for our feed.
🎯 What is the goal?
For posts (incl. kudos, polls), have the information of number of times users have seen this post.
1. Functional Requirements
Top User Stories
-
Each time a user view an activity (incl. kudos, polls), then this is considered as one view
- the author is not considered in this number of views
- If a user sees it multiple times, it still counts for one view
- If no one has seen yet the post (excl. the author), then no info is shown about the number of views
-
This number of views must be related to the existing analytics infos:
- Operation - Mark as read
- Technical: eventtype - Read
- Technical: EntityType - Activity
- Technical: EntityID - {value}
The operation "Mark all as read" won't be here consider in the views computing as it is not really viewed.
Precision: News activity will be excluded from this information. Indeed, there is already an information about it in the news activity. It would be confusing indeed to bring two different infos.
Impacts
Gamification
N/A
Notifications
N/A
Analytics
N/A
Unified Search
N/A
2. Technical Requirements
Expected Volume & Performance
The activity feed performance must remain unchanged, with no additional visible latency. The display of activities must not be impacted by the addition of the views count information.
Security
The same security model applied to activities is also applied to the activity views count information.
Extensibility
The feature is implemented as an extension exposed through the load group mechanism, allowing each addon to separately control whether the views count is displayed for its activity type.
Configurability
N/A
Upgradability
N/A
3. Software Architecture
Access
This feature adds a new UI element to the activity header, displayed alongside the activity creation date.
Services & processing
- The activity processor verifies whether the viewer Identity IDs are stored in the metadata.
- If they are present, the cached data is used to compute the number of identities, excluding the activity’s author from the count.
- If they are absent, the processor sends a request to the analytics module in order to compute the viewer Identity IDs, retrieves the results, and updates the activity metadata accordingly.
- When an activity is marked as read, the viewer Identity IDs metadata is removed asynchronously from the corresponding activity.
Data and persistence
No new tables are needed.
Metadata
Metadata
Assignees
Type
Projects
Status