Page MenuHomePhabricator

Migrate Project names to modular transactions
ClosedPublic

Authored by amckinley on May 18 2017, 12:01 AM.
Tags
None
Referenced Files
F13153194: D17947.diff
Sun, May 5, 1:15 AM
Unknown Object (File)
Fri, May 3, 3:57 AM
Unknown Object (File)
Mon, Apr 29, 4:07 PM
Unknown Object (File)
Wed, Apr 24, 11:54 PM
Unknown Object (File)
Thu, Apr 11, 8:11 AM
Unknown Object (File)
Fri, Apr 5, 7:23 PM
Unknown Object (File)
Apr 1 2024, 7:10 AM
Unknown Object (File)
Mar 12 2024, 8:13 PM
Subscribers

Details

Summary

Also changes access modifiers on PhabricatorProjectTransactionEditor and sets up storage for applyExternalEffects.

Test Plan

Created new projects, attempted to create without name, with too long of a name, and with a name that conflicts with other projects and observed expected errors.

Diff Detail

Repository
rP Phabricator
Branch
T12673 (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 17079
Build 22840: Run Core Tests
Build 22839: arc lint + arc unit

Event Timeline

This all looks good to me.

src/applications/project/xaction/PhabricatorProjectNameTransaction.php
20

In theory, you could also $this->generateOldValue($object) to avoid needing to provide $storage, but I think your fix here is actually cleaner.

This revision is now accepted and ready to land.May 18 2017, 12:06 AM
This revision was automatically updated to reflect the committed changes.