1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 08:36:13 +01:00
phorge-phorge/webroot/rsrc/js/application/diffusion
epriestley 2a355d8548 Make Diffusion "Last Modified" rendering less fragile
Summary:
Ref T9524. Because fetching the last time files were modified in Diffusion can be slow, we bring it in over Ajax.

The logic to fetch and paint the table is kind of fragile because there are two different definitions of the columns right now and we break in a bad way if they differ.

In particular, calling `diffusion.updatecoverage` can populate a "lint commit" for a repository, which tries to generate lint information in one of the views (but not the other one).

In the longer run I think we're removing some of the concepts here and this rendering should be rebuilt to not have two separate column definitions, but just make it degrade gracefully for now since those are larger changes.

Test Plan:
Reproduced the issue in T9524 by calling `diffusion.updatecoverage` on a repostiory. Specifically, this has a side effect of creating a "lint commit" which triggers a "lint" column in this table, sort of.

Applied this patch, got a clean render.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9524

Differential Revision: https://secure.phabricator.com/D14243
2015-10-07 07:32:27 -07:00
..
behavior-audit-preview.js Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
behavior-commit-branches.js Various linter fixes. 2014-02-26 12:44:58 -08:00
behavior-commit-graph.js Make taller tables the default for AphrontTableView 2015-04-08 08:38:15 -07:00
behavior-jump-to.js Fix scrolling behavior in Diffusion 2015-01-29 10:20:35 -08:00
behavior-load-blame.js Load blame in Diffusion by AJAX 2013-03-06 07:44:45 -08:00
behavior-locate-file.js Add a SublimeText-style repository typeahead 2014-05-13 14:08:21 -07:00
behavior-pull-lastmodified.js Make Diffusion "Last Modified" rendering less fragile 2015-10-07 07:32:27 -07:00
DiffusionLocateFileSource.js Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00