1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +01:00
phorge-phorge/src/applications/nuance/controller
epriestley 29957d196b Fix some more setIcon() issues
Summary: Fixes T11569. This fixes a known bad `setIcon()`. I also looked for more calls to `setIcon()` without success, and stubbed `setIcon()` so we're in good shape even if more exist.

Test Plan:
  - Grepped for `setIcon(` and manually inspect all 1,004 callsites to look for calls on `PHUIObjectItemView` objects.
  - Grepped for "high risk" callsites (`setIcon` in file after `PHUIObjectItemView`) and re-examined them. I identified these files with this command:

```
git ls-tree -r --name-only HEAD | xargs pcregrep -i -M -H -c --files-with-matches -o 'PHUIObjectItemView(.|\n)*setIcon'
```

There might be some more clever way to do that.
  - Since this only identified the callsites I already knew about and I don't have a ton of confidence that I didn't miss any, I put a stub in place that logs a deprecation warning. I'll file a followup to go clean these up in a month or so if the logs are clean.
  - Loaded Nuance, saw it work but warn.
  - Changed Nuance to use `setStatusIcon()`, loaded Nuance, no more fatal.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11569

Differential Revision: https://secure.phabricator.com/D16477
2016-08-31 10:00:03 -07:00
..
NuanceConsoleController.php Fix some more setIcon() issues 2016-08-31 10:00:03 -07:00
NuanceController.php Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
NuanceItemActionController.php Allow Nuance item types to provide actions for items 2016-03-22 15:07:11 -07:00
NuanceItemController.php Import raw GitHub event data into Nuance 2016-03-08 12:03:11 -08:00
NuanceItemListController.php Import raw GitHub event data into Nuance 2016-03-08 12:03:11 -08:00
NuanceItemManageController.php Normalize casing on property boxes 2016-04-06 15:33:15 -07:00
NuanceItemViewController.php Allow Nuance items to provide curtain panels, link to imported tasks, parse comments 2016-03-28 11:18:53 -07:00
NuanceQueueController.php Use modern SearchEngine construction in Nuance 2016-03-07 15:50:28 -08:00
NuanceQueueEditController.php Move Nuance Queues to EditEngine 2016-03-07 17:02:05 -08:00
NuanceQueueListController.php Convert Nuance Sources to EditEngine 2016-03-08 10:29:48 -08:00
NuanceQueueViewController.php Convert Nuance sources and queues to two-column + curtain 2016-03-07 16:34:57 -08:00
NuanceSourceActionController.php Convert Nuance Sources to EditEngine 2016-03-08 10:29:48 -08:00
NuanceSourceController.php Use modern SearchEngine construction in Nuance 2016-03-07 15:50:28 -08:00
NuanceSourceEditController.php Convert Nuance Sources to EditEngine 2016-03-08 10:29:48 -08:00
NuanceSourceListController.php Convert Nuance Sources to EditEngine 2016-03-08 10:29:48 -08:00
NuanceSourceViewController.php Normalize casing on property boxes 2016-04-06 15:33:15 -07:00