Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Duplicated search results for orders with multiple jobs #1088

Open
annahornmark opened this issue Apr 21, 2017 · 1 comment
Open

Duplicated search results for orders with multiple jobs #1088

annahornmark opened this issue Apr 21, 2017 · 1 comment
Assignees

Comments

@annahornmark
Copy link
Contributor

No description provided.

@buren
Copy link
Member

buren commented May 22, 2017

We should add

    def apply_filtering(chain)
      @search = chain.ransack(params[:q] || {})
      @search.result(distinct: true)
    end

to app/admin/order.rb. At least thats what I've done for app/admin/job.rb:L251. The apply_filtering is something the rubygem active_admin calls and the #ransack is a method that is added by a rubygem called ransack that active_admin users under the hood. Should be fairly Google:able.

The URL for admin orders in dev is admin.lvh.me:3000/orders.

@buren buren assigned bex1 and unassigned buren May 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants