Page MenuHomePhabricator

Only link symbols if there might be any
ClosedPublic

Authored by avivey on May 20 2015, 6:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 10:04 AM
Unknown Object (File)
Thu, Dec 19, 9:36 AM
Unknown Object (File)
Thu, Dec 19, 7:13 AM
Unknown Object (File)
Sat, Dec 14, 1:14 PM
Unknown Object (File)
Fri, Dec 13, 8:51 PM
Unknown Object (File)
Fri, Dec 13, 8:52 AM
Unknown Object (File)
Sun, Dec 8, 1:51 AM
Unknown Object (File)
Fri, Dec 6, 12:30 PM

Details

Summary

fixes T8260. Only turn on symbol links if:

  • The repository has any configuration about symbols, or
  • There actually are symbols in the repository.
Test Plan

Look at revisions and files in various states of configurations and having symbols.

Diff Detail

Repository
rP Phabricator
Branch
arcpatch-D12946
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6165
Build 6186: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

avivey retitled this revision from to Only link symbols if there might be any.
avivey updated this object.
avivey edited the test plan for this revision. (Show Details)
avivey added a reviewer: epriestley.
src/applications/differential/controller/DifferentialRevisionViewController.php
309–317

I was somewhat surprised to learn that this doesn't do anything; Actual active code is in php DifferentialChangesetDetailView.

Without this section, symbols keep working even for code in comments.

epriestley edited edge metadata.

One stray var_dump().

src/applications/diffusion/controller/DiffusionBrowseFileController.php
279

When testing arrays for emptiness, prefer if ($x) over if (empty($x)) for consistency and simplicity.

286

Debugging var_dump().

This revision now requires changes to proceed.May 20 2015, 1:56 PM
avivey edited edge metadata.
avivey marked 2 inline comments as done.
  • s/empty($x)/$x
src/applications/diffusion/query/DiffusionSymbolQuery.php
133

Mind if I keep this empty(), to effectively cast this to boolean?

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 21 2015, 3:25 PM
This revision was automatically updated to reflect the committed changes.