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

make our json as a database more sophisticated #26

Open
VKong6019 opened this issue Jun 11, 2022 · 4 comments
Open

make our json as a database more sophisticated #26

VKong6019 opened this issue Jun 11, 2022 · 4 comments
Assignees

Comments

@VKong6019
Copy link
Collaborator

from our last meeting, we agreed that we should keep track a couple more statistics in our s3 file to create our own bobabuddies wrapped.

Currently, i believe the json file in s3 only keep tracks of number of pairs overall.
So, we now want to add onto this and keep track of each person's

  • number of times met with their buddies
  • longest streak of meeting their buddy
  • current streak of meeting their buddy

Just so we don't forget, the bobabuddies wrapped we'll create is being sent biweekly, so we want to make sure data is "reset" accordingly. This would probably be used when tracking the number of pairs met in each cycle as well as before each semester to start a clean state.

@justineluo
Copy link
Contributor

thank u supreme leader <3

@jia614
Copy link
Contributor

jia614 commented Jun 12, 2022

ty project mommy

@justineluo
Copy link
Contributor

justineluo commented Jul 15, 2022

I have a proposed data structure. Thoughts?


/**

This json represents 
pairsMet - the total number of pairs met during this cycle (a semester)
timesMet - number of times each user met with their buddies during the cycle
longestStreaks - the longest streak of each user meeting their buddy
currentStreaks - current streak of each user meeting their buddy
*/

{
  "pairsMet": 4, 
  "timesMet": 
    {
      "aloe": 2, // in practice, these should be user ids rather than display names (needs to be unique)
      "KEKW Lead" : 1,
      "on jia": 2
    },
  "longestStreaks": {
     "aloe": 20,
     "KEKW Lead" : 10,
     "on jia": 15
  },
  "currentStreaks": {
     "aloe": 3,
     "KEKW Lead" : 1,
     "on jia": 12
  },
}


@VKong6019
Copy link
Collaborator Author

VKong6019 commented Jul 21, 2022

Yus, that looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants