Page MenuHomePhabricator

Removing a blocker while adding a blocker results in "edited tasks, added: 1; removed: 1"
Closed, ResolvedPublic

Description

... which isn't very useful. Downstream report of the same bug: https://phabricator.wikimedia.org/T78250
Example: https://phabricator.wikimedia.org/T911#836398

Event Timeline

Krenair raised the priority of this task from to Needs Triage.
Krenair updated the task description. (Show Details)
Krenair added a project: Maniphest.
Krenair added a subscriber: Krenair.
epriestley added a subscriber: epriestley.

To resolve this:

  • Convert TYPE_TASK_DEPENDS_ON_TASK and TYPE_TASK_DEPENDED_ON_BY_TASK to modern EdgeType classes (see D9839 for an example).
  • Provide appropriate get...String() implementations.
  • Implement English translations in PhabricatorBaseEnglishTranslation.

Not quite sure about my PhabricatorBaseEnglishTranslation changes, but uploading.

I think the changes are correct. A very slightly cleaner way to do it without the ambiguities might be to make the string "...edited blocking task(s)...", maybe I'll tweak that in the pull.

The "%d" -> "%s" change is because we're using PhutilNumber in EdgeType, which gives us locale-aware rendering (e.g., 1,234.56 vs 1.234,56).

I think the slightly adjusted version I landed fixes this, but yell if I missed anything. If there is anything off it should be an easy fix (tweak a string table) now that @Krenair did all the legwork.

Screen_Shot_2014-12-28_at_6.40.04_AM.png (178×552 px, 31 KB)

Screen_Shot_2014-12-28_at_6.40.17_AM.png (583×621 px, 67 KB)