Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Backend: Remove Song from Queue #8

Open
rldaulton opened this issue Apr 17, 2018 · 1 comment
Open

Backend: Remove Song from Queue #8

rldaulton opened this issue Apr 17, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed server this issue has to do with the backend

Comments

@rldaulton
Copy link
Owner

rldaulton commented Apr 17, 2018

Create a backend function that monitors and deletes songs that drop below a determined vote threshold.

General Architecture Idea:
onWrite() to voteCount in the queue, trigger a function that checks if

  • the voteCount is < -10 (?)
  • AND if voteCount < ( usersCheckedIn.count * 0.25) ?

Perhaps delete a song if it falls past a negative vote balance based on a ratio of checked in users?

@rldaulton rldaulton added enhancement New feature or request server this issue has to do with the backend labels Apr 17, 2018
@rldaulton
Copy link
Owner Author

rldaulton commented Apr 17, 2018

For the sake of time, if the vote count is more than 10 negative votes, the song will be removed from the queue.

This is in the removeSongFromQueue function.

The issue is that in order to perform deletion based on a ratio of checked in users, we need to know how many users are checked in to the venue. We can't currently count this without querying and grabbing all the nodes in the check_ins tree.

@rldaulton rldaulton added the help wanted Extra attention is needed label Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed server this issue has to do with the backend
Projects
None yet
Development

No branches or pull requests

1 participant