Skip to content

Conversation

@jesseinit
Copy link

What does this PR do?

Refactors data persistence to use an SQLite database

Description of Task to be completed?

  • setup models
  • setup migration with alembic
  • refactor persistence to use SQLite database

How should this be manually tested?

  • git pull the branch ft-implement-sqlite-db-166283514
  • Run alembic stamp head && alembic upgrade head && alembic revision --autogenerate -m "Migration message" && alembic upgrade head to create the database and run migrations.

What are the relevant pivotal tracker stories?

#166283514

@jesseinit jesseinit requested a review from joshuaocero May 29, 2019 13:43
@joshuaocero
Copy link
Contributor

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?

@jesseinit
Copy link
Author

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.

@joshuaocero
Copy link
Contributor

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

@jesseinit jesseinit changed the title feat(database): implement sqlite db for data persistence #166283514 Implement sqlite db for data persistence Jun 6, 2019
@jesseinit
Copy link
Author

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

Copy link
Contributor

@joshuaocero joshuaocero left a 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
Copy link
Contributor

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?

Copy link
Author

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
Copy link
Contributor

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?

Copy link
Author

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 ]
@jesseinit jesseinit force-pushed the ft-implement-sqlite-db-166283514 branch from 3fadab6 to e125a2d Compare June 7, 2019 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants