1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/nuance
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
..
application Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit Import raw GitHub event data into Nuance 2016-03-08 12:03:11 -08:00
contentsource Add a Nuance content source, and make use of it 2016-03-28 12:47:05 -07:00
controller Fix some more setIcon() issues 2016-08-31 10:00:03 -07:00
cursor Split the GitHub import cursor into separate repository and issues event importers 2016-03-09 09:27:19 -08:00
editor Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
github Extract GitHub actor IDs from GitHub events 2016-03-28 12:47:21 -07:00
item Bridge GitHub users into Phabricator and attribute actions to them 2016-03-28 13:10:32 -07:00
management Split the GitHub import cursor into separate repository and issues event importers 2016-03-09 09:27:19 -08:00
phid Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
query Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
source Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
storage Remove dedicated storage for NuanceRequestor 2016-03-29 08:53:35 -07:00
typeahead Add very basic routing to Nuance 2015-08-24 09:21:56 -07:00
worker Add an ItemCommand queue to Nuance 2016-03-22 15:08:23 -07:00