code: protected List<Long> overrideObsoleteUpdateActions(final Collection<Long> targetsIds) {
  
          // Figure out if there are potential target/action combinations that
          // need to be considered for cancellation
          final List<JpaAction> activeActions = actionRepository
                  .findByActiveAndTargetIdInAndActionStatusNotEqualToAndDistributionSetNotRequiredMigrationStep(
                          targetsIds, Action.Status.CANCELING);
  
          return activeActions.stream().map(action -> {
              action.setStatus(Status.CANCELING);
  
              // document that the status has been retrieved
              actionStatusRepository.save(new JpaActionStatus(action, Status.CANCELING, System.currentTimeMillis(),
                      RepositoryConstants.SERVER_MESSAGE_PREFIX + "cancel obsolete action due to new update"));
              actionRepository.save(action);
  
              cancelAssignDistributionSetEvent(action.getTarget(), action.getId());
  
              return action.getTarget().getId();
          }).collect(Collectors.toList());
  
      }
docs: Cancels {@link Action}s that are no longer necessary and sends
  cancellations to the controller.
  
  @param targetsIds
  to override {@link Action}s