722
resetReapplyExcludeTypes map[enumspb.ResetReapplyExcludeType]struct{},
723
allowResetWithPendingChildren bool,
725
>
726
>
// TODO change this logic to fetching all workflow [baseWorkflow, currentWorkflow]
727
>
// from visibility for better coverage of events eligible for re-application.
728
>
729
>
lastVisitedRunID := baseRunID
730
>
if r.shouldExcludeAllReapplyEvents(resetReapplyExcludeTypes) {
731
// All subsequent events should be excluded from being re-applied. So, do nothing and return.
732
return lastVisitedRunID, nil