Skip to content
Permalink
Browse files
[FLINK-22033] add docstring for rule classes
  • Loading branch information
knaufk committed Apr 16, 2021
1 parent a38d571 commit 77943a14746fbcdb8432863b07f0c8143d33f3fc
Showing 1 changed file with 12 additions and 0 deletions.
@@ -107,6 +107,12 @@ def run(self):


class Rule3(FlinkJiraRule):
"""
An unresolved Minor ticket without an update for {stale_minor.stale_days} is closed after a warning period of
{stale_minor.warning_days} with a comment that encourages users to watch, comment and simply reopen with a higher
priority if the problem insists.
"""

def __init__(self, jira_client, config, is_dry_run):
super().__init__(jira_client, config, is_dry_run)
self.stale_days = config["stale_minor"]["stale_days"].get()
@@ -181,6 +187,12 @@ def mark_stale_tickets_stale(self):


class Rule2(FlinkJiraRule):
"""
Assigned tickets without an update for {stale_assigned.stale_days} are unassigned after a warning period of
{stale_assigned.warning_days}. Before this happens the assignee is notified that this is about to happen and
asked for an update on the status of her contribution.
"""

def __init__(self, jira_client, config, is_dry_run):
super().__init__(jira_client, config, is_dry_run)
self.stale_days = config["stale_assigned"]["stale_days"].get()

0 comments on commit 77943a1

Please sign in to comment.