Commit graph

71 commits

Author SHA1 Message Date
s3lph
9515c521b0 Merge branch 'master' into 27-deployment 2019-01-01 21:03:21 +01:00
s3lph
07a4d3131e Fixed a small bug in the SQL queries and the unit tests 2018-12-29 20:55:53 +01:00
s3lph
9a41d33ef7 Added database support for empty receipts (i.e. when a user didn't issue any transactions during a receipt period) 2018-12-29 20:36:59 +01:00
s3lph
ea70484d00 Added a test case for empty receipts. 2018-12-23 22:50:26 +01:00
s3lph
3d25540a1f Fixed a crash in receipt generation. 2018-12-23 22:43:19 +01:00
s3lph
b8cbb265b8 Implemented __eq__ and __hash__ for the database primitives 2018-11-03 19:20:30 +01:00
s3lph
ea57485cfb Back to Python 3.6 for the sake of Debian packaging (initial test!) 2018-11-03 18:28:28 +01:00
s3lph
d4e2d6591e Implemented sales statistics page. 2018-10-01 21:08:37 +02:00
s3lph
b3a1df9e18 Hotfix: Database migration caused data loss. 2018-09-13 18:39:10 +02:00
s3lph
6fcea8e2b3 Added fallback handling for transactions with unknown dates. 2018-09-09 04:12:11 +02:00
s3lph
270910f6be Removed debug output. 2018-09-09 04:01:33 +02:00
s3lph
a8e0687095 Fix: Fetch receipt_pref in list_users. 2018-09-09 03:53:52 +02:00
s3lph
0a27e6db56 Hopefully fixed now! 2018-09-09 03:44:49 +02:00
s3lph
71d7bb85ce Added verification of receipt_pref to login test. 2018-09-09 03:40:06 +02:00
s3lph
53233d74c3 Fixed: Fetch receipt preference on login. 2018-09-09 03:38:23 +02:00
s3lph
f11b0e0b93 Even more debug output. 2018-09-09 03:33:09 +02:00
s3lph
660969744c Fixed missing argument in tests. 2018-09-09 03:26:00 +02:00
s3lph
a466e5109f Used another logger. 2018-09-09 03:23:19 +02:00
s3lph
37498f9ab7 More debug output. 2018-09-09 03:17:20 +02:00
s3lph
79e6f83c72 (More or less) proper definition of "months", added more receipt preferences. 2018-09-08 20:44:40 +02:00
s3lph
22d4bd2cd5 Fixed trailing whitespace. 2018-09-07 19:06:47 +02:00
s3lph
2c6996a9b4 Implemented receipt generation, including unit tests. 2018-09-07 19:04:15 +02:00
s3lph
a3fa86fb25 Implemented "Balance change reason" field. 2018-09-01 23:48:10 +02:00
s3lph
3bdc9417fd Database schema: Added user.created column. 2018-09-01 23:23:06 +02:00
s3lph
ff0c13d367 Yet another schema change: consumptions now contains the product name rather than the product id. 2018-09-01 02:54:55 +02:00
s3lph
fec9c3d7ac Fixed a pycodestyle warning 2018-08-31 22:31:36 +02:00
s3lph
8c4e83bcf6 Implemented schema migration unit test. 2018-08-31 22:29:47 +02:00
s3lph
5d710f0c18 - Another change to the database schema
- Enabled foreign key constraints (!!!)
- Fixed a facade bug exposed by foreign key constraints
2018-08-31 21:52:00 +02:00
s3lph
56ce2a73cb Fixed db wrapper unit tests, fixed a db facade bug. 2018-08-31 21:01:02 +02:00
s3lph
c26e0ffc21 Integration of ReceiptPreference into the UI. 2018-08-31 20:57:08 +02:00
s3lph
0adba41c8d Database schema migration to version 3. 2018-08-31 19:28:28 +02:00
s3lph
fd2b0a4e55 Better test coverage in database wrapper. 2018-08-28 22:35:52 +02:00
s3lph
4c2c454f12 Full branch coverage in database facade. Also removed a redundant consistency check. 2018-08-21 02:34:05 +02:00
s3lph
f6901f7f9e User bootstrapping documentation 2018-08-15 16:18:52 +02:00
s3lph
0b34f5ec7f Added unit tests for admin user test and touchkey-only userlist. 2018-08-14 23:58:54 +02:00
s3lph
707883b1c4 Removed trailing whitespace. 2018-08-14 22:57:52 +02:00
s3lph
7f58da298b Basic user bootstrapping, still needs documentation & testing. 2018-08-14 22:53:39 +02:00
s3lph
207f4f1531 Merge branch 'staging' into python-3.7 2018-08-02 17:34:39 +02:00
s3lph
be09ea1ee7 Wrote code documentation for the pagelets of the current implementation, and for some of the jinja2 templates 2018-07-23 00:19:41 +02:00
s3lph
c20029fb36 Moved primitives package to db. 2018-07-22 15:30:59 +02:00
s3lph
ca3c3e755c One more trailing whitespace. 2018-07-21 21:51:02 +02:00
s3lph
1c733c6203 Fixed another codestyle error. 2018-07-21 21:49:02 +02:00
s3lph
9afd86d5ab Fixed code style in db schema definitions. 2018-07-21 21:46:46 +02:00
s3lph
ce0a01cb7c Fixed change_user and change_product unit tests. 2018-07-21 21:45:05 +02:00
s3lph
bead299ccd Migration to a new database schema (version 2), where each transaction (purchase, deposit, or admin modification) is recorded individually. 2018-07-21 21:39:42 +02:00
s3lph
c4018156f5 Changed the change_user and change_product API to get rid of the update -> write -> undo on failure pattern. 2018-07-19 21:51:35 +02:00
s3lph
fcc64d1662 Implemented unit tests for get_user and get_product. 2018-07-19 21:33:19 +02:00
s3lph
105a10e91b Merged extended database API into a branch derived from master. WIP; needs unit tests. 2018-07-17 22:03:08 +02:00
s3lph
bb3d9e62e6 Ported code to Python 3.7. TODO: Port CI pipeline and deployment images. 2018-07-16 19:47:54 +02:00
s3lph
3e289e4df8 Merge branch 'master' into staging-unstable 2018-07-15 00:57:33 +02:00