action #106907
Updated by tinita almost 3 years ago
## Motivation
Currently the latest comment is read, and a reminder is sent if it's at least 14 days old. This can become annoying so we can hold off some comments
## Acceptance criteria
* **AC1:** Reminder comments are sent no sooner than double the previous interval (between the last two comments)
* **AC2:** The setting is configurable
## Suggestions
* Use exponential backoff, see https://en.wikipedia.org/wiki/Exponential_backoff
* Read all the comments (we basically already do that)
* Parse timestamp (we already do that) and calculate time difference
* If (time - time_last) > 2 * max((time_last - time_second_to_last // 0), initial_time_interval) then add reminder
* In reminder comment add a text like "Expect the next reminder at the earliest $time_next" with $time_next being current time + 2 * current difference used
## Out of scope
* Optional: Detect if the comments are openqa-review reminder comments