-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
84 lines (64 loc) · 2.39 KB
/
notes
File metadata and controls
84 lines (64 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Running docker-compose:
#docker-compose build
docker-compose up -d
docker-compose run -e RAILS_ENV=production fin bundle exec rake db:migrate db:schema:load
docker-compose run -e RAILS_ENV=production fin bundle exec rake db:seed
Outstanding questions: how to migrate data across releases?
How is environment specific stuff managed?
- http://blog.carbonfive.com/2015/03/17/docker-rails-docker-compose-together-in-your-development-workflow/
Sort out CSV import/export again
Test data consistency across docker upgrades
Clear up db: remove recalc columns and delayed job tables
Add ActionController::Live to auto update data in browser
move UI to purely JSON and angular?
Forget HTML, let's sort out JSON then get tests set up for each model and route
Trimming logic, defining boundaries:
- Make sure every controller has a proper JSON response
Setting up testing:
- Needs thinking about: what types of testing? Unit vs integration vs functional
vs non-functional
- Test of every route
TESTING BUDGET BALANCES
for each non-ignored reservation, need to determine which to sum as budget
balance: amount vs balance
amount -ve, min(amount, balance)
amount +ve, max(amount, balance)
amount = 0, balance
to test:
- amount -ve, amount < balance : amount t6
- amount -ve, balance < amount : balance
- amount +ve, amount < balance : balance
- amount -ve, balance < amount : amount
- amount 0 : balance
edge cases:
- reservation has no transactions
What about categories with no reservations?
What about reservations of the unassigned category?
Actual requirement:
- For a budget, show me:
- the balance of each reservation
- the balance of any categories I've not assigned a reservation too (as "anything else")
- the total budget balance, which is a sum of:
- the modulus maximum of amount & balance of each non-ignored reservation
Remote account mapping
to update:
account.sync
this.remote_account.sync
account
has_one :remote_account
default to nil? do you have to create a dummy nil remote account or just not populate it?
remote_account
belongs to account
description
inverse values (if it's a credit card you probably want this)
user_credential
remote_account_identifier
natwest
user_credential: customer number
remote_account_identifier: account number (or credit card number)
password (prompt)
pin (prompt)
amex
user_credential: username (email?)
remote_account_identifier: credit card number
password (prompt)