Commit Graph

336 Commits

Author SHA1 Message Date
Aaron Lindsay b531174a6a package.json: Update dependencies 2017-12-18 20:08:07 -05:00
Aaron Lindsay a10f3105d9 db/transactions: Properly capitalize 'Date' column name 2017-12-15 09:13:04 -05:00
Aaron Lindsay d35893504b
Merge pull request #36 from aclindsa/fix_amounts
Store currency/security values/prices using big.Rat natively
2017-12-12 21:16:19 -05:00
Aaron Lindsay 0372f0488f Move balance calculations into DBs 2017-12-12 20:55:49 -05:00
Aaron Lindsay a357d38eee Store currency/security values/prices using big.Rat natively
This adds 'shadow' types used only by the store/db internal package whch
handle converting these types to their DB-equivalent values. This change
should allow reports to be generated significantly faster since it
allows a large portion of the computation to be shifted to the database
engines.
2017-12-12 19:50:38 -05:00
Aaron Lindsay 483adb5c56 Don't leak non-interface type from database module
This removes the last place I used *db.DbStore instead of store.Store
outside the 'db' package.
2017-12-10 21:02:17 -05:00
Aaron Lindsay d5bea1102d Split Lua reports into own package 2017-12-10 20:53:57 -05:00
Aaron Lindsay ac8afec6c1 Add tests for reading config files 2017-12-09 21:19:54 -05:00
Aaron Lindsay ac0ff45f7f dep ensure -update 2017-12-09 20:10:17 -05:00
Aaron Lindsay e52719c3f7 Split integration tests into their own package 2017-12-09 20:01:17 -05:00
Aaron Lindsay b907682fa3 .travis.yml: Calculate Go test coverage across all internal/ packages 2017-12-09 20:01:17 -05:00
Aaron Lindsay 9cdf4f3c29
Merge pull request #35 from aclindsa/store_split
Split DB activity into 'store'
2017-12-09 19:36:33 -05:00
Aaron Lindsay c4d2fe27e6 Take unexported database methods 'private' 2017-12-09 06:06:20 -05:00
Aaron Lindsay e89198fe2e .travis.yml: Don't wait on OSX builds 2017-12-09 05:59:30 -05:00
Aaron Lindsay 32aef11da5 Finish 'store' separation 2017-12-09 05:56:45 -05:00
Aaron Lindsay af97f92df5 db: Paper over MySQL returning count=0 for unchanged updates 2017-12-09 05:47:25 -05:00
Aaron Lindsay da7e025509 Move splits/transactions to store 2017-12-08 21:27:03 -05:00
Aaron Lindsay 61676598dd Move prices to store 2017-12-07 21:05:55 -05:00
Aaron Lindsay 3326c3b292 Move accounts to store 2017-12-07 20:47:55 -05:00
Aaron Lindsay bec5152e53 Move users and securities to store 2017-12-07 20:08:43 -05:00
Aaron Lindsay c452984f23 Lay groundwork and move sessions to 'store' 2017-12-07 05:25:35 -05:00
Aaron Lindsay 6bdde8e83b README: Remove $ for easier copy-pasta 2017-12-06 05:27:13 -05:00
Aaron Lindsay 9837afd547
Merge pull request #34 from aclindsa/always_https
Only serve over HTTPS, optionally auto-generating certificates
2017-12-06 05:24:27 -05:00
Aaron Lindsay 147a00e429 Only serve over HTTPS, optionally auto-generating certificates
Because MoneyGo requires sending passwords and session cookies, we
should never serve over HTTP. While we're at it, make it more convenient
for folks to test this out by adding a config option to auto-generate
self-signed certificates.
2017-12-05 21:02:49 -05:00
Aaron Lindsay 1dc57dc761
Merge pull request #32 from aclindsa/models_split
Split models from handlers into own internal package
2017-12-05 20:56:47 -05:00
Aaron Lindsay 3e3038295d Split reports into models 2017-12-05 05:59:44 -05:00
Aaron Lindsay 5f296e8669 Split prices into models 2017-12-05 05:59:44 -05:00
Aaron Lindsay 128ea57c4d Split accounts and transactions into models 2017-12-05 05:59:44 -05:00
Aaron Lindsay f72c86ef58 Split securities into models 2017-12-05 05:59:44 -05:00
Aaron Lindsay 3f4d6d15a1 Split Sessions into models 2017-12-05 05:59:44 -05:00
Aaron Lindsay e70be1647c Begin splitting models from handlers with User 2017-12-05 05:59:44 -05:00
Aaron Lindsay 382d6ad434 README: Fix instructions for touching cusip_list.csv 2017-12-05 05:43:48 -05:00
Aaron Lindsay e4defb7348 README: Update OFX status 2017-12-02 05:53:14 -05:00
Aaron Lindsay c85675a8e9
Merge pull request #31 from aclindsa/test_ofx
Add OFX tests
2017-12-02 05:47:55 -05:00
Aaron Lindsay ffc8602336 testing: Add another brokerage account OFX import test 2017-12-01 21:21:55 -05:00
Aaron Lindsay 05fdaaeb42 testing: Add checks for OFX investment balances
Also fix a "bug" uncovered, relating to at least one FI's providing
unexpected signs for some OFX fields.
2017-11-29 19:59:02 -05:00
Aaron Lindsay 30d4515780 testing: Add initial OFX investment import tests
Also fix up a "bug" caused by financial institutions not deciding on
which sign to use for an OFX field...
2017-11-28 21:25:50 -05:00
Aaron Lindsay 238809cd46 testing: Add initial OFX credit card import test 2017-11-28 20:14:38 -05:00
Aaron Lindsay d656f15e84 testing: Ensure account balance is correct after OFX import 2017-11-26 21:01:26 -05:00
Aaron Lindsay aa8924243e Add initial OFX import test
So far, this only checks to ensure that the import doesn't return an
error code.
2017-11-26 14:42:05 -05:00
Aaron Lindsay 7a23739a0b gnucash: Ensure error is properly checked 2017-11-25 21:05:57 -05:00
Aaron Lindsay d9ecaa530b gofmt 2017-11-25 21:01:48 -05:00
Aaron Lindsay 9cd2724416 Remove unused WriteError function 2017-11-23 17:57:36 -05:00
Aaron Lindsay 096005db3d
Merge pull request #30 from aclindsa/gnucash_testing
Add initial gnucash importing test
2017-11-23 13:46:04 -05:00
Aaron Lindsay 0aa8ac63ab testing: Test importing Gnucash security prices 2017-11-22 21:37:45 -05:00
Aaron Lindsay 947db54433 testing: Check more post-gnucash import account balances 2017-11-22 20:59:11 -05:00
Aaron Lindsay d65019f55c gnucash tests: Check for the presence of more accounts and their trees 2017-11-21 05:58:43 -05:00
Aaron Lindsay b06b409cd5 Add initial gnucash importing test
This is woefully incomplete, but tests to make sure at least one balance
on one account is correct...
2017-11-21 05:31:07 -05:00
Aaron Lindsay 4d0b33efee securities: Don't use 'precision', a MySQL reserved word, in DB 2017-11-21 05:31:07 -05:00
Aaron Lindsay be0d9051d4
Merge pull request #29 from aclindsa/sessions
Sessions
2017-11-19 20:53:39 -05:00