Skip to content

Expiration warning reminders are sent for dead documents #787

Description

@ietf-svn-bot

owner:olau@iola.dk resolution_fixed type_defect | by henrik@levkowetz.com


Expiration warning reminders are sent for dead documents ... and shouldn't.

It seems the following code in ietf/idrfc/expire.py could just check for
..., states__slug="watching" instead of ..., states__order__gte=42.

def expirable_documents():
    d = Document.objects.filter(states__type="draft", states__slug="active").exclude(tags="rfc-rev")
    # we need to get those that either don't have a state or have a
    # state >= 42 (AD watching), unfortunately that doesn't appear to
    # be possible to get to work directly in Django 1.1
    return itertools.chain(d.exclude(states__type="draft-iesg").distinct(), d.filter(states__type="draft-iesg", states__order__gte=42).distinct())


Issue migrated from trac:787 at 2022-03-04 02:00:09 +0000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions