[DO NOT MERGE] APPEALS-28923 - Rails 6.0.Z - Raise on deprecation warnings in test env #4770
Annotations
10 errors and 2 warnings
spec/models/tasks/task_shared_examples.rb#L68
TaskSorter.sorted_tasks when there are tasks and we specify a column to sort by when sorting by Appeal Type column behaves like sort by Appeal Type column sorts by AOD status, case type, and docket number
Failure/Error:
expected_order = CachedAppeal.order(
"is_aod desc, CASE WHEN case_type = 'Court Remand' THEN 0 ELSE 1 END, docket_number asc"
)
ActiveSupport::DeprecationException:
DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "is_aod desc, CASE WHEN case_type = 'Court Remand' THEN 0 ELSE 1 END, docket_number asc". Non-attribute arguments will be disallowed in Rails 6.1. This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql(). (called from block (2 levels) in <top (required)> at /__w/caseflow/caseflow/spec/models/tasks/task_shared_examples.rb:71)
Shared Example Group: "sort by Appeal Type column" called from ./spec/models/task_sorter_spec.rb:303
|
spec/feature/intake/appeal/edit_spec.rb#L252
Appeal Edit issues with legacy appeals with legacy_opt_in_approved adding issues
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/intake/appeal/edit_spec.rb#L319
Appeal Edit issues with legacy appeals with legacy opt in not approved adding issues
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L75
Establish Claim - ARC Dispatch As a manager View quotas and update employee count
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L124
Establish Claim - ARC Dispatch As a manager Edit individual user quotas
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L171
Establish Claim - ARC Dispatch As a manager Editing won't work if there's only one user
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L211
Establish Claim - ARC Dispatch As a manager View unprepared tasks page
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L238
Establish Claim - ARC Dispatch As a manager View canceled EPs page
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L260
Establish Claim - ARC Dispatch As a manager View oldest unassigned tasks page
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
spec/feature/dispatch/establish_claim_spec.rb#L297
Establish Claim - ARC Dispatch As a caseworker Assign the correct new task to myself
Failure/Error:
issues_result.to_hash.reduce({}) do |memo, result|
issue_key = result["isskey"].to_s
memo[issue_key] = (memo[issue_key] || []) << result
memo
end
ActiveSupport::DeprecationException:
DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. (called from descriptions at /__w/caseflow/caseflow/app/models/vacols/case_issue.rb:106)
|
|
|
The logs for this run have expired and are no longer available.
Loading