1
0

40 Commits

Author SHA1 Message Date
cryptogopher
c3b783e942 Displaying errors for uncomputable formulas in nutrients view 2020-03-21 00:38:39 +01:00
cryptogopher
320fe93388 Fixed references to formula as model 2020-03-10 22:17:20 +01:00
cryptogopher
2d778c831b Introduced plugin layout instead of using Redmine ViewListener render_on 2020-02-22 22:39:12 +01:00
cryptogopher
4e537f3981 Moved Formula to separate model 2020-02-16 18:34:07 +01:00
cryptogopher
aa26e66312 Fixed calculation for indexed formulas
Delegated Quantity formula calls
2020-02-04 00:13:49 +01:00
cryptogopher
df8703ba3c Updated Formula::calculate to use FormulaBuilder 2020-01-27 00:59:33 +01:00
cryptogopher
98207fc980 Added Formula test vectors
Improved FormulaBuilder based on vectors
2020-01-25 21:51:03 +01:00
cryptogopher
ba4c98e213 Added Formula unit test 2020-01-24 01:05:59 +01:00
cryptogopher
8d0f6eec81 Moved FormulaBuilder to Formula module 2020-01-24 00:17:00 +01:00
cryptogopher
9803b31f78 Integarted FormulaBuilder into Formula 2020-01-22 22:54:54 +01:00
cryptogopher
b437bee18b Optimized formula computation to run 'eval' once 2020-01-11 23:49:30 +01:00
cryptogopher
20deb944c3 Updated Ingredients to use ItemsWithQuantities 2019-12-29 15:12:05 +01:00
cryptogopher
530dba0612 ColumnView fixes 2019-12-21 12:18:31 +01:00
cryptogopher
0c0ca1d286 Replaced Quantity 'primary' attr with ColumnView model 2019-12-14 23:56:36 +01:00
cryptogopher
925def1674 Displaying readouts is working 2019-12-14 01:25:20 +01:00
cryptogopher
96fe7db39d Moved filter/compute to separate module
Converting it to model independent code, WIP
2019-12-12 00:13:30 +01:00
cryptogopher
e7ede4cce6 Implemented retake, changed default ordering to taken_at 2019-12-06 23:35:49 +01:00
cryptogopher
22aeda720d Measurement/readouts WIP 2019-11-16 18:39:46 +01:00
cryptogopher
3ce5d5c940 Fix migration of default quantities
Allow Quantity formula to be nil but not blank
Add computed energy quantity
Reverse default quantities deletion order
2019-11-15 00:04:34 +01:00
cryptogopher
dc9ebb36f6 Simplified Formula.valid? 2019-11-11 15:46:57 +01:00
cryptogopher
2e477921e9 Updated Formula get_quantities/calculate for new parsing algo 2019-11-11 15:10:02 +01:00
cryptogopher
613c26728c Removed old (Ripper.lex based) formula validation code
Muted multiple 'disallowed' messages for keywords
Removed unnecessary .to_d call in formula computation
2019-11-11 00:01:31 +01:00
cryptogopher
d768adb86b Formula parsing extensions 2019-11-10 23:37:11 +01:00
cryptogopher
13703dc8ed Fixed filtering 2019-11-10 23:23:59 +01:00
cryptogopher
60cfd17c0f WIP on alternative (sexp) formula parsing 2019-11-10 23:14:36 +01:00
cryptogopher
841fcb2807 Working on formula validation to accomodate functions, WIP 2019-11-10 00:48:54 +01:00
cryptogopher
67b0cd9b66 Unevaluable formulas return nil (instead of throwing error)
Filter formula errors are shown in filter view
2019-11-09 20:36:10 +01:00
cryptogopher
70b6e97b87 Filtering ingredients by formula working 2019-11-08 23:42:41 +01:00
cryptogopher
78cf471ecd Preliminary support for comparison formula 2019-11-07 19:55:16 +01:00
cryptogopher
2a3e7e8d00 Moved remaining formula code to Formula module 2019-11-07 19:30:02 +01:00
cryptogopher
19e2a45ba8 Moved formula code/validation to separate module 2019-11-07 19:19:31 +01:00
cryptogopher
884f7b2366 Added ingredient filter by nutrients field 2019-11-07 16:25:42 +01:00
cryptogopher
cf9c913897 Toggling quantity primariness from nutrients view 2019-11-01 21:43:56 +01:00
cryptogopher
0001b56ca6 Added nutrient view on ingredients index
Created custom plugin's stylesheet
2019-09-24 23:41:22 +02:00
cryptogopher
593e11ff53 Finished Sources implementation 2019-09-23 20:13:09 +02:00
cryptogopher
9cbd540c43 Defaults/import fixes and ingredients sorting 2019-09-23 00:15:40 +02:00
cryptogopher
c82f903360 Added ingredient index and form 2019-09-13 14:48:43 +02:00
cryptogopher
30314607ae Added importing quantities
Fixed display order of project quantities
2019-09-09 21:14:56 +02:00
cryptogopher
54ab1c60dc Implemented Quantity 2019-08-23 17:06:09 +02:00
cryptogopher
e9fc9c6475 Completed UnitsController#import and Unit index view 2019-08-22 01:12:37 +02:00