cryptogopher
4eda035e47
Test pass: test_destroy
...
Expand Targets #update success flash and failure handling
Add Target index table checks in modification actions tests
2021-04-29 01:30:13 +02:00
cryptogopher
a210ccc661
Test pass: test_update_add_and_simultaneously_remove_persisted_duplicate
...
Replace option[selected] with option:checked
Fix target validation when threshold destroyed
Extract #fill_threshold in tests
2021-04-26 15:29:04 +02:00
cryptogopher
bea0a8371d
WIP Targets #edit/#update
...
NestedUniqueness properly restores collection.target
2021-04-23 19:19:44 +02:00
cryptogopher
37e3b98788
Improve #create action
2021-04-20 16:57:15 +02:00
cryptogopher
0b9401b089
Proper nested records uniqueness validation
...
Test pass: test_create_duplicate_for_persisted_target_should_fail
2021-04-19 00:38:28 +02:00
cryptogopher
91fa25830d
Randomize quantity in test_index_table_header_close_exposure
...
Rename: Goal.target_exposures -> Goal.exposures
2021-03-22 00:22:33 +01:00
cryptogopher
c21c834d84
Test pass: test_index_binding_goal_without_targets
2021-03-13 16:43:10 +01:00
cryptogopher
5b73e9e7fd
Fix targets#create
2021-03-07 15:07:45 +01:00
cryptogopher
09e27eb754
List binding goal targets
2021-02-21 19:41:24 +01:00
cryptogopher
7f87b3bc84
Add GoalController: #index, #new, #create
2021-02-21 18:10:15 +01:00
cryptogopher
ea308a1e4a
WIP: targets forms
2021-02-21 11:33:30 +01:00
cryptogopher
8b17b33603
WIP: Targets configurable with Quantities
2021-02-07 11:02:41 +01:00
cryptogopher
1b7f2f0abd
Added test_defaults_seed_and_load_into_empty_project
...
Added :defaults scopes to models
Added :sources and :formulas fixtures
Loading defaults from seeds.rb using rake task instead of migration
2020-08-29 01:26:36 +02:00
cryptogopher
cf0e14d87d
Allow binding goal saving w/o exposures and disallow destruction
2020-08-22 23:17:24 +02:00
cryptogopher
8b43f22e66
Added: test_create_binding_target_when_binding_goal_does_not_exist
2020-08-22 16:11:43 +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
cf3bbb205d
Added Targets index
2020-08-06 21:52:33 +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
8240e5e868
Added Target and Threshold models
2020-06-21 02:48:32 +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
61498018e7
Added Targets table
...
Fixed Quantity#after_save for default quantities
2020-06-18 01:53:09 +02:00
cryptogopher
bea036dc52
Updated quantity name ambiguoty check on creation
2020-06-13 18:48:19 +02:00
cryptogopher
6b3714817c
Formula reports ambiguous quantity identifiers
...
Formula returns error.details for Rails 4
Formula distinguishes root path (::Identifier)
Quantity validates name changes against introducing formulas'
ambiguities
2020-06-13 18:18:53 +02:00
cryptogopher
6785090045
Checking ambiguity of quantity paths in formulas
2020-06-06 00:18:13 +02:00
cryptogopher
ba634eb516
Fixed deletion of quantity formula
2020-05-29 00:10:05 +02:00
cryptogopher
008cfdcd26
Relaxed quantity name uniqueness check
2020-05-28 23:19:59 +02:00
cryptogopher
a8d31f26d2
Simplified QuantityInput#lastBefore
2020-05-23 17:24:32 +02:00
cryptogopher
580e9156e6
Implemented QuantityInput#lastBefore
2020-05-22 22:10:34 +02:00
cryptogopher
976271d6b4
Fixed association
2020-05-21 00:23:38 +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
ffb87a09c4
Error reporting on failed loading of default(s)
2020-05-11 20:46:31 +02:00
cryptogopher
fd184df9c7
Merged Nutrient and Readout into QuantityValue
...
Aliased date attributes of Meal and Measurement
2020-05-11 19:36:30 +02:00
cryptogopher
abd7d02b89
Added QuantityInput class
2020-05-10 21:55:12 +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
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
f6a7f0219e
Summarizing nutrients + displaying meal summary
2020-05-01 18:34:40 +02:00
cryptogopher
a4781b4fcd
Renamed: column -> exposure
...
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
5e3322fe96
Removed quantity uniqueness validation
2020-04-25 01:08:33 +02:00
cryptogopher
1007385e1f
Added eaten_at to Meal form
2020-04-24 16:53:24 +02:00
cryptogopher
e659ecc760
Added MealsController#toggle_eaten
2020-04-19 16:03:03 +02:00