-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Filtered reports generation #5593
Filtered reports generation #5593
Conversation
Expose methods in court report context to make unit testing easier. Write additional unit tests. Remove old tests. Remove redundant tests, some behavior is already tested by the Dates object.
e2af233
to
943a49f
Compare
Add generate docx modal with date pickers to filter dates of case contacts to include in the generated report. Modify current tests to open the modal before attempting to click within it. Allow range filtering of contacts in case report
943a49f
to
52fc2e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor - I want to look at this more deeply when I have time. @FireLemons do you have time to review?
On the case show page it should autofill the start date of the date range with the most recent court date. This most closely mirrors existing behavior.
bedc63b
to
b449a47
Compare
@@ -158,6 +158,12 @@ def most_recent_past_court_date | |||
court_dates.where("date < ?", Date.today).order(:date).last | |||
end | |||
|
|||
def formatted_latest_court_date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has test?
@@ -41,6 +41,58 @@ | |||
end | |||
end | |||
|
|||
describe "Report Generation", js: true do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAY test
@@ -204,6 +171,7 @@ | |||
end | |||
end | |||
|
|||
# TODO: make this a request spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
changing reports generation makes me very nervous but I think this is reasonable |
screenshots are good... let's do it |
Issue #5579
Blocked by #5590
Fixes #3243 (i think? i just randomly found this issue)
To close issue still need to implement adding court topics, etc to reports themselves.
Reworks report generation page to use a modal and allow selection of contacts into report by date range.
New generate page with new button:
New modal with generation options:
Modal on both generation pages: