Commit Graph

55 Commits

Author SHA1 Message Date
cryptogopher 644d1f4b9a Add Quantity #reparent action 2025-01-14 15:02:38 +01:00
cryptogopher 4b453c1a82 Add :progenies as a scope to list ordered descendants of Quantity 2025-01-14 01:01:06 +01:00
cryptogopher 0652d4a89b Disallow self- and descendant-reference for base/parent 2025-01-12 19:15:43 +01:00
cryptogopher 17b4e4f8a7 Don't duplicate ancestors search in #successive 2025-01-12 18:11:37 +01:00
cryptogopher 421515e5ce ancestors() sets depth for self, instead of returning new instance 2025-01-12 18:09:34 +01:00
cryptogopher d5e7ccacf5 Add Quantity #edit and #update 2025-01-11 22:51:49 +01:00
cryptogopher b6acb30785 Make Quantity name unique among siblings
Remove Quantity domain - will be replaced by configurable per-domain
root Quantity, limiting selection to descendants only
2025-01-11 21:50:36 +01:00
cryptogopher 57f10c94a4 Add Quantity #new, #create, #destroy actions 2025-01-11 17:01:34 +01:00
cryptogopher 1e7ef75e8b Include self and ancestors in result 2025-01-09 15:59:18 +01:00
cryptogopher c7f16514d2 Re-format query 2025-01-09 15:58:21 +01:00
cryptogopher 9461c1f979 Update #successive for unlimited depth hierarchy 2025-01-08 14:29:49 +01:00
cryptogopher fa7918f0e3 Set row indentation based on depth 2025-01-08 13:55:40 +01:00
cryptogopher 0d8e7c6c0e Unlimited depth hierarchy ordering 2025-01-08 02:18:38 +01:00
cryptogopher aa862f0e90 Quantities index WIP 2025-01-05 20:47:49 +01:00
cryptogopher ed0234f158 Allow only positive Unit multiplier
Closes #51
2025-01-04 15:32:07 +01:00
cryptogopher 55b6ff3248 Find successive Unit according to sort order
This will allow to insert Units into table without refresh of all
items/removal of forms
2024-12-19 03:42:28 +01:00
cryptogopher f3f0b9dc9e Fix UnitsiTest#test_index 2024-12-09 20:00:14 +01:00
cryptogopher 0b201606c2 Replace #columns_hash with #type_for_attribute for limits 2024-12-08 13:47:30 +01:00
cryptogopher 15a5515c99 Extend NumericalityValidator to check precision and scale
Use new checks on Unit.multiplier
Closes #28
2024-12-07 20:41:19 +01:00
cryptogopher 2cbae12fa2 Implement Units default destroy 2024-11-30 16:11:31 +01:00
cryptogopher 1fedd70fe5 Fix defaults listing
Base symbol was displayed twice when it existed as default and
non-default and both of them had at least one subunit.
Also: sorting by base_id yielded non-alphabetic order in such case.
2024-11-27 19:54:50 +01:00
cryptogopher f9bd81c6ab Implement Unit defaults export
Disable import_all until implemented
2024-11-26 02:31:25 +01:00
cryptogopher 3711251656 Unit: limit symbol length, change name:string -> description:text
Closes #11
Closes #12
2024-11-24 15:13:59 +01:00
cryptogopher d6fdff252a Validate User 'email' and 'unconfirmed_email' lengths
Closes #6
2024-11-24 14:11:54 +01:00
cryptogopher e75391ae18 Display User name using #to_s 2024-11-23 14:55:29 +01:00
cryptogopher 76ce2eeedd Display Unit name using #to_s 2024-11-23 02:24:08 +01:00
cryptogopher bdc4ec4644 Specify user modifiable ATTRIBUTES 2024-11-22 15:48:09 +01:00
cryptogopher 279f9bd6ac Display Defaults hierarchy including same base Units 2024-11-22 03:10:08 +01:00
cryptogopher 6c678b6560 defaults_diff returns base Units where needed 2024-11-21 01:50:29 +01:00
cryptogopher f0e28deea2 Implement 'import' action 2024-11-17 03:39:39 +01:00
cryptogopher 41982e9dbc Import portability checks complete 2024-11-16 02:31:53 +01:00
cryptogopher d9e74ed305 Avoid unscoping 2024-11-15 19:45:55 +01:00
cryptogopher 4447735dce First part of portability checks 2024-11-15 02:02:19 +01:00
cryptogopher a01c89ce3a Further simplify EXISTS condition with SelectManager 2024-11-14 04:28:20 +01:00
cryptogopher 7234d60afc Replace additional joins with NOT EXISTS subquery 2024-11-14 02:50:53 +01:00
cryptogopher 51011951f9 Default Units index 2024-11-10 21:30:19 +01:00
cryptogopher 846eb6da14 Preliminary support for default Units import 2024-11-09 02:05:04 +01:00
cryptogopher be48d6fd7f Use Arel::FactoryMehods for coalesce() 2024-11-09 02:03:34 +01:00
cryptogopher a5a75233c7 Validate Unit base user 2024-04-02 22:20:45 +02:00
cryptogopher 05b0c66216 Change unit base with drag and drop 2024-03-24 17:38:56 +01:00
cryptogopher 59db1fef17 Set multiplier default in db, not model 2024-03-15 19:36:05 +01:00
cryptogopher aa4a8193ce Set multiplier to 1 for base units 2024-03-15 17:16:14 +01:00
cryptogopher 50eedf8b23 Update TODOs 2024-01-17 21:59:28 +01:00
cryptogopher 11ecd8eaed Remove awesome_nested_set gem dependency 2024-01-17 05:43:55 +01:00
cryptogopher 4e91c89153 List units ordered, not using nested_set 2024-01-09 00:11:26 +01:00
cryptogopher 92132768fa Multiplier in nil for toplevel units 2024-01-09 00:08:53 +01:00
cryptogopher 98c8fb9346 Validate Unit string lengths 2024-01-05 21:32:59 +01:00
cryptogopher a4745c9cb8 Add Units 2023-07-06 18:34:16 +02:00
cryptogopher cc65b64a4b Move status checking to model 2023-05-02 03:17:41 +02:00
cryptogopher 353049a6b2 Set User :confirmable
Renumber statuses to make :disabled == 0
2023-04-14 21:35:32 +02:00