Commit Graph

  • 3f01a459ac Adding a standard variant upon initialisation of a new instance of Spree::Product Rob Harrington 2014-09-26 12:17:55 +10:00
  • 2b5fc656fe Configure delayed job logging, add startup script for monit Rohan Mitchell 2015-04-17 10:40:25 +10:00
  • 524f02717b Don't redirect to root when closing login window on checkout page Rob Harrington 2015-04-17 10:25:38 +10:00
  • 456a6f94f5 On enterprise confirmation: create a new user based on enterprise contact email if one does not already exist, and add it as a manager Rob Harrington 2015-04-17 10:24:37 +10:00
  • afe77925ba Allow request to specify a return value when calling user_passwords#edit Rob Harrington 2015-04-17 10:21:25 +10:00
  • 5940ff2b2c Don't override devise's after_sign_in_path_for, use specific before filters for user sessions and registrations controllers instead Rob Harrington 2015-04-16 16:56:27 +10:00
  • d1ab2d9dac Add daemons gem for Delayed::Job Rohan Mitchell 2015-04-15 09:25:00 +10:00
  • ccc1f3df40 Feature specs test email sending through delayed jobs Rohan Mitchell 2015-04-10 17:06:18 +10:00
  • e9fbd74e88 Send emails via jobs instead of synchronously Rohan Mitchell 2015-04-10 15:54:03 +10:00
  • bb3bdf37cd Add jobs for user, order and enterprise emails Rohan Mitchell 2015-04-10 15:51:42 +10:00
  • af4baabb50 Include DelayedJobHelper for specs Rohan Mitchell 2015-04-10 15:42:02 +10:00
  • 3bbf42c3e7 WIP: Rename delayed job support to delayed job helper Rohan Mitchell 2015-04-10 15:40:42 +10:00
  • 530740158c Tolerate no jobs previously in queue Rohan Mitchell 2015-04-10 15:39:06 +10:00
  • 771b9e0df5 Improve syntax: take job class as a separate argument Rohan Mitchell 2015-04-10 15:28:46 +10:00
  • 1d5a4c93e4 Add delayed job testing support, original credit Mat Holroyd and Rohan Mitchell, from CERES Fairfood project Rohan Mitchell 2015-04-10 15:26:57 +10:00
  • 61cb2514cd Add Delayed::Job Rohan Mitchell 2015-04-10 14:36:12 +10:00
  • aef3fdf4b4 Merge branch 'group-pages' Rohan Mitchell 2015-04-16 16:53:49 +10:00
  • a384f5e3d4 Merge branch 'buildkite' into customer-totals-report-and-perms-fix Rohan Mitchell 2015-04-16 14:08:39 +10:00
  • 318957551f Freeze time to make spec repeatable Rohan Mitchell 2015-04-16 12:19:35 +10:00
  • e017c30ab7 Do not double-run db:test:prepare Rohan Mitchell 2015-04-16 10:58:36 +10:00
  • 23888b7576 chmod +x Rohan Mitchell 2015-04-15 14:46:34 +10:00
  • ff07707af7 Symlink it right Rohan Mitchell 2015-04-15 14:04:32 +10:00
  • 78bf87614a Buildkite: Symlink config/application.yml if not present Rohan Mitchell 2015-04-15 13:59:37 +10:00
  • 2b50f993de Load environment before attempting build Rohan Mitchell 2015-04-15 13:54:12 +10:00
  • 4672cc4863 Add buildkite scripts Rohan Mitchell 2015-04-15 13:36:40 +10:00
  • 768cfab591 Change field text at checkout Rohan Mitchell 2015-04-15 15:59:37 +10:00
  • 7f973604e5 Add columns to customer totals report: order cycle, payment method, customer code, tags, billing address Rohan Mitchell 2015-04-10 14:29:02 +10:00
  • 7f6c02ca29 Add User#customer_of to look up customers Rohan Mitchell 2015-04-10 14:24:25 +10:00
  • 34d1841d22 Make Variant#full_name resilient to regex chars Rohan Mitchell 2015-04-10 12:13:43 +10:00
  • e570352a1b Grant fewer permissions on enterprise creation Rohan Mitchell 2015-04-10 11:36:48 +10:00
  • 2e021941d1 Fix bug where new enterprises should be created as hubs, but aren't Rohan Mitchell 2015-04-10 11:14:56 +10:00
  • 48bf87ec73 Perpetually updating copyright year Rohan Mitchell 2015-04-01 14:07:54 +11:00
  • 548e3576b9 textAngular editor for group description Maikel Linke 2015-04-15 17:13:10 +10:00
  • 201bcb133a show profiles checkbox on groups hubs page Maikel Linke 2015-04-15 16:15:21 +10:00
  • 0c155e6e3a Display message when email has not been confirmed for new enterprise Rob Harrington 2015-04-15 15:32:17 +10:00
  • 83981fbb15 Adding additional logic for if the line_item unit_value is nil Lynne Davis 2015-04-14 17:29:56 +01:00
  • 2072744870 User can enter the number of months back to search for order cycles from which to build relationships v0.8.0 Rob Harrington 2015-04-12 11:38:18 +10:00
  • 0f9fbe6e8c Preventing relationships from being created with self Rob Harrington 2015-04-12 10:53:22 +10:00
  • 9103e83ce2 #275: spec test for controller method. Other small fixes. Paul Mackay 2015-04-11 18:28:31 +01:00
  • b24cad7aeb Providing access to order_cycle_permissions in order cycles controller Rob Harrington 2015-04-11 23:25:30 +10:00
  • bc89018ee1 Refer to the right variable doofus Rob Harrington 2015-04-11 23:24:50 +10:00
  • 88bae32971 Adding method: user_manages_coordinator_or(enterprise) to make code a bit more terse Rob Harrington 2015-04-11 23:00:34 +10:00
  • 6f81a9ba18 Save common permission method results as instance variables Rob Harrington 2015-04-11 22:53:57 +10:00
  • 22a37cdc8a Rename managed_producers_in as managed_participating_producers Rob Harrington 2015-04-11 22:44:32 +10:00
  • 9c376f0b00 Rename managed_hubs_in as managed_participating_hubs Rob Harrington 2015-04-11 22:32:15 +10:00
  • 59a2c84857 Rename managed_enterprises_in as managed_participating_enterprises Rob Harrington 2015-04-11 22:30:21 +10:00
  • 6ac45f3dc8 Renaming order_cycle_exchanges as visible_exchanges Rob Harrington 2015-04-11 22:26:55 +10:00
  • e3138c3cd2 Renaming order_cycle_enterprises_for as visible_enterprises Rob Harrington 2015-04-11 22:25:23 +10:00
  • 99709b53ed Change controller action to 'notify_producers'. Add flash message on completion. Simplify job variables. Improve mailer query. Spec for job. Paul Mackay 2015-04-11 13:19:48 +01:00
  • 26d55baa35 Moving order cycle permissions to their own permissions class Rob Harrington 2015-04-11 21:11:10 +10:00
  • 02f8f293da Only allow managers or coordinator to add/remove fees from exchanges Rob Harrington 2015-04-11 18:32:04 +10:00
  • 2fd25f6cc4 Injecting all enterprises into group page Maikel Linke 2015-04-10 17:42:54 +10:00
  • 24e3c9a9e1 Adding bugsnag notify block for catching naughty phantom fees Rob Harrington 2015-04-10 16:41:10 +10:00
  • 8b7d321dfe Changing delete time to ensure not_deleted scope works Rob Harrington 2015-04-10 16:40:33 +10:00
  • 72403fd021 Fixing broken enterprise controller spec Rob Harrington 2015-04-10 13:16:21 +10:00
  • 1e168afd71 giving the enterprise serializer the active_distributors Maikel Linke 2015-04-10 12:55:20 +10:00
  • 1e6fd94663 Adding rake task to create E2E relationships with P-OC based on past order_cycles Rob Harrington 2015-04-10 12:51:15 +10:00
  • 96c173414b Adding has_permission method to enterprise_relationship Rob Harrington 2015-04-10 12:48:27 +10:00
  • 226e2f0e2c Fixing error caused by order show template doing a lookup based on current distributor rather than order distributor Rob Harrington 2015-04-10 09:26:20 +10:00
  • 2280a71b23 Replace for_order_cycle rabl template with a serializer Rob Harrington 2015-04-10 09:25:40 +10:00
  • 6f24e969ce Removing stupid unusable spec Rob Harrington 2015-04-09 17:20:31 +10:00
  • e26ebf4239 Serialize only activated hubs and producers of an enterprise Maikel Linke 2015-04-09 17:15:57 +10:00
  • 81a745420e Only check editable status of variants when actually selecting Rob Harrington 2015-04-09 15:24:45 +10:00
  • c28ebf63ab As participating Hub, I cannot edit incoming exchanges despite being granted P-OC by the producer Rob Harrington 2015-04-09 13:41:43 +10:00
  • 69004ac477 Select all box only selects variants I have permission to edit Rob Harrington 2015-04-09 13:29:25 +10:00
  • 430320e3f9 Oopsie! Rob Harrington 2015-04-09 13:28:41 +10:00
  • 60a3d8e0d1 Restrict bulk updating order cycles at controller level Rob Harrington 2015-04-09 12:27:43 +10:00
  • 8a3126f117 Using helper to disable form elements on order cycle index page Rob Harrington 2015-04-09 11:11:46 +10:00
  • c7157ce7bd Applying new helper to order cycle name and timing partial Rob Harrington 2015-04-09 11:11:06 +10:00
  • 133f7e4ec7 Add viewing_as_coodinator_of? helper method Rob Harrington 2015-04-09 11:10:56 +10:00
  • fbcfe9b2a4 Add viewing_as_coordiantor flag to serialized order cycles and a managed flag to serialized enterprises for_order_cycle(s) Rob Harrington 2015-04-09 10:31:17 +10:00
  • adc1b639bc Merge remote-tracking branch 'origin/master' into complex_oc Rob Harrington 2015-04-08 14:38:27 +10:00
  • 61a9e2f7cc Add a referer for all admin enterprise controller specs Rob Harrington 2015-04-08 14:36:56 +10:00
  • f6e635466b Rearranging elements on the order cycle form a little bit Rob Harrington 2015-04-08 14:31:18 +10:00
  • 32cc17745a Non-coordinating user cannot alter important attributes of order cycle Rob Harrington 2015-04-08 14:12:49 +10:00
  • b1624a733e Editable variants for incoming exchanges for hubs include those for producers that have granted my hub P-OC Rob Harrington 2015-04-08 13:38:37 +10:00
  • b8ce6ed0fc Coordinator can see any enterprises that are already in the order cycle Rob Harrington 2015-04-08 13:28:49 +10:00
  • 104a8ddecf Refactor order_cycle_enterpises_for permission method, now requires an order cycle Rob Harrington 2015-04-08 13:00:17 +10:00
  • 4dcfec1de9 make enterprises_for_order_cycle permissions more correct Rob Harrington 2015-04-08 12:12:02 +10:00
  • 8859aa27ee Slight refactor of order cycle enterprises Rob Harrington 2015-04-08 10:33:32 +10:00
  • 24062e5585 Adding permissions for outgoing hubs to see producers whose variants they are distributing, despite P-OC not existing Rob Harrington 2015-04-08 10:15:50 +10:00
  • 4a87798bb4 Variants belonging to a producer I manager that are already in an outgoing an exchange need not be editable Rob Harrington 2015-04-06 23:30:43 +10:00
  • ae1681b790 Not 1! Zero! Rob Harrington 2015-04-06 23:29:15 +10:00
  • 36c5cdf556 Only show enterprises with fees in order cycle edit page Rob Harrington 2015-04-06 14:08:10 +10:00
  • d516795774 Fetching Enterprise Fees for order cycle, using new enterprisefee serializer Rob Harrington 2015-04-06 13:06:21 +10:00
  • 7eb735f87e Adding for_enterprises scope on enterprise fee Rob Harrington 2015-04-06 10:24:40 +10:00
  • 7448d41b27 Adding abilities for new for_order_cycle action Rob Harrington 2015-04-06 10:23:39 +10:00
  • 7ebea23fda Adding route for now for_order_cycle action on enterprise fees Rob Harrington 2015-04-06 10:23:08 +10:00
  • b7de8353bc Renaming existing enterprise fee serializer as basic... Rob Harrington 2015-04-06 09:47:37 +10:00
  • 52dc313e70 Implementing editable variant scopes in order_cycle_applicator Rob Harrington 2015-04-06 09:20:39 +10:00
  • a4b80b1f33 Implement editable scope for variants on order cycles page Rob Harrington 2015-04-06 09:15:14 +10:00
  • f20844c2a0 Adding editable scope for variants in outgoing exchanges Rob Harrington 2015-04-05 15:25:44 +10:00
  • 136d361134 Fixing comment Rob Harrington 2015-04-05 14:14:47 +10:00
  • 009b25a491 Adding an editable variants scope for incoming exchanges Rob Harrington 2015-04-05 13:59:00 +10:00
  • bf87394a76 Fixing order cycle feature spec Rob Harrington 2015-04-05 10:58:06 +10:00
  • ff935af18b Variable Weights: Adding ability to update the weight/volume of a line_item after checkout. The price of the line_item is automatically updated to reflect the value of the new weight. Lynne Davis 2015-04-04 17:52:31 +01:00
  • ffd850c761 Adding specs for variable weight adjustment via builk order management Lynne Davis 2015-04-04 17:44:02 +01:00
  • bf44a1c862 Update DB schema to store updatable weight on items sold Lynne Davis 2015-04-04 17:06:26 +01:00
  • d28fc7e42d Hubs can see incoming exchanges of producers who have given them P-OC or whose variants they are actively distributing Rob Harrington 2015-04-03 14:58:01 +11:00
  • a10de68430 only load permissions once in serializer Rob Harrington 2015-04-02 15:55:03 +11:00