Page MenuHomePhabricator

Migrate Project parent and milestone to modular transactions
ClosedPublic

Authored by amckinley on May 23 2017, 12:11 AM.
Tags
None
Referenced Files
F13087542: D17999.diff
Thu, Apr 25, 1:00 AM
Unknown Object (File)
Mon, Apr 15, 9:33 PM
Unknown Object (File)
Wed, Apr 3, 2:22 PM
Unknown Object (File)
Mar 20 2024, 10:43 PM
Unknown Object (File)
Mar 7 2024, 11:12 AM
Unknown Object (File)
Mar 7 2024, 11:12 AM
Unknown Object (File)
Feb 29 2024, 9:41 AM
Unknown Object (File)
Feb 21 2024, 10:32 AM
Subscribers

Details

Test Plan

Unit tests pass. Went through the UI for creating new subprojects and milestones, but didn't setup some API calls to check that all the validation errors were still caught.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • dangling comment
src/applications/project/editor/PhabricatorProjectTransactionEditor.php
284

Typo!

src/applications/project/editor/PhabricatorProjectTransactionEditor.php
229

A wild continue!

Couple of tiny cleanups inline, nice catches.

src/applications/project/editor/PhabricatorProjectTransactionEditor.php
229

Haha, this was definitely not intended/correct.

284

🐼

src/applications/project/xaction/PhabricatorProjectMilestoneTransaction.php
23–25

In this case, since we've already survived validation, you can safely executeOne() and skip the head():

$project = ...->executeOne();

We can't do that during validation because excuteOne() throws on permission errors.

src/applications/project/xaction/PhabricatorProjectParentTransaction.php
23–25

(As above.)

This revision is now accepted and ready to land.May 23 2017, 6:00 PM
This revision was automatically updated to reflect the committed changes.