1
0

44 Commits

Author SHA1 Message Date
cryptogopher
80b10d108a Test pass: test_index_table_header_close_exposure
Allow closing last quantity column
2021-01-21 11:17:51 +01:00
cryptogopher
7d096748bf Test pass: test_index_options_add_exposure 2021-01-19 18:53:02 +01:00
cryptogopher
07eda42de4 New test: test_index_options_add_column 2021-01-19 12:57:57 +01:00
cryptogopher
8be1533667 Extended wait time after defaults loading to avoid failures 2020-08-29 01:45:38 +02: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
8f2a455561 Added defaults load test 2020-08-26 02:07:36 +02:00
cryptogopher
6ba8ad5376 Preliminary Target :edit support 2020-08-25 02:55:21 +02:00
cryptogopher
cf0e14d87d Allow binding goal saving w/o exposures and disallow destruction 2020-08-22 23:17:24 +02:00
cryptogopher
8f0e718b4a Test refinements 2020-08-22 16:28:12 +02:00
cryptogopher
8b43f22e66 Added: test_create_binding_target_when_binding_goal_does_not_exist 2020-08-22 16:11:43 +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
13974e5e2f Completed test_index_without_targets 2020-08-18 21:49:12 +02:00
cryptogopher
266794cfe6 Purge screenshots before test suite 2020-08-18 21:14:28 +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
74c863c73a FormulaBuilder now recognizes qualified quantity identifiers 2020-06-06 15:58:12 +02:00
cryptogopher
fa9c329a81 Formula#calculate is using QuantityInput
Updated FormulaBuilder to properly index parts[]
2020-05-17 18:14:19 +02:00
cryptogopher
8749710330 Formula can contain model method calls 2020-05-05 01:52:34 +02:00
cryptogopher
a4781b4fcd Renamed: column -> exposure
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +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
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
544c0c5293 Updating Quantity to use Formula, WIP 2020-02-17 22:15:30 +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
b8a09b10ff Changed: params -> quantities 2020-01-18 20:35:22 +01:00
cryptogopher
8e362ade79 Method type distinction: numeric/quantity 2020-01-18 20:06:16 +01:00
cryptogopher
6ce02ba05a Added quantity recognition from strings and vcalls 2020-01-15 00:21:10 +01:00
cryptogopher
e0c08c0e6a refining complex formulas 2020-01-14 23:33:25 +01:00
cryptogopher
5fda938663 Experimental support for quantity methods in formulas 2020-01-14 01:07:10 +01:00
cryptogopher
ccf26d1830 Added ColumnView model
cmd:
rails generate redmine_plugin_model body_tracking column_view
project:references name:string domain:integer
rails generate migration CreateQuantitiesColumnViews quantity:references
column_view:references
2019-12-14 19:48:52 +01:00
cryptogopher
d74f290a4f Removed ReadoutValue 2019-11-30 00:19:26 +01:00
cryptogopher
b7b0f7634e Added MeasurementsController
command:
rails generate redmine_plugin_controller body_tracking measurements
index create destroy
2019-11-16 14:18:34 +01:00
cryptogopher
687269062c Added measurement, readout and readout_value models
commands:
rails generate redmine_plugin_model body_tracking measurement
name:string hidden:boolean source:references
rails generate redmine_plugin_model body_tracking readout
measurement:references quantity:references unit:references
rails generate redmine_plugin_model body_tracking readout_value
readout:references value:decimal taken_at:timestamp
2019-11-15 21:52:12 +01:00
cryptogopher
0b549b909a Added Sources model + controller
commands:
rails generate redmine_plugin_model body_tracking source
project:references name:string description:text
rails generate redmine_plugin_controller body_tracking sources index
create destroy
2019-09-23 14:45:13 +02:00
cryptogopher
c916e7fd3c Created ingredients controller
command: rails generate redmine_plugin_controller body_tracking
ingredients index create destroy
2019-09-13 14:03:39 +02:00
cryptogopher
7062652d0d Added nutrient model
command: rails generate redmine_plugin_model body_tracking nutrient
ingredient:references quantity:references unit:references amount:decimal
2019-09-13 13:54:56 +02:00
cryptogopher
b63040b037 Added Ingredients model
command: rails generate redmine_plugin_model body_tracking ingredient
name:string ref_unit:references ref_amount:decimal hidden:boolean
source:references group:integer
2019-08-28 21:04:46 +02:00
cryptogopher
9a34cc0b95 Added Quantities model and controller
commands:
rails generate redmine_plugin_model body_tracking quantity
rails generate redmine_plugin_controller body_tracking quantities index
create destroy
2019-08-23 00:01:10 +02:00
cryptogopher
3e83693c28 Created BodyTrackers controller
command: rails generate redmine_plugin_controller body_tracking
body_trackers index
2019-08-08 22:33:58 +02:00
cryptogopher
045943938d Created Units controlle
command: rails generate redmine_plugin_controller body_tracking units
create destroy
2019-08-08 21:59:40 +02:00
cryptogopher
6b1bd9a45e Created Unit model
command: rails generate redmine_plugin_model body_tracking unit
name:string shortname:string type:integer
2019-08-08 21:46:26 +02:00
cryptogopher
94971489d1 Adding autogenerated plugin files
command: rails generate redmine_plugin body_tracking
2019-07-28 22:42:50 +02:00