-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use postgres for backend #44
Commits on Oct 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 591539b - Browse repository at this point
Copy the full SHA 591539bView commit details -
Create django models and migrations
This commit adds Spreadsheet, Row, TableOfContents, and Attachment models and their migrations, as well as a script for managing the django models (manage.py). Configuration is split across two separate files for django and flask, but this may change in future commits. Issue #26.
Configuration menu - View commit details
-
Copy full SHA for 807f1e8 - Browse repository at this point
Copy the full SHA 807f1e8View commit details -
Add upload commands to manage.py
Spreadsheets, attachments, and tables of contents can now be uploaded from the command line using manage.py. Issue #26.
Configuration menu - View commit details
-
Copy full SHA for 8dad0c9 - Browse repository at this point
Copy the full SHA 8dad0c9View commit details -
Switch torquedata entirely to Django
As per discussion in issue #26 and over email correspondence, the plan was to keep torquedata in Flask but use the Django ORM to interface with postgres, keeping the option of migrating entirely to Django in the future. In practice, this presented some nontrivial issues. Since the data model effectively *is* the application, torquedata would effectively become a Django project that happens to use Flask to handle views and routing. Support for non-standard Django projects online is minimal and ironically requires more specific knowledge of Django's inner workings. Torquedata's views are so dependent on the old pickling data model that they will all have to be rewritten anyways, which means sticking with Flask is an unnecessary complication. A new Django app was created with `django-admin startproject`, and the models and management commands were copied over.
Configuration menu - View commit details
-
Copy full SHA for 13bf9c3 - Browse repository at this point
Copy the full SHA 13bf9c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for aed7da1 - Browse repository at this point
Copy the full SHA aed7da1View commit details -
Adds template model and several fields to other models. Replaces TextField json hack with proper JSONField. Issue #26
Configuration menu - View commit details
-
Copy full SHA for f2785d4 - Browse repository at this point
Copy the full SHA f2785d4View commit details -
Update admin commands to reflect changes made to models. Issue #26.
Configuration menu - View commit details
-
Copy full SHA for 8f17100 - Browse repository at this point
Copy the full SHA 8f17100View commit details -
Rewrite views to use django ORM
This commit rewrites every API endpoint except /search/<sheet_name>, which requires further consideration as discussed in issue #45. Input validation reserved for future commits; views will not fail gracefully.
Configuration menu - View commit details
-
Copy full SHA for b99152f - Browse repository at this point
Copy the full SHA b99152fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7badf5d - Browse repository at this point
Copy the full SHA 7badf5dView commit details
Commits on Oct 30, 2020
-
Finish django compatibility on core api endpoints
This is related to issue #26 This is finishing up the existing work started by YaxelPerez. With this commit torque now uses postgres and django for all API endpoints except search and editing.
Configuration menu - View commit details
-
Copy full SHA for 1c18b66 - Browse repository at this point
Copy the full SHA 1c18b66View commit details -
Re-implemnt search API using django/postgres
This is related to issue #26 With this commit torque's search API endpoint now uses postgres' Full Text Search feature to perform search queries.
Configuration menu - View commit details
-
Copy full SHA for bd0390c - Browse repository at this point
Copy the full SHA bd0390cView commit details -
Reimplement edit API using postgres
This resolves issue #26 This is a re-implementation of all edit functionality but now using django and postgres
Configuration menu - View commit details
-
Copy full SHA for 7c4c02d - Browse repository at this point
Copy the full SHA 7c4c02dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17230d0 - Browse repository at this point
Copy the full SHA 17230d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cee453d - Browse repository at this point
Copy the full SHA cee453dView commit details