You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppealRepository.eager_load_legacy_appeals_for_tasks loads information from VACOLS for all legacy appeals associated with a batch of tasks in a single request (really 4 requests, but it only executes that code path once for the entire batch instead of once for each legacy appeal). This dramatically reduces the load times of task queues because now we only make a single request to VACOLS instead of many. However, even if there are no LegacyAppeals associated with the set of tasks we pass to this function we still make a request to VACOLS. This PR exists to return early from the function in this case to save us even more time.
Acceptance criteria
Return early from AppealRepository.eager_load_legacy_appeals_for_tasks if there are no LegacyAppeals associated with the set of input tasks.
The text was updated successfully, but these errors were encountered:
AppealRepository.eager_load_legacy_appeals_for_tasks
loads information from VACOLS for all legacy appeals associated with a batch of tasks in a single request (really 4 requests, but it only executes that code path once for the entire batch instead of once for each legacy appeal). This dramatically reduces the load times of task queues because now we only make a single request to VACOLS instead of many. However, even if there are noLegacyAppeal
s associated with the set of tasks we pass to this function we still make a request to VACOLS. This PR exists to return early from the function in this case to save us even more time.Acceptance criteria
AppealRepository.eager_load_legacy_appeals_for_tasks
if there are noLegacyAppeal
s associated with the set of input tasks.The text was updated successfully, but these errors were encountered: