Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show actual (num) counters inside hamburger menu (number of Volunteer's missions; number of requests; etc) #614

Open
karenkun opened this issue May 21, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@karenkun
Copy link

These numbers require more dev effort to output in to the menu so they've been moved into this ticket. (Original hamburger menu ticket: #489)

Numbers to show in ( ):

  1. number of requests submitted
  2. number of requests waiting for confirmation
  3. number of missions available
  4. number of missions awaiting confirmation (missions that are in progress)
  5. number of missions done (missions that are waiting for recipient to confirm)

Screen Shot 2020-05-21 at 3.25.36 PM.png

@karenkun karenkun added the enhancement New feature or request label May 21, 2020
@mat10tng
Copy link
Collaborator

The options that exist to do deal with this is

  1. Keep a counter in our firebase system that handles just this problem
  2. Just use SQL database instead of firebase
  3. missions.where(isDone === true).fetchAll().length -> pseudocode, the bad option

The MVP option would be doing 3, but we are avoiding hitting the database right now since it is quite costly. Ehm, option 1 is harder, and require hooks from firebase, and option 2 is not really a valid option as of this moment.

@utunga
Copy link
Contributor

utunga commented May 22, 2020

Pretty hilarious to list option 2

@amylo amylo self-assigned this May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants