@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create new paths in Differential

Summary: It is used by 'Pending Differential Revisions'.

Test Plan: Created a new file, `arc diff`, looked at this path in Diffusion, saw Pending Differential Revisions.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3991

vrana 03aca35c 3732f147

+4 -10
+4 -10
src/applications/differential/editor/DifferentialRevisionEditor.php
··· 807 807 } 808 808 $all_paths = array_keys($all_paths); 809 809 810 - $path_map = id(new DiffusionPathIDQuery($all_paths))->loadPathIDs(); 810 + $path_ids = 811 + PhabricatorRepositoryCommitChangeParserWorker::lookupOrCreatePaths( 812 + $all_paths); 811 813 812 814 $table = new DifferentialAffectedPath(); 813 815 $conn_w = $table->establishConnection('w'); 814 816 815 817 $sql = array(); 816 - foreach ($all_paths as $path) { 817 - $path_id = idx($path_map, $path); 818 - if (!$path_id) { 819 - // Don't bother creating these, it probably means we're either adding 820 - // a file (in which case having this row is irrelevant since Diffusion 821 - // won't be querying for it) or something is misconfigured (in which 822 - // case we'd just be writing garbage). 823 - continue; 824 - } 818 + foreach ($path_ids as $path_id) { 825 819 $sql[] = qsprintf( 826 820 $conn_w, 827 821 '(%d, %d, %d, %d)',