Page MenuHomePhabricator

Split "Edit Blocking Tasks" into "Edit Parent Tasks" and "Edit Subtasks"
ClosedPublic

Authored by epriestley on Jun 22 2016, 5:36 PM.
Tags
None
Referenced Files
F13092859: D16166.diff
Thu, Apr 25, 5:57 AM
F13085333: D16166.diff
Wed, Apr 24, 11:47 PM
Unknown Object (File)
Fri, Apr 19, 4:57 PM
Unknown Object (File)
Wed, Apr 17, 10:25 AM
Unknown Object (File)
Wed, Apr 17, 10:19 AM
Unknown Object (File)
Tue, Apr 9, 12:08 PM
Unknown Object (File)
Sun, Apr 7, 1:19 PM
Unknown Object (File)
Tue, Apr 2, 9:17 PM
Subscribers
None
Tokens
"Like" token, awarded by Luke081515.2.

Details

Summary

Ref T11179. This splits "Edit Blocking Tasks" into two options now that we have more room ("Edit Parent Tasks", "Edit Subtasks").

This also renames "Blocking" tasks to "Subtasks", and "Blocked" tasks to "Parent" tasks. My goals here are:

  • Make the relationship direction more clear: it's more clear which way is up with "parent" and "subtask" at a glance than with "blocking" and "blocked" or "dependent" and "dependency".
  • Align language with "Create Subtask".
  • To some small degree, use more flexible/general-purpose language, although I haven't seen any real confusion here.

Fixes T6815. I think I narrowed this down to two issues:

  • Just throwing a bare exeception (we now return a dialog explicitly).
  • Not killing open transactions when the cyclec check fails (we now kill them).
Test Plan
  • Edited parent tasks.
  • Edited subtasks.
  • Tried to introduce graph cycles, got a nice error dialog.

Screen Shot 2016-06-22 at 10.25.06 AM.png (267×369 px, 23 KB)

Screen Shot 2016-06-22 at 10.35.10 AM.png (202×578 px, 19 KB)

Diff Detail

Repository
rP Phabricator
Branch
relation5
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12765
Build 16248: Run Core Tests
Build 16247: arc lint + arc unit

Unit TestsFailed

TimeTest
19 msPhabricatorSpacesTestCase::Unknown Unit Message ("")
EXCEPTION (Exception): Too many calls to saveTransaction() or killTransaction()! #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/aphront/storage/connection/AphrontDatabaseConnection.php(168): AphrontDatabaseTransactionState->decreaseDepth() #1 /core/data/drydock/workingcopy-74/repo/phabricator/src/infrastructure/storage/lisk/LiskDAO.php(1610): AphrontDatabaseConnection->killTransaction()
0 msPhabricatorSpacesTestCase::Unknown Unit Message ("")
EXCEPTION (Exception): Process exited with an open transaction! The transaction will be implicitly rolled back. Calls to openTransaction() must always be paired with a call to saveTransaction() or killTransaction(). #0 /core/data/drydock/workingcopy-74/repo/phabricator/src/infrastructure/storage/lisk/LiskDAO.php(0): AphrontDatabaseTransactionState->__destruct() #1 /core/data/drydock/workingcopy-74/repo/phabricator/src/infrastructure/storage/lisk/LiskDAO.php(1594): LiskDAO::closeAllConnections()
0 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
4 assertions passed.
View Full Test Results (2 Failed · 326 Passed)

Event Timeline

epriestley retitled this revision from to Split "Edit Blocking Tasks" into "Edit Parent Tasks" and "Edit Subtasks".
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Those tests are likely me, let me look at 'em.

(I don't love these icons but didn't immediately see anything better.)

  • Fix tests by moving an existing transaction kill up a level.

I think I got all the "blocking / blocked" language except Maniphest search filters, but those have some outstanding bugs (T8126, some others?) so I figured I'd wait until I resolve those to sort them out.

chad edited edge metadata.
This revision is now accepted and ready to land.Jun 22 2016, 6:10 PM
This revision was automatically updated to reflect the committed changes.