You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple ranking system is essential for the initial version of r/boards. This system will apply to posts (threads and comments) within boards to allow users to vote on content to determine its visibility and importance. The ranking mechanism should integrate with the existing Permissions interface and focus on core functionality for the MVP.
Acceptance Criteria:
The boards realm homepage includes a README controlled by the AdminDAO (without automatic listing of new or top) boards.
Like other implementations, administration can use an interim solution (e.g., manual). The listing is also manual to start.
Includes a Vote struct to represent user votes:
Example
typeVotestruct {
UserIDAddressDirectionint// 1 for upvote, -1 for downvoteTimestamp time.TimeTokensDonateduint64// Only for public boards
}
A Votes field in the Post struct stores vote information:
Time decay factor for post scores is not included in this initial implementation to reduce complexity
Advanced features like complex scoring mechanisms, custom ranking (such as via moderation groups or other methods) or a ranking algorithm are postponed for future versions
Search functionality will be implemented off-chain for the MVP
The text was updated successfully, but these errors were encountered:
Hello @salmad3 . You mention Hacker News as a reference. There is usually a consensus view on what is accurate technical discussion. But for a general message board, I don't think there should be a "one size fits all" single ranking system. It would be better to have separate moderation groups with their own perspective, and a user can choose which moderation group to subscribe to.
Context:
A simple ranking system is essential for the initial version of
r/boards
. This system will apply to posts (threads and comments) within boards to allow users to vote on content to determine its visibility and importance. The ranking mechanism should integrate with the existingPermissions
interface and focus on core functionality for the MVP.Acceptance Criteria:
The boards realm homepage includes a README controlled by the AdminDAO (without automatic listing of new or top) boards.
Includes a
Vote
struct to represent user votes:Example
A
Votes
field in thePost
struct stores vote information:Example
Leverages a simple
CalculateScore
function:Provides a
VoteOn
method forPost
that:bp.HasPermission()
Example
Implements different voting mechanisms for private and public boards:
For public boards, a mechanism is available to lock donated tokens in the board's treasury
Includes a
GetTopPosts
function that returns a sorted list of posts based on calculated scoresUnit tests to verify the basic ranking system's behavior
Implements a simple API endpoint to retrieve top posts for a given board
Notes:
The text was updated successfully, but these errors were encountered: