Page MenuHomePhabricator

Migrate Project names to modular transactions
ClosedPublic

Authored by amckinley on May 18 2017, 12:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 10:29 AM
Unknown Object (File)
Sat, Jan 11, 3:01 AM
Unknown Object (File)
Dec 24 2024, 7:12 AM
Unknown Object (File)
Dec 20 2024, 3:06 PM
Unknown Object (File)
Dec 14 2024, 1:43 AM
Unknown Object (File)
Dec 10 2024, 4:12 AM
Unknown Object (File)
Dec 6 2024, 9:49 PM
Unknown Object (File)
Nov 25 2024, 4:04 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.