internetee / auction_center

Estonian Internet Foundation's software for auctioning domain names
Other
6 stars 4 forks source link

Option to send more registration reminders #266

Closed vohmar closed 4 years ago

vohmar commented 5 years ago

As we still have many paid but not registered auction domains we would like to intensify the number of reminders sent to auction winners. Currently we have an option to send one reminder configurable days before registration deadline.

Add additional option to send the reminder every day after the first reminder until the domain is registered or deadline is reached.

vohmar commented 4 years ago

I am a bit confused. I see two new settings:

but there is already pre existing setting called

what is the difference in the new and pre-existing registration reminder setting? Descriptions are identical.

yulgolem commented 4 years ago

If remind_on_domain_registration_everyday is set to true, then the reminders are set to all results where registration due date is up to domain_registration_reminder_day ahead.

I might get rid of it and use one single domain_registration_reminder for both cases in no time.

yulgolem commented 4 years ago

Modified PR, set all everyday reminders to single domain_registration_daily_reminder setting - integer, zero or more. If zero, then reminders are only sent once, if more, then reminders are sent once as usual, then from the domain_registration_daily_reminder.days until registration_due_date.

vohmar commented 4 years ago
vohmar commented 4 years ago
yulgolem commented 4 years ago

Fixed estonian second sentence: image

Fixed english last day reminder: image

Fixed dates. Now letter should be sent either at domain_registration_reminder days, or from domain_registration_daily_reminder days until the registration_due_date.

Added tests for job not to run between domain_registration_reminder days and domain_registration_daily_reminder days, as well as after registration_due_date.

vohmar commented 4 years ago
yulgolem commented 4 years ago
  • now the initial / the first reminder is sent too soon - seems that it is sent right after the payment is made disregarding the domain_registration_reminder setting value.

Fixed premature reminder sending, added test.