Git Product home page Git Product logo

ad-lib's People

Contributors

dhruvi618 avatar jzwang8 avatar kmh287 avatar tcgvanguardtroll avatar tcwanggoogle avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

ad-lib's Issues

Require all fields to be completed for form submission

Currently, the user is able to submit a form while leaving certain fields empty. Since all fields are needed to correctly identify a match, we should try to require all fields to be completed for form submission to be successful

Use public factory methods to create participants

Comment on PR by Kevin:
"A potential cleanup for a future PR could be to make this constructor private and instead use public factory methods to create participants. Some of the code that calls this now has to specify fields that don't make sense for their particular case. For example, creating a new unmatched participant requires the caller to explicitly include the MatchStatus and a zeroed out match ID. Not only does this lead to more LOC, but it also leaks a small detail that 0 is this class' default value for matchId.

A factory method might look like

  return new Participant(username, startTimeAvailable, endTimeAvailable, /* matchId= */ 0, MatchStatus.UNMATCHED, timestamp)
}```
which requires two fewer arguments because an unmatched participant will always have the unmatched enum value and zeroed match ID."

When to remove Users from datastore?

Once a user opts to save preferences, a User entity that can be updated is added to datastore. However, we never give the user an option to delete their preferences from the datastore even though they have the option to not save their current preferences.

Calendar API requires DateTime rather than DateTimeZone

Our current implementation uses the java DateTimeZone however the calendar API requires the DateTime class , so in order to connect the matching algorithm to the notification and event calendar we would need to switch the two

Add role/PA/interests fields to User

Right now, a User only includes a user's username if they choose to save their preferences. The User object should include fields for a user's role, PA, and interests.

Remove participants from unmatched participants once endTimeAvailable passes

Figure out when to null out participant's availability once their endTimeAvailable - (duration + PADDING) time passes.

Current ideas:

  • Every 1 min, send out a request for each participant to see if the participant should be removed as a participant who's currently searching for a match (1 min is fine because of the 15 min padding)
  • Continuously have the entire participant datastore searched

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.