Ref T9360. This makes these transactional.
Details
- Reviewers
epriestley - Maniphest Tasks
- T9360: Unbeta Phame
- Commits
- rPf26374241ab1: Make Phame Header and Profile Image Transactional
Set new header, delete header. Set new profile image, reset profile image.
Diff Detail
- Repository
- rP Phabricator
- Branch
- phame-4 (branched from master)
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 12888 Build 16437: Run Core Tests Build 16436: arc lint + arc unit
Event Timeline
Minor nitpick that doesn't really matter: ideally, you should let ApplicationTransactionEditor handle the $file->attachToObject(...) call, by implementing extractFilePHIDsFromCustomTransaction().
However, this won't change anything and it's an easier fix when this moves to ModularTransactions so it's 100% fine to just leave it as-is for now.
src/applications/phame/storage/PhameBlogTransaction.php | ||
---|---|---|
186 | Should these be renderHandleLink()? |
src/applications/phame/storage/PhameBlogTransaction.php | ||
---|---|---|
186 | I'm breaking something, can't figure it out.
|
Oh, you need to implement getRequiredHandlePHIDs(). You can look at, e..g, ManiphestTaskTransaction for an example.