Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H hivemind
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hive
  • hivemind
  • Issues
  • #152
Closed
Open
Created Mar 11, 2021 by Sergio@asgarthDeveloper

Allow a different format for votes in 'bridge' API response

When there's a really small vote (0 rshares) it's not possible for frontends to know if it's a very small vote or a vote removed. Also there are a few other problems that can probably be solved changing the API response format a little bit.

My personal preference on this would be to allow a different format in the API response using an additional parameter.

Current format:

active_votes: [{rshares: 0, voter: "meowcurator"}]

New possible format:

active_votes: [{perc: 100, voter: "meowcurator"}]

I know that the rshares is really important to know how much a specific vote contributed to the post payout, but I think it's not commonly required and can be retrieved with the get_active_votes call whenever a popup is opened or required. As soon as you open the post or right in the feeds the important things to know are:

  • Who voted on the post
  • If it is an upvote or a downvote
  • Also the network payload will be smaller (and this is the original reason to remove the perc from the response)
  • And it will solve the above issue reported by @rishi556
Edited Mar 12, 2021 by Sergio
Assignee
Assign to
Time tracking