(request, domain, checkpoint_id)
return HttpResponseRedirect(
        reverse('domain_report_dispatcher', args=[domain, IncrementalExportLogView.slug])
    )
Resend all cases after a particular checkpoint
Resend all cases after a particular checkpoint
Resend all cases after a particular checkpoint
def incremental_export_reset_checkpoint(request, domain, checkpoint_id):
    """Resend all cases after a particular checkpoint
    """
    try:
        checkpoint = IncrementalExportCheckpoint.objects.get(
            id=checkpoint_id,
            incremental_export__domain=domain
        )
    except IncrementalExportCheckpoint.DoesNotExist:
        return HttpResponseNotFound()

    incremental_export = checkpoint.incremental_export
    date = checkpoint.last_doc_date

    new_checkpoint = generate_and_send_incremental_export(incremental_export, date)
    doc_count = new_checkpoint.doc_count if new_checkpoint else 0
    messages.success(
        request, _(
            f"{doc_count} cases modified after {date.strftime('%Y-%m-%d %H:%M:%S')} have been resent"
        )
    )

    return HttpResponseRedirect(
        reverse('domain_report_dispatcher', args=[domain, IncrementalExportLogView.slug])
    )
def incremental_export_reset_checkpoint ( request , domain , checkpoint_id ) : try : checkpoint = IncrementalExportCheckpoint . objects . get ( id = checkpoint_id , incremental_export__domain = domain ) except IncrementalExportCheckpoint . DoesNotExist : return HttpResponseNotFound ( ) incremental_export = checkpoint . incremental_export date = checkpoint . last_doc_date new_checkpoint = generate_and_send_incremental_export ( incremental_export , date ) doc_count = new_checkpoint . doc_count if new_checkpoint else 0 messages . success ( request , _ ( f"{doc_count} cases modified after {date.strftime('%Y-%m-%d %H:%M:%S')} have been resent" ) ) return HttpResponseRedirect ( reverse ( 'domain_report_dispatcher' , args = [ domain , IncrementalExportLogView . slug ] ) )