Luis Ramos
23627c5453
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
...
9290 issues fixed
2021-06-17 22:19:26 +01:00
Luis Ramos
2b8f0abe49
Try some mass auto-correct adding frozen-string-literal to all specs
2020-12-03 06:38:24 -08:00
Luis Ramos
ab53db0c61
Merge ability and ability decorator
2020-11-04 12:15:45 +00:00
Luis Ramos
455111093d
Fix easy rubocop issues
2020-09-17 14:18:51 +01:00
Luis Ramos
ecdba1fa4e
For some reason the factory create(:admin_user) is not working here, this new version works
2020-09-17 14:18:51 +01:00
Luis Ramos
8234ad0906
Ensure test order cycle coordinator is really an enterprise not managed by the user instead of relying on the factory logic
2020-09-17 14:18:51 +01:00
Luis Ramos
405b317726
Merge ability and ability decorator
2020-09-17 14:18:45 +01:00
Luis Ramos
22eac6200c
Add needed fake ability
2020-09-17 14:10:37 +01:00
Luis Ramos
32649cb25a
Transpec ability_spec
2020-09-17 14:10:37 +01:00
Luis Ramos
895ab62ba9
Bring ability helpers from spree_core and fix ability_spec
2020-09-17 14:10:37 +01:00
Luis Ramos
051ee0fd14
Run rubocop -a
2020-09-17 14:10:37 +01:00
Luis Ramos
c00c03737e
Bring user and ability related files from spree_core
2020-09-17 14:10:37 +01:00
Luis Ramos
a16dc4d720
Move ability decorator specs to specific file
2020-09-17 14:10:36 +01:00
Luis Ramos
66587ccc00
Allow user to remove terms and conditions file
2020-08-31 17:40:34 +01:00
luisramos0
c59326743b
Remove sales total report
2019-12-13 16:44:46 +00:00
Kristina Lim
ecea0600b6
Remove feature flag for Enterprise Fee Summary
2019-05-29 02:50:41 +08:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
luisramos0
9cfba8ad19
Revert transpec in ability_spec.rb:461 so that spec is green again
2019-05-09 23:33:43 +01:00
luisramos0
04801e5c2e
Run transpec in spec/models
2019-05-09 22:25:29 +01:00
luisramos0
bc8bca074c
Switch object in the ability to access reports. This adapts to this change in Spree: 3685569db4
...
Adapt NavigationHelper to return the controller object for reports so that Reports tab works correctly.
2019-03-29 22:16:39 +00:00
luisramos0
86f9b3d663
Delete product_distributions: drop table and remove models, controllers and BO edit page
2019-03-13 11:47:50 +00:00
Kristina Lim
461b5725d1
Hide report link and resource from non-superadmins
2019-02-08 21:26:38 +00:00
Kristina Lim
cf7f8b887f
Add tests for permissions for variant overrides
2019-01-24 07:08:54 +11:00
Kristina Lim
9c3bb863da
Add endpoints for removing enterprise images
2018-09-04 01:32:39 +08:00
Frank West
8324b00999
Renames product bulk edit action to index
...
When a user hit cancel while editing a product it took them to the spree
products index page instead of the bulk edit page. The button was part
of a shared view for all resources so changing it's actions were not
readily available.
It was suggested that instead of carrying our own separate controller
action we could just override the index action of the products
controller with the bulk edit functionality instead. This has the
advantage of removing some overrides and allows us to not add
additional overrides in the future.
2018-06-19 17:51:23 +10:00
Pau Perez
f5a5d735fd
Auto correct Rubocop's Layout/EmptyLinesAroundModuleBody cop
2018-04-09 18:47:18 +02:00
Rob Harrington
59578a73af
Changing all references to 'be_true' and 'be_false' to 'be true' and 'be false'
...
See next commit for changes where this substitution was broken
2017-11-10 08:47:12 +11:00
Rob Harrington
c7ed27286a
Rubocop: Correct Lint/ParenthesesAsGroupedExpression offences
2017-06-23 17:02:20 +10:00
Rohan Mitchell
fdd6400cb8
Fix perms for API soft delete
2016-11-04 09:39:17 +11:00
Bing Xie
bc798504e0
Add new enterprise customers search API
2016-10-21 10:51:36 +11:00
Bing Xie
fd32152e88
Search customers in enterprises
2016-10-21 10:51:36 +11:00
Rob Harrington
94785d4157
Fixing authorization for VariantOverridesController#bulk_reset
2016-01-15 09:07:49 +11:00
Rob Harrington
92eb5ed367
Adding routes for a new admin account page for users to manage their billing preferences and access invoices
2015-09-17 22:38:10 +10:00
Rohan Mitchell
170799f65f
Add permission for hub enterprise users to use xero report #628
2015-08-07 13:37:37 +10:00
Rob Harrington
1b52564d58
Rerouting welcome page to be an enterprise action, updates to copy for package selection
2015-06-12 01:49:38 +08:00
Rob Harrington
439d122e93
Merge branch 'master' into customers
...
Conflicts:
app/assets/javascripts/admin/bulk_order_management.js.coffee
app/assets/javascripts/admin/bulk_product_update.js.coffee
app/assets/javascripts/admin/directives/line_item_upd_attr.js.coffee
app/views/spree/admin/orders/bulk_management.html.haml
db/schema.rb
spec/javascripts/unit/bulk_order_management_spec.js.coffee
2015-06-03 15:19:40 +08:00
Rohan Mitchell
ef064819f9
Add spec for order_cycle_management report access
2015-05-15 10:41:29 +10:00
Rob Harrington
2afd501af3
Wiring up update action for customers controller
2015-05-13 12:44:34 +10:00
Rob Harrington
37ff61d663
Adding basic routing to display customer index page
2015-05-13 12:44:32 +10:00
Rob Harrington
7448d41b27
Adding abilities for new for_order_cycle action
2015-04-06 10:23:39 +10:00
Rob Harrington
2310a6a7db
Splitting out order cycle abilities from general order management abilities
2015-03-27 16:07:37 +11:00
Rohan Mitchell
e38772ada0
Enterprise user can delete unreferenced order cycles
2015-03-16 12:41:06 +11:00
Matt-Yorkley
d194e74eda
Rohan's suggested changes
2015-03-05 10:43:51 +11:00
Rob Harrington
dde1a27d3a
Adding ability to search for known users
2015-02-12 11:34:57 +11:00
Rohan Mitchell
7ca9670073
Admin can access variant override only when it can add hub to order cycle and it can create variant overrides for the producer of the variant
2015-02-04 11:09:48 +11:00
Rohan Mitchell
fafbfe8735
Simplify, simplify
2015-01-30 15:56:10 +11:00
Rohan Mitchell
2d82f76a43
Fix changed var in ability spec
2015-01-15 13:43:39 +11:00
Rohan Mitchell
d5437e1508
edit_profile permission no longer shows links to manage shipping methods, payment methods and enterprise fees for an enterprise
2015-01-15 13:43:39 +11:00
Rohan Mitchell
90ad2e2b7d
Allow enterprises with 'edit profile' permission to edit enterprises
2015-01-15 13:43:39 +11:00
Rohan Mitchell
c38686c820
Create new variant overrides
2014-12-12 13:33:14 +11:00