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

Shift the DB interactions to utilize RideBoardAPI #9

Open
ag-ayush opened this issue Aug 4, 2018 · 0 comments
Open

Shift the DB interactions to utilize RideBoardAPI #9

ag-ayush opened this issue Aug 4, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ag-ayush
Copy link
Member

ag-ayush commented Aug 4, 2018

The application currently makes calls to the database when anything changes. The DB interaction should be removed altogether from this application and it should utilize the API. This application shouldn't require any information on where the database is nor the credentials to access it. The API can be accessed through the website or through GitHub.

Summary of changes required:
Need to change the backend in init.py. Functions should call the api and pass the JSON object as argument instead of the current implementation such as events = Ride.query.order_by(Ride.start_time.asc()).all() and events=events.
Then jinja should be fixed on HTML pages to parse JSON objects rather than the current object from the database.

@ag-ayush ag-ayush added enhancement New feature or request good first issue Good for newcomers labels Aug 4, 2018
@ag-ayush ag-ayush closed this as completed Aug 4, 2018
@ag-ayush ag-ayush reopened this Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant