Rohan Mitchell
|
af4baabb50
|
Include DelayedJobHelper for specs
|
2015-04-16 16:54:43 +10:00 |
|
Rohan Mitchell
|
3bbf42c3e7
|
WIP: Rename delayed job support to delayed job helper
|
2015-04-16 16:54:43 +10:00 |
|
Rohan Mitchell
|
530740158c
|
Tolerate no jobs previously in queue
|
2015-04-16 16:54:43 +10:00 |
|
Rohan Mitchell
|
771b9e0df5
|
Improve syntax: take job class as a separate argument
|
2015-04-16 16:54:43 +10:00 |
|
Rohan Mitchell
|
1d5a4c93e4
|
Add delayed job testing support, original credit Mat Holroyd and Rohan Mitchell, from CERES Fairfood project
|
2015-04-16 16:54:43 +10:00 |
|
Rohan Mitchell
|
a384f5e3d4
|
Merge branch 'buildkite' into customer-totals-report-and-perms-fix
|
2015-04-16 14:08:39 +10:00 |
|
Rohan Mitchell
|
318957551f
|
Freeze time to make spec repeatable
|
2015-04-16 14:07:38 +10:00 |
|
Rohan Mitchell
|
768cfab591
|
Change field text at checkout
|
2015-04-16 10:59:15 +10:00 |
|
Rohan Mitchell
|
7f6c02ca29
|
Add User#customer_of to look up customers
|
2015-04-16 10:59:15 +10:00 |
|
Rohan Mitchell
|
34d1841d22
|
Make Variant#full_name resilient to regex chars
|
2015-04-16 10:59:15 +10:00 |
|
Rohan Mitchell
|
e570352a1b
|
Grant fewer permissions on enterprise creation
|
2015-04-16 10:59:15 +10:00 |
|
Rohan Mitchell
|
2e021941d1
|
Fix bug where new enterprises should be created as hubs, but aren't
|
2015-04-16 10:59:15 +10:00 |
|
Rob Harrington
|
6ac45f3dc8
|
Renaming order_cycle_exchanges as visible_exchanges
|
2015-04-11 22:26:55 +10:00 |
|
Rob Harrington
|
e3138c3cd2
|
Renaming order_cycle_enterprises_for as visible_enterprises
|
2015-04-11 22:25:23 +10:00 |
|
Rob Harrington
|
26d55baa35
|
Moving order cycle permissions to their own permissions class
|
2015-04-11 21:11:10 +10:00 |
|
Rob Harrington
|
02f8f293da
|
Only allow managers or coordinator to add/remove fees from exchanges
|
2015-04-11 18:32:04 +10:00 |
|
Rob Harrington
|
8b7d321dfe
|
Changing delete time to ensure not_deleted scope works
|
2015-04-10 16:40:33 +10:00 |
|
Rob Harrington
|
72403fd021
|
Fixing broken enterprise controller spec
|
2015-04-10 13:16:21 +10:00 |
|
Rob Harrington
|
2280a71b23
|
Replace for_order_cycle rabl template with a serializer
|
2015-04-10 09:25:40 +10:00 |
|
Rob Harrington
|
6f24e969ce
|
Removing stupid unusable spec
|
2015-04-09 17:20:31 +10:00 |
|
Rob Harrington
|
81a745420e
|
Only check editable status of variants when actually selecting
|
2015-04-09 15:24:45 +10:00 |
|
Rob Harrington
|
c28ebf63ab
|
As participating Hub, I cannot edit incoming exchanges despite being granted P-OC by the producer
|
2015-04-09 13:41:43 +10:00 |
|
Rob Harrington
|
60a3d8e0d1
|
Restrict bulk updating order cycles at controller level
|
2015-04-09 12:27:43 +10:00 |
|
Rob Harrington
|
adc1b639bc
|
Merge remote-tracking branch 'origin/master' into complex_oc
|
2015-04-08 14:38:27 +10:00 |
|
Rob Harrington
|
61a9e2f7cc
|
Add a referer for all admin enterprise controller specs
|
2015-04-08 14:36:56 +10:00 |
|
Rob Harrington
|
f6e635466b
|
Rearranging elements on the order cycle form a little bit
|
2015-04-08 14:31:18 +10:00 |
|
Rob Harrington
|
b1624a733e
|
Editable variants for incoming exchanges for hubs include those for producers that have granted my hub P-OC
|
2015-04-08 13:38:37 +10:00 |
|
Rob Harrington
|
b8ce6ed0fc
|
Coordinator can see any enterprises that are already in the order cycle
|
2015-04-08 13:28:49 +10:00 |
|
Rob Harrington
|
104a8ddecf
|
Refactor order_cycle_enterpises_for permission method, now requires an order cycle
|
2015-04-08 13:00:17 +10:00 |
|
Rob Harrington
|
4dcfec1de9
|
make enterprises_for_order_cycle permissions more correct
|
2015-04-08 12:12:02 +10:00 |
|
Rob Harrington
|
24062e5585
|
Adding permissions for outgoing hubs to see producers whose variants they are distributing, despite P-OC not existing
|
2015-04-08 10:15:50 +10:00 |
|
Rob Harrington
|
4a87798bb4
|
Variants belonging to a producer I manager that are already in an outgoing an exchange need not be editable
|
2015-04-06 23:30:43 +10:00 |
|
Rob Harrington
|
36c5cdf556
|
Only show enterprises with fees in order cycle edit page
|
2015-04-06 14:08:10 +10:00 |
|
Rob Harrington
|
d516795774
|
Fetching Enterprise Fees for order cycle, using new enterprisefee serializer
|
2015-04-06 13:06:21 +10:00 |
|
Rob Harrington
|
7448d41b27
|
Adding abilities for new for_order_cycle action
|
2015-04-06 10:23:39 +10:00 |
|
Rob Harrington
|
a4b80b1f33
|
Implement editable scope for variants on order cycles page
|
2015-04-06 09:15:14 +10:00 |
|
Rob Harrington
|
f20844c2a0
|
Adding editable scope for variants in outgoing exchanges
|
2015-04-05 15:25:44 +10:00 |
|
Rob Harrington
|
009b25a491
|
Adding an editable variants scope for incoming exchanges
|
2015-04-05 13:59:00 +10:00 |
|
Rob Harrington
|
bf87394a76
|
Fixing order cycle feature spec
|
2015-04-05 10:58:06 +10:00 |
|
Rob Harrington
|
d28fc7e42d
|
Hubs can see incoming exchanges of producers who have given them P-OC or whose variants they are actively distributing
|
2015-04-03 14:58:01 +11:00 |
|
Rob Harrington
|
5d7659aa3c
|
Fixing product spec, using have_select2 instead of have_field
|
2015-04-02 14:36:19 +11:00 |
|
Rob Harrington
|
1e1d52cc47
|
Adding 'selected' option to have_select2 matcher
|
2015-04-02 14:35:39 +11:00 |
|
Rob Harrington
|
76648b97b0
|
Update spec, properties must exist for enterprise users before they can be assigned
|
2015-04-02 14:15:00 +11:00 |
|
Rob Harrington
|
8ed6653dc4
|
Ignoring any new product properties submitted by a non-admin user
|
2015-04-02 08:55:20 +11:00 |
|
Rob Harrington
|
ca1a5b5f8d
|
Ignoring any new producer properties submitted by the user
|
2015-04-02 08:54:35 +11:00 |
|
Rob Harrington
|
2d5118290b
|
Fixing broken order cycle feature specs
|
2015-03-27 16:19:52 +11:00 |
|
Rob Harrington
|
74b7feda53
|
coordinator of a simple order cycle has permission to add their own variants to outgoing exchanges
|
2015-03-27 16:16:13 +11:00 |
|
Rob Harrington
|
f5bacf71b7
|
Permissions for OrderCycleFormApplicator are determined internally
|
2015-03-27 16:16:13 +11:00 |
|
Rob Harrington
|
aa170ef5f6
|
Order cycle simple create controller uses 'new' method on OC service to initialise
|
2015-03-27 16:16:12 +11:00 |
|
Rob Harrington
|
43d2eb4d22
|
Adding 'new' method to admin order cycle service, for loading data from serializer for new OCs
|
2015-03-27 16:16:12 +11:00 |
|