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

Add missing filters to litigations #228

Merged
merged 6 commits into from
Jan 15, 2020

Conversation

aabdaab
Copy link
Contributor

@aabdaab aabdaab commented Jan 10, 2020

  • Add more filters toggle button to the litigation cases search index
  • New filters: filter by jurisdiction, party_type and side types (types and names) from LitigationSide

8DB23F99-4E20-428C-88A4-71E18BC9DA37

image

Screenshot 2020-01-14 at 14 05 16

@aabdaab aabdaab requested review from tsubik and simaob January 10, 2020 15:21
@aabdaab aabdaab added the WIP label Jan 10, 2020
@aabdaab
Copy link
Contributor Author

aabdaab commented Jan 10, 2020

actually, gonna mark it as WIP, I just noticed they added more filters to the spreadsheet

@aabdaab aabdaab removed the WIP label Jan 14, 2020
@aabdaab
Copy link
Contributor Author

aabdaab commented Jan 14, 2020

ready to review ☝️

Copy link
Contributor

@simaob simaob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looking good! =) Only comment is to sort the entities in the filters, so that they are alphabetical. Then it's good to ship

@aabdaab
Copy link
Contributor Author

aabdaab commented Jan 15, 2020

I added the sorting, gonna merge it now.

@aabdaab aabdaab merged commit 331987e into develop Jan 15, 2020
@@ -74,11 +78,132 @@ def filter_by_to_status
scope.joins(:events).where(events: {id: event_ids, event_type: params[:status]}).distinct
end

# rubocop:disable Metrics/CyclomaticComplexity
def filter_by_litigation_sides
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crap we don't have any tests for queries? This seems complicated now :/

@tsubik tsubik deleted the feature/add-missing-filters-to-litigations branch January 16, 2020 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants