Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3: [ART] Fix ARP engine's
bin/rails
(#19996)
* (fix) Remove NOT NULL constraint from encrypted_kms_key in ar_power_of_attorney_requests_resolutions and ar_power_of_attorney_forms * (fix) Update schema.rb to reflect removal of NOT NULL constraint from encrypted_kms_key * (fix) Remove mock encrypted_kms_keys from power_of_attorney_form and power_of_attorney_request_resolution factories * Add PowerOfAttorneyRequestSerializer and accompanying spec - Implement PowerOfAttorneyRequestSerializer to handle resolution attributes: - Includes `id`, `type`, `created_at`, `reason`, and conditional `creator_id` - Ensure safe handling of nil values with safe navigation (`&.`) and `try` - Add RSpec tests to validate: - Resolution serialization for decisions, expirations, and declinations - Handling of `reason` and `creator_id` conditionally - Nil resolution scenarios * Add serializer for PowerOfAttorneyRequest with controller and tests - Implement `PowerOfAttorneyRequestSerializer` to standardize JSON:API output - Add request specs for controller endpoints (`index` and `show`) - Add serializer specs to ensure proper formatting of resolution details - Normalize response keys for consistency in test expectations * (feat): Add serializers for PowerOfAttorneyRequest and Resolution with specs - Implement `PowerOfAttorneyRequestSerializer` to handle serialization of power of attorney requests, including nested resolution data. - Implement `PowerOfAttorneyRequestResolutionSerializer` to serialize resolution details, accommodating various resolution subtypes. - Add comprehensive specs for both serializers to ensure accurate and dynamic handling of attributes. - Adjust model factories accordingly * (fix) Refactor AR PowerOfAttorneyRequestController includes for improved query performance - Updated `includes` to reference `resolving` instead of just `resolution` - Added a limit of 100 records in the `index` action to optimize data retrieval * [ART-98710] Spike ARP POA request list and show endpoints * [ART-98710] Inline compound POA request response document * [ART] POA requests: define POA form schema * [ART] (fix) Minor rubocop issue: trailing whitespace * [ART] Fix ARP engine's `bin/rails` * ART temporarily ignore columns * [ART] Temporarily skip ARP POA request request specs * [ART] (Fix) rubocop issues * (fix) minor rubocop issue --------- Co-authored-by: OJ Bucao <[email protected]> Co-authored-by: OJ Bucao <[email protected]>
- Loading branch information