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

APPEALS-50679 | Reassign Cases to Camo Change History #23134

Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
eece0e2
Start feature work tracking PR with a TODO comment
Jul 15, 2024
66256b3
Remove TODO comment for CodeClimate
Jul 18, 2024
5d88c65
Merge branch 'master' into feature/APPEALS-41559
roberttravispierce Jul 18, 2024
f6f8c74
SeanC/APPEALS-42315 | Create separate Remand table, model and seed da…
seancva Jul 19, 2024
d62b322
Merge branch 'master' into feature/APPEALS-41559
roberttravispierce Jul 29, 2024
7940354
TYLERB/APPEALS-42455: Display new and migrated Remands in Decision Re…
TylerBroyles Jul 29, 2024
01bf664
JHoang/APPEALS-42318 (#22270)
jonathanh-va Jul 31, 2024
a2b8934
Merge branch 'master' into feature/APPEALS-41559
brandondorner Jul 31, 2024
60274ac
APPEALS-42458 (#22365)
csheepy Aug 8, 2024
c2d73f5
TYLERB/APPEALS-44922: Update Generate task report page UI to include …
TylerBroyles Aug 9, 2024
da11e1c
SeanC/APPEALS-42317 | Migrate existing Supplemental Claim Remands to …
seancva Aug 9, 2024
3f727d4
J hoang/appeals 44940 (#22428)
jonathanh-va Aug 15, 2024
99bd221
Initial commit for the brakeman sql injection warning fixes. (#22598)
TylerBroyles Aug 26, 2024
6e7712f
Fix merge conflicts with master
roberttravispierce Aug 29, 2024
509be31
Updated the business line reporter class to properly display Remands …
TylerBroyles Aug 30, 2024
443c9e9
Fix conflict with master db/schema.rb
roberttravispierce Sep 12, 2024
2cd6e15
Fixed a bug where the frontend would error due to calling .toLowerCas…
TylerBroyles Sep 12, 2024
28cc173
Updated the remand migration files to work with the rails 6 upgrade a…
TylerBroyles Sep 13, 2024
ffb747c
added fix for failing test in decision_reviews_controller_spec (#22829)
seancva Sep 13, 2024
3235c2d
Fix merge conflicts between feature/APPEALS-41559 and master
roberttravispierce Sep 16, 2024
daeb17d
Merge branch 'master' into feature/APPEALS-41559
roberttravispierce Sep 20, 2024
59828bf
Merge branch 'main' into feature/APPEALS-41559
roberttravispierce Sep 26, 2024
8fd0182
Merge branch 'release/FY24Q4.6.1' into feature/APPEALS-41559-release3
roberttravispierce Oct 1, 2024
0a2c88a
Al/APPEALS-45335 (#22228)
almorbah Jul 25, 2024
e1fb336
adding logic to bring in issue-modification request and updating the …
pamatyatake2 Aug 13, 2024
5cf877c
Al/APPEALS-45334 Individual change history table which includes Reass…
almorbah Aug 28, 2024
8f25c9c
TYLERB/APPEALS-57367: change-history-updates (#22479)
TylerBroyles Sep 10, 2024
0ba1a7d
TYLERB/APPEALS-58656: Change History CSV and Version Parsing fix (#22…
TylerBroyles Sep 20, 2024
10bc535
TYLERB/CHANGE-HISTORY-YAML-QUOTE-FIX (#22910)
TylerBroyles Sep 23, 2024
61db485
Merge remote-tracking branch 'origin/feature/APPEALS-41559-release3' …
brandondorner Oct 1, 2024
d17f3b9
Resolve test issue from merge conflict
brandondorner Oct 8, 2024
5849cfd
Merge remote-tracking branch 'origin/release/FY24Q4.6.2' into feature…
brandondorner Oct 8, 2024
0125dfa
Remove migration from merge conflict with Remands
brandondorner Oct 8, 2024
9790e97
Remove obsolete test cases
brandondorner Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
337 changes: 262 additions & 75 deletions app/models/organizations/business_line.rb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,27 @@ class ChangeHistoryEventSerializer
withdrawalRequestDate: object.withdrawal_request_date
}
end

attribute :modificationRequestDetails do |object|
{
requestType: object.request_type,
benefitType: object.benefit_type,
newIssueType: object.new_issue_type,
newIssueDescription: object.new_issue_description,
newDecisionDate: object.new_decision_date,
modificationRequestReason: object.modification_request_reason,
issueModificationRequestWithdrawalDate: object.issue_modification_request_withdrawal_date,
removeOriginalIssue: object.remove_original_issue,
issueModificationRequestStatus: object.issue_modification_request_status,
requestor: object.requestor,
decider: object.decider,
decidedAtDate: object.decided_at_date,
decisionReason: object.decision_reason,
previousIssueType: object.previous_issue_type,
previousIssueDescription: object.previous_issue_description,
previousDecisionDate: object.previous_decision_date,
previousModificationRequestReason: object.previous_modification_request_reason,
previousWithdrawalDate: object.previous_withdrawal_date
}
end
end
16 changes: 14 additions & 2 deletions app/services/claim_change_history/change_history_filter_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def parse_filters

private

# rubocop:disable Metrics/MethodLength
def events_filter_helper
event_mapping = {
"added_decision_date" => :added_decision_date,
Expand All @@ -34,21 +35,32 @@ def events_filter_helper
"claim_closed" => [:completed, :cancelled],
"claim_status_incomplete" => :incomplete,
"claim_status_inprogress" => :in_progress,
"claim_status_pending" => :pending,
"completed_disposition" => :completed_disposition,
"removed_issue" => :removed_issue,
"withdrew_issue" => :withdrew_issue,
"claim_cancelled" => :cancelled
"claim_cancelled" => :cancelled,
"requested_issue_modification" => :modification,
"requested_issue_addition" => :addition,
"requested_issue_removal" => :removal,
"requested_issue_withdrawal" => :withdrawal,
"approval_of_request" => :request_approved,
"rejection_of_request" => :request_denied,
"cancellation_of_request" => :request_cancelled,
"edit_of_request" => :request_edited
}

filter_params[:events]&.values&.map { |event_type| event_mapping[event_type] }&.flatten
end
# rubocop:enable Metrics/MethodLength

def task_status_filter_helper
status_mapping = {
"incomplete" => "on_hold",
"in_progress" => %w[assigned in_progress],
"completed" => "completed",
"cancelled" => "cancelled"
"cancelled" => "cancelled",
"pending" => "pending"
}

filter_params[:statuses]&.values&.map { |task_status| status_mapping[task_status] }&.flatten
Expand Down
7 changes: 6 additions & 1 deletion app/services/claim_change_history/change_history_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ class ChangeHistoryReporter
Edit\ Action
Issue\ Type
Issue\ Description
Prior\ Decision\ Date
Decision\ Date
New\ Issue\ Type
New\ Issue\ Description
New\ Decision\ Date
Request\ Reason
Reason\ for\ Rejection
Disposition
Disposition\ Description
Disposition\ Date
Expand Down
Loading
Loading