Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin] Add Refunds and Returns section with correlated index pages #5539

Merged
merged 8 commits into from
Dec 6, 2023
Prev Previous commit
Fix order conflict in postgres specs for default scoped models
Resolved a `PG::InvalidColumnReference` error in postgres for 
controllers interfacing with models including the
`Spree::NamedType` concern.
This concern's default scope, which orders records by the
lowercased `name`, conflicted with `SELECT DISTINCT` queries.
  • Loading branch information
rainerdema committed Dec 6, 2023
commit b2d4a7cdc73c7aae2bf5da0ee357cdf4944b031b
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RefundReasonsController < SolidusAdmin::BaseController

def index
refund_reasons = apply_search_to(
Spree::RefundReason.order(id: :desc),
Spree::RefundReason.unscoped.order(id: :desc),
param: :q,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ReimbursementTypesController < SolidusAdmin::BaseController

def index
reimbursement_types = apply_search_to(
Spree::ReimbursementType.order(id: :desc),
Spree::ReimbursementType.unscoped.order(id: :desc),
param: :q,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ReturnReasonsController < SolidusAdmin::BaseController

def index
return_reasons = apply_search_to(
Spree::ReturnReason.order(id: :desc),
Spree::ReturnReason.unscoped.order(id: :desc),
param: :q,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class StoreCreditReasonsController < SolidusAdmin::BaseController

def index
store_credit_reasons = apply_search_to(
Spree::StoreCreditReason.order(id: :desc),
Spree::StoreCreditReason.unscoped.order(id: :desc),
param: :q,
)

Expand Down
Loading