Page MenuHomePhabricator

Due Date stamp rendering requires "deadline" task subtype; does not show for other task subtypes though Due Date field is filled
Open, LowPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • T279593 uses Form 3 (which can be revealed by editing the task, clicking "Configure Form" and choosing, "Edit Form Configuration")
  • The Due Date field is checked, with a date assigned
  • As far as I can tell, the affected task is Form 3, but most Deadline tasks (those with Due Date) are Form 54. I wonder if Form 3 did not originally have Due Date and the Form configuration was edited after this task was created.

What happens?:
As you can see on these screenshots, the first task does not get a stamp while the second does, despite both having a Due Date field filled (the second screenshot is the first task being edited, to show the Due Date field).

image.png (442×682 px, 155 KB)

image.png (1×1 px, 382 KB)

What should have happened instead?:

  • The stamp should appear on board views (the task is, as of this writing, only tagged on private boards, but the task is public and can be tagged onto other boards for testing)

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

  • Firefox 101.0, Chrome 102.0.5005.61

Event Timeline

Found the code in https://phabricator.wikimedia.org/source/phab-extensions/browse/wmf%252Fstable/src/customfields/DeadlineEditEngineSubtype.php .

Looking at this custom code, the stamp rendering relies on the task subtype being "deadline".
(I don't know why it was implemented like and I don't like this - a bug report should have a bug subtype and not a deadline subtype, as I wrote in T335395).

Data agrees:

mysql:phstats@m3-slave.eqiad.wmnet [phabricator_maniphest]> SELECT id, subtype FROM maniphest_task WHERE (id = 279593 OR id = 298661);
+--------+----------+
| id     | subtype  |
+--------+----------+
| 279593 | default  |
| 298661 | deadline |
+--------+----------+
2 rows in set (0.001 sec)
Aklapper renamed this task from Due Date stamp doesn't show on a Phab task even though the field is filled to Due Date stamp rendering requires "deadline" task subtype; does not show for other task subtypes though Due Date field is filled.Jun 9 2023, 2:41 PM