Page MenuHomePhabricator

Migrate Maniphest task blockers to modern EdgeType classes
ClosedPublic

Authored by Krenair on Dec 28 2014, 3:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 4, 2:29 AM
Unknown Object (File)
Tue, Feb 4, 1:38 AM
Unknown Object (File)
Mon, Jan 27, 10:48 PM
Unknown Object (File)
Sat, Jan 25, 5:34 AM
Unknown Object (File)
Fri, Jan 24, 6:20 AM
Unknown Object (File)
Thu, Jan 23, 7:26 PM
Unknown Object (File)
Thu, Jan 23, 7:26 PM
Unknown Object (File)
Thu, Jan 23, 7:26 PM
Tokens
"Doubloon" token, awarded by epriestley.

Details

Summary

Prevents "edited tasks, added: 1; removed: 1"

Fixes T6757, using D9839 as an example

Test Plan

Added and removed blockers to/from tasks, saw the expected history entries.

Diff Detail

Repository
rP Phabricator
Branch
T6757
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3334
Build 3341: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

Krenair retitled this revision from to Migrate Maniphest task blockers to modern EdgeType classes.
Krenair updated this object.
Krenair edited the test plan for this revision. (Show Details)
Krenair added a reviewer: epriestley.
epriestley edited edge metadata.

Looks great, thanks!

This revision is now accepted and ready to land.Dec 28 2014, 2:10 PM
src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
199–200

Oh, one other minor thing -- this should be a shouldPreventCycles() implementation in the new EdgeType class. Otherwise, users can create T1 -> T2 -> T1, etc., which messes a few things up a bit. I'll just fix that in the pull.

src/applications/maniphest/edge/ManiphestTaskDependsOnTaskEdgeType.php
83

Oh, and in doing "edited blocking task(s)", these feed strings are slightly off.

The reason there are different "transaction" and "feed" strings is that the "transaction" strings are shown on the object, so the edited object is implicit (e.g., alincoln edited this object.). The "feed" strings are shown elsewhere (normally, in feed) so the edited object is not implicit and must be explicit (alincoln edited T123: foobar). If the object is excluded, the affected object isn't clear in the feed story:

Screen_Shot_2014-12-28_at_6.32.42_AM.png (189×623 px, 21 KB)

Specifically, the viewer can't tell which task relationships were edited for unless the object is included in the string.

This revision was automatically updated to reflect the committed changes.