Repository: mozilla/pontoon

Issue:
Rename "Deadline"
As part of https://github.com/mozilla/pontoon/pull/1565, we wrote that "Deadline sounds permanent, threatening, and ugly."

Let's replace the word with something else.

Maybe "Due date"?
Rename "Deadline"
As part of https://github.com/mozilla/pontoon/pull/1565, we wrote that "Deadline sounds permanent, threatening, and ugly."

Let's replace the word with something else.

Maybe "Due date"?


Discussion:
What about `Target date`?
I'm all for "target date"
I also liked "milestone" because it did convey something that was ongoing in time.
While thinking about #2094, I also started to consider the project-due notifications. If we were to go with a similar logic here:
1. The second two-days-before notification could update or remove the preceding seven-days-before notification.
2. Notifications for past due/target dates could be removed or updated to say something like "Firefox was due on 2022-02-22".

As a possibly-related thought, should the timestamp of the notification be the current one, or the actual (future) due date?
What about `Target date`?
I'm all for "target date"
I also liked "milestone" because it did convey something that was ongoing in time.
While thinking about #2094, I also started to consider the project-due notifications. If we were to go with a similar logic here:
1. The second two-days-before notification could update or remove the preceding seven-days-before notification.
2. Notifications for past due/target dates could be removed or updated to say something like "Firefox was due on 2022-02-22".

As a possibly-related thought, should the timestamp of the notification be the current one, or the actual (future) due date?

Resolving patch:
diff --git a/pontoon/projects/management/commands/send_deadline_notifications.py b/pontoon/projects/management/commands/send_deadline_notifications.py
--- a/pontoon/projects/management/commands/send_deadline_notifications.py
+++ b/pontoon/projects/management/commands/send_deadline_notifications.py
@@ -8,12 +8,12 @@
 
 
 class Command(BaseCommand):
-    help = "Notify contributors about the approaching project deadline"
+    help = "Notify contributors about the approaching project target date"
 
     def handle(self, *args, **options):
         """
-        This command sends deadline reminders to contributors of projects that
-        are due in 7 days. If 2 days before the deadline project still isn't
+        This command sends target date reminders to contributors of projects that
+        are due in 7 days. If 2 days before the target date project still isn't
         complete for the contributor's locale, notifications are sent again.
 
         The command is designed to run daily.
@@ -26,7 +26,9 @@ def handle(self, *args, **options):
             else:
                 continue
 
-            self.stdout.write(f"Sending deadline notifications for project {project}.")
+            self.stdout.write(
+                f"Sending target date notifications for project {project}."
+            )
 
             is_project_public = project.visibility == Project.Visibility.PUBLIC
             verb = f"due in {days_left} days"
@@ -48,4 +50,4 @@ def handle(self, *args, **options):
                 if is_project_public or contributor.is_superuser:
                     notify.send(project, recipient=contributor, verb=verb)
 
-            self.stdout.write(f"Deadline notifications for project {project} sent.")
+            self.stdout.write(f"Target date notifications for project {project} sent.")


Test patch: