Skip to content

Commit

Permalink
break up values
Browse files Browse the repository at this point in the history
  • Loading branch information
ATBull81 committed Dec 16, 2024
1 parent 6dcbbd5 commit 61cbd14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/helpers/verification_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ def ridp_admin_actions(ridp_type, person)

def build_admin_actions_list(v_type, f_member)
if EnrollRegistry.feature_enabled?(:ai_an_self_attestation) && v_type.type_name == VerificationType::AMERICAN_INDIAN_STATUS
attested_only = ["Verify", "Reject", "Call HUB", "Extend"]
::VlpDocument::ADMIN_VERIFICATION_ACTIONS - attested_only
::VlpDocument::VIEW_HISTORY
elsif f_member.consumer_role.aasm_state == 'unverified' || VerificationType::ADMIN_CALL_HUB_VERIFICATION_TYPES.exclude?(v_type.type_name)
::VlpDocument::ADMIN_VERIFICATION_ACTIONS.reject{ |el| el == 'Call HUB' }
elsif verification_type_status(v_type, f_member) == 'outstanding'
Expand Down
10 changes: 8 additions & 2 deletions app/models/vlp_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class VlpDocument < Document
#list of the documents user can provide to verify Immigration status
VLP_DOCUMENT_KINDS = EnrollRegistry[:vlp_documents].setting(:vlp_document_kind_options).item

VLP_DOCUMENTS_VERIF_STATUS = ['not submitted', 'downloaded', 'verified', 'rejected']
VLP_DOCUMENTS_VERIF_STATUS = ['not submitted', 'downloaded', 'verified', 'rejected']

COUNTRIES_LIST = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda",
"Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh",
Expand Down Expand Up @@ -60,8 +60,14 @@ class VlpDocument < Document
"United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Viet nam",
"Yemen", "Zambia","Zimbabwe"].freeze

VERIFY = 'Verify'.freeze
REJECT = 'Reject'.freeze
VIEW_HISTORY = 'View History'.freeze
CALL_HUB = 'Call HUB'.freeze
EXTEND = 'Extend'.freeze

# admin action list for verification process, dropdown for each verification type
ADMIN_VERIFICATION_ACTIONS = ["Verify", "Reject", "View History", "Call HUB", "Extend"]
ADMIN_VERIFICATION_ACTIONS = [VERIFY, REJECT, VIEW_HISTORY, CALL_HUB, EXTEND].freeze

# reasons admin can provide when verifying type
VERIFICATION_REASONS = EnrollRegistry[:verification_reasons].item
Expand Down

0 comments on commit 61cbd14

Please sign in to comment.