cryptogopher
cf0e14d87d
Allow binding goal saving w/o exposures and disallow destruction
2020-08-22 23:17:24 +02:00
cryptogopher
d8a8d9f75e
Added test_index_shows_and_hides_new_target_form
...
Removed redundant path asserts (checking path and page content is
either redundant or it's enough to check in one test only)
2020-08-20 21:59:33 +02:00
cryptogopher
f9ba308072
Added test_create_binding_target
...
Goals (incl. binding) are required to have targets
Plugin fixtures are available through accessors
2020-08-20 21:52:18 +02:00
cryptogopher
59a14043c8
Added is_binding attribute to Goal
...
Fixed test_index to check for data rows only
2020-08-18 17:40:46 +02:00
cryptogopher
955125b843
Target system tests started to run
2020-08-16 15:27:07 +02:00
cryptogopher
66a364d017
Added system tests under Redmine 4
2020-08-08 15:39:13 +02:00
cryptogopher
ffcc9553d5
Added Target create action
2020-07-25 16:28:55 +02:00
cryptogopher
5b83860ed7
Target form WIP
2020-07-02 18:59:55 +02:00
cryptogopher
0df2c6ec4f
Preliminary Target #new support
2020-06-27 21:52:32 +02:00
cryptogopher
1dd2e2b596
Added Goal model and preliminary Targets index
2020-06-25 03:56:49 +02:00
cryptogopher
4df88598f8
Fixed Quantity defaults import after removing :name uniqueness
...
Added awesome_nested_set #each_with_path
2020-06-20 00:52:37 +02:00
cryptogopher
74c863c73a
FormulaBuilder now recognizes qualified quantity identifiers
2020-06-06 15:58:12 +02:00
cryptogopher
008cfdcd26
Relaxed quantity name uniqueness check
2020-05-28 23:19:59 +02:00
cryptogopher
ad2f647960
Fixed regression
2020-05-20 23:47:57 +02:00
cryptogopher
a416e1ce9b
Fixed importing Foods with QuantityValue
...
Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
2020-05-20 23:33:34 +02:00
cryptogopher
fa9c329a81
Formula#calculate is using QuantityInput
...
Updated FormulaBuilder to properly index parts[]
2020-05-17 18:14:19 +02:00
cryptogopher
c402fe8353
Removed ITEM_TYPES in favor of uniformly named scopes/attributes
2020-05-16 17:37:51 +02:00
cryptogopher
7584c650da
Fixed formula validation during import of defaults
...
Previously it did not consider in-memory records and failed sometimes
2020-05-11 22:38:27 +02:00
cryptogopher
cd29e15b32
Fixed food order column ambiguity
2020-05-10 18:22:52 +02:00
cryptogopher
1f5ea1cfb6
compute_quantities: allow indirect associations and model dependencies
2020-05-10 18:06:32 +02:00
cryptogopher
9d19890f6f
Extracted quantity value resolving to Formula#resolve
2020-05-08 15:46:38 +02:00
cryptogopher
8d6aafd6ef
Model method calls should be indexed
2020-05-06 23:01:17 +02:00
cryptogopher
9c3d31c131
Fixes for formula computation
...
Added default quantity
2020-05-05 22:02:48 +02:00
cryptogopher
8749710330
Formula can contain model method calls
2020-05-05 01:52:34 +02:00
cryptogopher
4230d72206
compute_quantities now returns single hash
...
Fixed MeasurementsController view management
2020-04-26 20:21:17 +02:00
cryptogopher
9f5f31ca42
Indexing by item, not item.id
2020-04-25 23:28:24 +02:00
cryptogopher
c24bdd6f45
Renamed: formula_q -> filter_q
...
Added Meal related associations to Project
2020-04-25 22:49:48 +02:00
cryptogopher
c029ba59c2
Fixed saving Meal exposures
...
According to:
https://stackoverflow.com/questions/34328735/imageable-type-is-not-setting-for-polymorphic-associations
and
https://stackoverflow.com/questions/2494452/rails-polymorphic-association-with-multiple-associations-on-the-same-model
2020-04-25 18:07:58 +02:00
cryptogopher
ab8ed92929
Added MealsController#toggle_exposure
2020-04-25 15:52:35 +02:00
cryptogopher
a4781b4fcd
Renamed: column -> exposure
...
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
e78803e474
Added MealsController#new and form autocomplete for Food
...
Renamed QuantityColumn -> Exposure
2020-04-15 23:42:58 +02:00
cryptogopher
8e8160c41a
Renamed Ingredient -> Food
...
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00
cryptogopher
c3010a70e8
Adding Meals, WIP
2020-04-13 15:36:59 +02:00
cryptogopher
ced06a25bc
Added :meals and :compositions_ingredients tables
...
Changed Column -> QuantityColumn
Updated :ingredients table to handle recipes
2020-04-13 01:11:34 +02:00
cryptogopher
8882385dfa
Removed :scope filter
2020-03-29 18:06:53 +02:00
cryptogopher
18419f1aeb
Added MeasurementRoutine as a nested Measurement model
...
Updated ItemsWithQuantities to work with MeasurementRoutine
Replaced ColumnViews HABTM with polymorphic HMT
Added Measurement notes
Added destroy restrictions on Quantity
Replaced BodyTrackingPluginController with Finders concern
Removed 'body_trackers' prefix from paths
Unified styling for textarea
2020-03-29 00:56:37 +01:00
cryptogopher
e7a33c684f
Dispplaying units of computed values
...
Fixed formula error messages display when filter formula not given
2020-03-25 23:07:59 +01:00
cryptogopher
6919f9910c
Changed indexing from q_name -> q in compute
2020-03-24 21:59:57 +01:00
cryptogopher
cfe225c014
Filters zero_nil setting and computing fixed
2020-03-24 01:54:26 +01:00
cryptogopher
08ac719566
Fixes after introducing Formula model
2020-03-24 00:53:02 +01:00
cryptogopher
10325c9c39
Added zero_nil to Ingredients filter formula
...
Displaying formulas errors for Nutrients view
Substituted onblur for Ingredients filters with hidden submit
2020-03-22 01:02:37 +01:00
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