Maikel
e9c7e1778c
Merge pull request #12782 from mkllnk/reports
...
Add fallback report loading in case websockets fail
2024-08-23 09:23:42 +10:00
wandji20
4d222c61c6
Improve readability of order_cycle_set process method
2024-08-22 22:17:12 +01:00
wandji20
d599cf77a2
Fix failing specs
2024-08-22 22:17:12 +01:00
Maikel Linke
d354317c73
Replace cable_ready report loading w/ Turbo stream
...
I'm adding TurboPower for the scroll_into_view action. It adds all the
nice CableReady actions to Turbo Streams.
Note that I omitted `block: "start"` because that option is the default
in Javascript. And the generic `action` method doesn't support
parameters like this anyway. I'll work on that in the next commit.
I also re-introduced a race condition by rendering the "loading"
indicator after triggering the report rendering job. I'm planning to
resolve that later.
2024-08-16 14:37:57 +10:00
Maikel Linke
c31416c536
Separate showing and rendering report
2024-08-16 14:37:57 +10:00
Konrad
1a72b5b227
Merge pull request #12563 from abdulazizali77/bugfix/11326-incoming-exchange-per-item-calculator
...
Display only per_item fees for oc incoming exchange #11326
2024-08-02 03:11:27 +02:00
Joseph Johansen
5086f2d8b5
Fix rubocop Style/Send group
2024-07-23 14:18:26 +01:00
Gaetan Craig-Riou
29aa3a8059
Remove useless code
2024-07-12 10:34:42 +10:00
Abdul Aziz Ali
718e6765e1
Enterprise fee controller: Add all fees scenario #11326
2024-07-10 19:42:47 +08:00
David Cook
ca612282f9
Use Rails tmp dir for product imports again
...
In https://github.com/openfoodfoundation/openfoodnetwork/pull/3435 , it was switched to the system tmp dir because it conventiently provided a method to generate a unique filename. However it didn't handle the case where the system provided a symlink (macOS).
I could have fixed that, but surely it's safer to use the Rails tmp directory.
So I changed back to that, using a tip from https://stackoverflow.com/questions/13787746/creating-a-thread-safe-temporary-file-name to generate a unique name. Perhaps we could use a larger string (eg uuid) or append a timestamp too, but I don't know that it's necessary. Instead, we can just check that the dir didn't exist first (as mentioned in the PR). Let's do that..
2024-07-09 15:47:54 +10:00
David Cook
cc1fa7f563
Always avoid error on redirect_to
2024-07-09 13:57:06 +10:00
Gaetan Craig-Riou
04fb49bc25
Fix admin variant overrides controller specs
2024-07-03 10:17:49 +10:00
Gaetan Craig-Riou
b5e76e1dab
Fix subscriptions controller specs
2024-07-03 10:17:49 +10:00
Gaetan Craig-Riou
2952ebb05c
Fix admin report controller spec
2024-07-03 10:17:49 +10:00
Gaetan Craig-Riou
b13a1e8843
Fix order cycle controller spec
2024-07-03 10:17:49 +10:00
Gaetan Craig-Riou
1b7a5fdb2c
Fix inventory items controller
2024-07-03 10:17:49 +10:00
Gaetan Craig-Riou
765655ae25
Fix bulk line items controller specs
2024-07-03 10:17:49 +10:00
Abdul Aziz Ali
9d12e55bd7
Add enterprise fees controller spec #11326
2024-06-26 06:36:57 +08:00
Ahmed Ejaz
ff10a36e4a
12346: refactor bulk_line_items_controller spec
2024-06-24 14:25:34 +05:00
Ahmed Ejaz
afd09091a2
12346 - fix broken specs
2024-06-22 02:11:39 +05:00
Ahmed Ejaz
98e0b0e703
12346 - fix rubocop rails/pluck errors
2024-06-22 01:45:58 +05:00
David Cook
89cedc4287
Submit and render with Turbo Stream
2024-06-12 14:49:59 +10:00
David Cook
68da9c9e04
Add form to save column preferences
2024-06-12 14:49:53 +10:00
Maikel Linke
6317fe1b71
Disable RSpec monkey patching
2024-05-09 12:24:41 +10:00
filipefurtad0
33889f1255
Deletes connected account, after spec
...
Re-records cassettes
2024-03-29 19:02:45 +00:00
filipefurtad0
1fd4c83cf1
Replaces fake with real client_it
...
Replaces stubs on Stripe Account Controller
2024-03-27 11:28:30 +00:00
Feruz Oripov
9d919938f3
Group Order && OrderCycle related services and specs
2024-03-16 19:07:08 +05:00
Maikel Linke
bd6b0ddbf3
Enforce RSpec expect(..).not_to over to_not
2024-03-07 16:57:54 +11:00
Gaetan Craig-Riou
9ab775c774
Merge pull request #12221 from mkllnk/rspec-sql
...
Use new rspec-sql gem
2024-03-04 11:37:38 +11:00
Maikel Linke
60b86e1d64
Replace custom query counter with new gem rspec-sql
2024-03-01 11:44:25 +11:00
Feruz Oripov
81f40a99d9
Update CustomersWithBalanceQuery
2024-02-26 23:25:33 +05:00
David Cook
2107aeded1
Un-safely autocorrect RSpec/ExpectChange
2024-02-23 12:17:09 +11:00
Konrad
dc4b6519dd
Merge pull request #11885 from dacook/flash-messages
...
Fix mapping of flash messages on order cycle pages
2023-12-06 18:03:57 +01:00
Gaetan Craig-Riou
55d64e1768
Fix rubocop warning
2023-12-04 10:36:53 +11:00
David Cook
a2b8fb5105
Show success messages as.. success.
2023-12-01 16:59:23 +11:00
Maikel Linke
bbe37e1392
Update ReportsController for background reports
...
As it turns out, the background reports were missing a small feature to
store user preferences. Yay specs!
2023-12-01 15:21:42 +11:00
Neal Chambers
0663f04535
Remove Simple References to Bogus Gateway
2023-11-07 11:19:26 +09:00
Jean-Baptiste Bellet
82ccdcca70
Customers report has only one report: Customers
...
No more `addresses` report
+ Fix pre-existing rubocop issues
+ Create method to simplify and remove CyclomaticComplexity error
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
5edc8d8ce1
Delete Mailing List report
2023-09-22 16:44:33 +01:00
Neal Chambers
fe88a88206
Fix Style/HashSyntax
2023-09-22 09:08:50 +09:00
Konrad
a55797d727
Merge pull request #11510 from rioug/11421-deactivate-voucher
...
[Vouchers] add activate/deactivate feature
2023-09-21 15:03:47 +02:00
David Cook
fb93aeb195
Optimise spec
2023-09-19 13:39:36 +10:00
Neal Chambers
42a6a02353
Fix Style/HashSyntax
2023-09-19 08:25:56 +09:00
Gaetan Craig-Riou
e44a0092ea
Fix edge case when trying to deactivate the only availabe voucher
...
Plus spec
2023-09-11 12:00:48 +02:00
Gaetan Craig-Riou
d1b5dcab88
Add ability to activate deactivate a voucher
...
Plus controller specs
2023-09-05 15:48:59 +02:00
Gaetan Craig-Riou
79f4caaee2
Clean up spec
2023-09-05 15:48:30 +02:00
Maikel
2b18effe6d
Merge pull request #11322 from macanudo527/fix_remaining_line_length
...
Fix remaining Layout/LineLength Rubocop Errors
2023-08-04 09:34:00 +10:00
Neal Chambers
a4f270bdec
Fix Layout/LineLength
2023-08-03 09:49:47 +09:00
Matt-Yorkley
b2a7a931f3
Update tax_category tests
2023-07-31 09:23:20 +10:00
Jean-Baptiste Bellet
5a0d4d2a93
Set visible to only_through_links on enterprise registration
2023-07-25 10:57:26 +02:00