Page MenuHomePhabricator

Migrate Pholio to Frankenstein transactions
ClosedPublic

Authored by amckinley on May 10 2017, 6:41 PM.
Tags
None
Referenced Files
F19303612: D17864.id42960.diff
Wed, Dec 24, 3:11 AM
F19203959: D17864.diff
Tue, Dec 16, 6:32 PM
F19183263: D17864.diff
Tue, Dec 16, 4:04 AM
F19038263: D17864.id42961.diff
Nov 26 2025, 3:48 AM
F18855885: D17864.id42961.diff
Nov 1 2025, 7:11 AM
F18819345: D17864.diff
Oct 22 2025, 5:48 AM
F18812748: D17864.id42959.diff
Oct 20 2025, 12:07 PM
F18809105: D17864.id.diff
Oct 19 2025, 11:12 AM
Subscribers
Tokens
"Pterodactyl" token, awarded by epriestley."Pirate Logo" token, awarded by chad.

Details

Summary

Begins the process of migrating Pholio to Modular Transactions by starting with the mock's description and changing the base class of PholioTransaction. Expect several more of these diffs to quickly follow. Also changes the icon for description changes to fa-pencil; previously it was check or ban, depending on the open/closed state. Looks like an accidental switch fallthrough.

Test Plan

made new mocks, edited their descriptions, observed same UI as previously

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
src/applications/pholio/storage/PholioTransaction.php
93–98

Yeah, fa-pencil looks like the intended icon.

src/applications/pholio/xaction/PholioTransactionType.php
9

key() technically returns internal array state:

<?php

$array = array(
  'a' => true,
  'z' => true,
);

var_dump(key($array));
next($array);
var_dump(key($array));
$ php -f test.php 
string(1) "a"
string(1) "z"

(I think until PHP7 foreach could interact with this, too.)

The chance that you'll ever get back a "funky" array is virtually nil, but you can use head_key() (or last_key()) from libphutil to avoid the risk.

This revision is now accepted and ready to land.May 10 2017, 7:10 PM
  • removing getImageForXaction until needed
This revision was automatically updated to reflect the committed changes.