Skip to content

Commit

Permalink
add comment for future engs
Browse files Browse the repository at this point in the history
  • Loading branch information
sethdarragile6 committed Apr 29, 2024
1 parent 1d008e8 commit d868b06
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,17 @@ def approximate_date(date)

def translate_disabilities
rated_disabilities = input_form['ratedDisabilities'].deep_dup.presence || []

# New primary disabilities need to be added first before handling secondary
# disabilities because a new secondary disability can be added to a new
# primary disability
primary_disabilities = translate_new_primary_disabilities(rated_disabilities)

# NOTE: currently (4/29/24), the submit transformer in vets-website removes
# the structured relationship between a secondary disability and its primary.
# These always come in with cause="NEW", and their relationship reduced to
# having "Secondary to..." in the primaryDescription. Consequentially, the
# call to translate_new_secondary_disabilities() is always short-circuited
disabilities = translate_new_secondary_disabilities(primary_disabilities)

# Strip out disabilities with ActionType eq to `None` that do not have any
Expand Down

0 comments on commit d868b06

Please sign in to comment.