Closed leikkisa closed 1 year ago
I asked Dwight about submitting ESCP tickets for these, since the guidance to use YourIT was misguided (BGS is not in YourIT). I am waiting to hear back, but that's the next course of action.
Code for handling a single stuck EP:
review=epe.source
veteran = epe.veteran
ep2e = epe.send(:end_product_to_establish)
epmf = EndProductModifierFinder.new(epe, veteran)
taken = epmf.send(:taken_modifiers)
# Mark place to start retrying
epmf.instance_variable_set(:@taken_modifiers, taken.push(ep2e.modifier))
ep2e.modifier = epmf.find
epe.instance_variable_set(:@end_product_to_establish, ep2e)
epe.establish!
review.end_product_establishments.each{|epe| epe.reload}
DecisionReviewProcessJob.new.perform(review)
This is an open ticket for handling data cleanup until a longer term solution is identified. This ticket is specifically for handling when this error is caused by:
Two other reasons we might see this error:
PIF cleanup request
To see reviews that we've gotten errors for, and whether a cleanup has been requested for them, please see this PIF cleanup spreadsheet
Technical notes
Code for establishing with another modifier. If this does not succeed for any modifiers, the problem may be due to invalid POA data (see other ticket referenced above).