Commit graph

53 commits

Author SHA1 Message Date
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
s3lph
fe83b2017c Fixed some minor type annotation issues. 2018-07-15 00:55:39 +02:00
s3lph
c416cac03a Merge branch 'master' into staging-unstable 2018-07-14 23:48:31 +02:00
s3lph
69601150a7 Added additional unit tests. 2018-07-14 23:44:27 +02:00
s3lph
5c9d85fa70 Removed all APSW references. 2018-07-14 23:35:32 +02:00
s3lph
fab4303d5b Merge branch 'master' into DO-NOT-MERGE-horrible-webapp 2018-07-13 22:10:11 +02:00
s3lph
48ad9bc7df Fixed #3 Password verification apparently vulnerable to timing attacks. 2018-07-13 20:04:42 +02:00
s3lph
f699058cf0 first, horribly broken, undocumented implementation of the matemat webapp using jinja2 templates 2018-07-07 15:11:27 +02:00
s3lph
2f2f6b73e9 Use crypt with SHA512 instead of bcrypt. Going to change to BLOWFISH when adopting Python 3.7. 2018-06-15 22:30:35 +02:00
s3lph
1d995f2462 Added some more documentation, especially package docs. 2018-06-13 00:52:47 +02:00
s3lph
700af6883f Initial commit for webserver code. Still needs a lot of documentation, and even more, test coverage. 2018-06-12 21:45:50 +02:00
s3lph
7a8c898ebc Added additional documentation to MatematDatabase. 2018-06-06 14:13:42 +02:00
s3lph
8eda31cbbe Renamed DatabaseFacade to MatematDatabase and added additional documentation. 2018-06-06 13:54:36 +02:00
s3lph
4d07d02c10 Merge branch 'master' into db-doc 2018-06-06 13:37:17 +02:00
s3lph
33888fe597 Added lots of missing type annotations. 2018-06-06 12:59:49 +02:00
s3lph
0eb1161d7a Added lots of documentation to the Database Facade. 2018-06-05 22:18:10 +02:00
s3lph
01b0b95652 Added lots of unit tests for the database facade, and already fixed some bugs. 2018-06-05 19:14:35 +02:00
s3lph
c238e8e9c8 test_facade: Added a login test case 2018-05-30 02:09:32 +02:00
s3lph
411372cc21 Split database class into Facade (matemat database API) and Wrapper (internals). 2018-05-30 01:57:26 +02:00