Coder Social home page Coder Social logo

caproomster's People

Contributors

adriannadiaz avatar arekmano avatar lancelafontaine avatar taimoorrana avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

eeveecc

caproomster's Issues

Create a utility method to create and close database connections

In every TDG method, the db connections are being manually opened and closed with the hardcoded values for our db. Not only is this bad practice, but it is also really inconvenient for our continuous integration builds, since we should be skipping DB interactions for this.

One potential solution would be to create a db utility method that takes a callback function. It could:

  1. open the connection
  2. execute the callback
  3. close the connection

Object mappers are interacting with Other object’s TDG.

Example: ReservationMapper.find method interacts with RoomTDG, UserTDG, TimeslotTDG.
Solution: Refactor so the mappers interact with other object’s mappers instead. Ex: ReservationMapper interacts with RoomMapper, which uses RoomTDG, etc.

There is a (limited) list of equipment which can be made available to any room and which you may request for the room you wish to reserve: computers, projectors, etc. This means that even if the room is available over your desired time slot, you cannot get the room if the requested equipment is not available. You will be placed on a waiting list pending availability of the equipment. Meanwhile, if the room is reserved, then you remain on the waiting list.

  1. New mappers and table in database.
  2. Core business logic and interaction with waiting lists
  3. UI / Front-end work.

checkAvailabilities.py is hard-coded

Find a better way to query a table of room availabilities, instead of recurring to hard-coded logic.

checkModifyAvail(reservations)
checkAvailabilities(date)
validateAvailability(room, date, starttime, endtime)

Username is not validating in the login screen.

As-is, the system is not comparing the entered username with an existing user name in usertable. It is instead relying on the user typing in the correct userid and password of a certain entry in that table.

views.py index() performs said validation, also get rid of the redundant nested identical return render_template('login.html',error=error)

Remove 2-minute lock on room

  • Arbitrary 2 minute lock on the room will not be required in refactored implementation.
  • Their implementation is buggy. It often shows that the room is occupied, when it should not be. You can tell when it refuses to accept an reservation, and this is printed on the console:
127.0.0.1 - - [19/Feb/2017 11:51:23] "POST /february/19 HTTP/1.1" 200 -
2016-02-19
[]
Room Occupied

Decouple front-end / back-end code

Just as was done for SOEN 343, we should remove all templating that the previous team used, and reimplement the front end. This allows us to use any technologies we like on the front-end, and also lets our server run purely as a REST API that can be consumed by any client.

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.