-
Notifications
You must be signed in to change notification settings - Fork 9
#166283514 Implement sqlite db for data persistence #19
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
base: develop
Are you sure you want to change the base?
Conversation
|
Looks good. Are you able to have both Redis and SQLite functionality available for use where a user can change a value in the config file to toggle between the two dbs? |
Not really. The PR totally removes the persistence logic using Redis. |
Okay then. Please rename PR as per team conventions |
Done |
joshuaocero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing @jesseinit , please provide some clarity on the changes highlighted. Otherwise, it looks good.
| pycparser==2.19 | ||
| pyfcm==1.4.5 | ||
| virtualenv==15.2.0 | ||
| pywebpush==1.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jesseinit what is the reasoning behind removing these packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were not removed. Both packages can be found on line 56 and 47 respectively.
| pytest==4.3.0 | ||
| redis | ||
| ndg-httpsclient | ||
| pyopenssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why these packages are being removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were not removed also.
- setup models - setup migration with alembic - refactor persistence to use sqlite database [ Finishes #166283514 ]
3fadab6 to
e125a2d
Compare
What does this PR do?
Refactors data persistence to use an SQLite database
Description of Task to be completed?
How should this be manually tested?
ft-implement-sqlite-db-166283514alembic stamp head && alembic upgrade head && alembic revision --autogenerate -m "Migration message" && alembic upgrade headto create the database and run migrations.What are the relevant pivotal tracker stories?
#166283514