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
61cb2514cd
Add Delayed::Job
2015-04-16 16:54:43 +10:00
Rohan Mitchell
aef3fdf4b4
Merge branch 'group-pages'
2015-04-16 16:53:49 +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
e017c30ab7
Do not double-run db:test:prepare
2015-04-16 14:07:37 +10:00
Rohan Mitchell
23888b7576
chmod +x
2015-04-16 14:07:37 +10:00
Rohan Mitchell
ff07707af7
Symlink it right
2015-04-16 14:07:37 +10:00
Rohan Mitchell
78bf87614a
Buildkite: Symlink config/application.yml if not present
2015-04-16 14:07:37 +10:00
Rohan Mitchell
2b50f993de
Load environment before attempting build
2015-04-16 14:07:37 +10:00
Rohan Mitchell
4672cc4863
Add buildkite scripts
2015-04-16 14:07:37 +10:00
Rohan Mitchell
768cfab591
Change field text at checkout
2015-04-16 10:59:15 +10:00
Rohan Mitchell
7f973604e5
Add columns to customer totals report: order cycle, payment method, customer code, tags, billing address
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
Rohan Mitchell
48bf87ec73
Perpetually updating copyright year
2015-04-16 10:59:15 +10:00
Maikel Linke
548e3576b9
textAngular editor for group description
2015-04-15 17:13:10 +10:00
Maikel Linke
201bcb133a
show profiles checkbox on groups hubs page
2015-04-15 16:15:21 +10:00
Rob Harrington
2072744870
User can enter the number of months back to search for order cycles from which to build relationships
v0.8.0
2015-04-12 11:38:18 +10:00
Rob Harrington
0f9fbe6e8c
Preventing relationships from being created with self
2015-04-12 10:53:22 +10:00
Rob Harrington
b24cad7aeb
Providing access to order_cycle_permissions in order cycles controller
2015-04-11 23:25:30 +10:00
Rob Harrington
bc89018ee1
Refer to the right variable doofus
2015-04-11 23:24:50 +10:00
Rob Harrington
88bae32971
Adding method: user_manages_coordinator_or(enterprise) to make code a bit more terse
2015-04-11 23:00:34 +10:00
Rob Harrington
6f81a9ba18
Save common permission method results as instance variables
2015-04-11 22:53:57 +10:00
Rob Harrington
22a37cdc8a
Rename managed_producers_in as managed_participating_producers
2015-04-11 22:44:32 +10:00
Rob Harrington
9c376f0b00
Rename managed_hubs_in as managed_participating_hubs
2015-04-11 22:32:15 +10:00
Rob Harrington
59a2c84857
Rename managed_enterprises_in as managed_participating_enterprises
2015-04-11 22:30:21 +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
Maikel Linke
2fd25f6cc4
Injecting all enterprises into group page
...
The enterprises have related producers and hubs that need to be
dereferenced. Therefore, we need a bigger set of enterprises to be
loaded. Injecting all enterprises is simple and doesn't require changes
if the set of needed enterprise data is growing in future.
2015-04-10 17:42:54 +10:00
Rob Harrington
24e3c9a9e1
Adding bugsnag notify block for catching naughty phantom fees
2015-04-10 16:41:10 +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
Maikel Linke
1e168afd71
giving the enterprise serializer the active_distributors
2015-04-10 12:55:20 +10:00
Rob Harrington
1e6fd94663
Adding rake task to create E2E relationships with P-OC based on past order_cycles
2015-04-10 12:51:15 +10:00
Rob Harrington
96c173414b
Adding has_permission method to enterprise_relationship
2015-04-10 12:48:27 +10:00
Rob Harrington
226e2f0e2c
Fixing error caused by order show template doing a lookup based on current distributor rather than order distributor
2015-04-10 09:26:20 +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
Maikel Linke
e26ebf4239
Serialize only activated hubs and producers of an enterprise
2015-04-09 17:15:57 +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