Filipe
9e0aa1854f
Merge pull request #11159 from abdellani/remove-split-checkout-from-feature_toggle
...
Remove split checkout from feature toggle
2023-07-13 17:20:18 +01:00
Matt-Yorkley
42a3087cdb
Remove :available_on attribute from Product class
2023-07-06 14:36:35 +01:00
Mohamed ABDELLANI
a89451e667
remove splitcheckout from feature toggle list
2023-07-05 14:53:40 +01:00
Maikel
014fb69d4b
Merge pull request #10964 from macanudo527/fix_linelength_bundle1
...
Fix Layout/LineLength - Bundle 1
2023-06-26 12:10:39 +10:00
Maikel
e065910d2d
Merge pull request #10939 from Matt-Yorkley/master-variants
...
Remove master variants
2023-06-23 13:42:58 +10:00
Neal Chambers
1e4034534c
Fix Layout/LineLength
2023-06-23 09:08:04 +09:00
Mohamed ABDELLANI
d059680f4b
remove white label from feature toggle
2023-06-18 21:03:13 +02:00
Mohamed ABDELLANI
fff0b1e577
Update lib/open_food_network/feature_toggle.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2023-06-18 21:03:13 +02:00
Mohamed ABDELLANI
d86173c509
add feature toggle
...
seperate the invoice templates that rely on presenters from the old ones.
2023-06-18 21:03:13 +02:00
Matt-Yorkley
ae24b2d688
Update ScopeVariantsForSearch logic to match both product and variant SKUs
2023-06-16 21:26:28 +01:00
Matt-Yorkley
1daab8994d
Remove is_master and not_master scopes
2023-06-16 21:23:44 +01:00
Matt-Yorkley
3ef7d2c9ff
Remove master variant from product
2023-06-16 21:23:44 +01:00
Matt-Yorkley
a20277c3a7
Completely remove option_values and option_types from the codebase
2023-06-01 10:12:19 +01:00
Maikel
add725b6c0
Merge pull request #10861 from mkllnk/dfc-import
...
Update products with DFC Prototype
2023-06-01 08:48:39 +10:00
Maikel Linke
67c29dd38f
Activate DFC provider engine, remove feature toggle
2023-05-28 10:39:08 +02:00
David Cook
31fa9c2c04
Add admin_style_v3 feature toggle
2023-05-26 15:10:27 +10:00
Filipe
0d23b63bbd
Merge pull request #10779 from dacook/10634-remove-admin_style_v2
...
10634 Remove admin_style_v2 feature
2023-05-17 15:37:05 +01:00
Jean-Baptiste Bellet
aaa9bac4dd
Remove white_label feature toggle
...
White label is now activated for everyone.
+ add mock for `spec/controllers/spree/orders_controller_spec.rb`
2023-05-15 17:10:50 +02:00
David Cook
04a5c7452e
Remove admin_style_v2 description
...
Partially reverts 9a1b1498bf
2023-05-09 21:26:47 +10:00
Maikel Linke
b30e962cdd
Remove unknown (deleted) feature toggles at boot
2023-05-03 15:20:26 +10:00
Jean-Baptiste Bellet
4fa44e6c64
Put the white label behind a feature toggle white_label
...
+ update specs as well
+ for admin section also
2023-03-30 09:19:17 +11:00
Gaetan Craig-Riou
c7c19e47de
Add feature toggle description
2023-03-28 13:46:51 +11:00
Maikel Linke
fd68cbf56d
Remove on-the-fly adding of feature toggle entries
...
We now have a new source of truth. You shouldn't use a feature toggle
without adding it to OpenFoodNetwork::FeatureToggle first. All toggles
are added at boot time already.
2023-03-22 15:36:08 +11:00
Maikel Linke
9a1b1498bf
Add all feature toggles with descriptions at boot
...
So you can easily inspect and activate new features without trying to
use them first. It brings more visibility and will enable us to easily
remove retired features as well.
2023-03-22 15:36:08 +11:00
Maikel Linke
b5f43b3c1c
Rename method because it's not changing the input
...
A common Ruby convention is to to use the bang naming `!` to mark method
which change the given parameter instead of returning a copy.
2023-03-21 14:30:44 +11:00
Maikel Linke
fcc68a0a19
Return new filtered list instead of modifying
...
This makes a clear distinction between the unfiltered and filtered list.
There may also be some gotchas when modifying the array of an
ActiveRecord relation. It also allows us to write shorter code without
storing a separate variable.
2023-03-21 14:30:44 +11:00
Maikel Linke
eee5e8eee7
Remove unnecessary tag rule code
...
The applicator converts the input to an array, even `nil` becomes an
empty array. Iterating over an empty array doesn't do anything either,
the result is the same.
2023-03-21 14:30:44 +11:00
Jean-Baptiste Bellet
b2db63178f
Redirect /checkout/whatever to /checkout when split_checkout is activate
...
+ constraint the legacy checkout routes when `split_checkout` feature is disabled
+ add specs
2023-01-11 10:10:30 +00:00
Cillian O'Ruanaidh
4e6d64c0a1
Let people choose which payment methods are available to customers on order cycles
2022-10-21 17:21:31 +01:00
Maikel
058a45f4e5
Merge pull request #9442 from jibees/8904-display-fees-name-instead-of-type-on-invoices
...
Display fees name instead of type on invoices
2022-10-10 13:15:01 +11:00
Maikel Linke
bc26a3aa07
Add used feature toggles to appear in the admin UI
...
The admin UI shows only features which were added to the database. We
always had to look up a feature's name add it manually before we could
enable it. Now it will appear in the UI after some code asked if it was
enabled.
This only adds a database query once when the feature doesn't exist yet.
The `feature.exist?` call only performs an in-memory lookup in the
memoizer.
2022-10-08 16:23:17 +02:00
Jean-Baptiste Bellet
7b57f2358c
Create a new key instead of modifying the old one
...
it could lead to issues when key is not updated and we should avoid that kind of issue.
2022-10-08 10:00:57 +02:00
Jean-Baptiste Bellet
0cc8349c71
Use fee name for the adjustment label instead of type
...
+ update specs as well
2022-10-08 10:00:57 +02:00
Philipp Winkler
bf53a02270
Add api key toggle view checkbox
2022-08-07 09:48:49 +02:00
Jean-Baptiste Bellet
976e326bbd
Add method fees_name_by_type_for that returns fees name for a variant
2022-06-21 14:20:59 +02:00
Maikel Linke
727eef3c4f
Replace Paperclippable ContentConfig
...
The old Paperclip configuration was very clever and easy to use but it
was also a complicated implementation building on the complicated Spree
preference system.
I simplified this with Active Storage, storing simple references to blob
ids and default URLs as backup.
2022-06-01 17:16:54 +10:00
Sebastian Castro
caccbb698b
Reports Refactor 2: Fix linting
2022-05-12 16:54:13 +02:00
Sebastian Castro
5f78fdce8b
Reports Refactor 2: Move all code to lib/reporting
2022-05-12 16:54:13 +02:00
Sebastian Castro
2985d2af15
Report Refactor 1 Cleaning
...
clean no longer used methods
Remove no longer needed require
Delete files not used
Fix Linting
2022-05-12 16:54:13 +02:00
Sebastian Castro
e9513f6172
Report Refactor 1: Enterprise Fee Summary
...
Disable enterprise fee summary spec for now
Will need to write them again
2022-05-12 16:54:13 +02:00
Sebastian Castro
4a99a7d1de
Report Refactor 1: Xero Invoices
2022-05-12 16:54:13 +02:00
Sebastian Castro
41c11baa3f
Report Refactor 1: Users & Entreprises
2022-05-12 16:54:13 +02:00
Sebastian Castro
3d1b61ae6e
Report Refactor 1: Products & Inventory
2022-05-12 16:54:13 +02:00
Sebastian Castro
881a708ecf
Report Refactor 1: Payments
2022-05-12 16:54:13 +02:00
Sebastian Castro
9d943625a3
Report Refactor 1: Sales Tax
2022-05-12 16:54:13 +02:00
Sebastian Castro
e20c2e3ced
Report Refactor 1: Orders & Distributors
2022-05-12 16:54:13 +02:00
Sebastian Castro
01be6fb1f3
Report Refactor 1: Order Cycle Management
2022-05-12 16:54:13 +02:00
Sebastian Castro
1fee45035c
Report Refactor 1: Customers
2022-05-12 16:54:12 +02:00
Sebastian Castro
e55462d18b
Report Refactor 1: Orders & Fulfilment
2022-05-12 16:54:12 +02:00
GeorgeThoppil
898c470c00
Change enterprise visibility scope
2022-04-21 20:27:28 -04:00