@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.

Make "Locate File" trigger when data loads if the user typed/pasted real fast

Summary:
Fixes T12599. If you're faster than the network request, we don't actually resolve your query when the data arrives.

Instead, when the data shows up, run the query if the user has typed something.

Test Plan: Pasted a filename in real fast, got results. (Previously: no results until you press something else.)

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T12599

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

+13 -8
+8 -8
resources/celerity/map.php
··· 401 401 'rsrc/js/application/differential/behavior-populate.js' => '8694b1df', 402 402 'rsrc/js/application/differential/behavior-toggle-files.js' => 'ca3f91eb', 403 403 'rsrc/js/application/differential/behavior-user-select.js' => 'a8d8459d', 404 - 'rsrc/js/application/diffusion/DiffusionLocateFileSource.js' => 'b42eddc7', 404 + 'rsrc/js/application/diffusion/DiffusionLocateFileSource.js' => 'c93358e3', 405 405 'rsrc/js/application/diffusion/behavior-audit-preview.js' => 'd835b03a', 406 406 'rsrc/js/application/diffusion/behavior-commit-branches.js' => 'bdaf4d04', 407 407 'rsrc/js/application/diffusion/behavior-commit-graph.js' => '49ae8328', ··· 719 719 'javelin-behavior-workflow' => '0a3f3021', 720 720 'javelin-color' => '7e41274a', 721 721 'javelin-cookie' => '62dfea03', 722 - 'javelin-diffusion-locate-file-source' => 'b42eddc7', 722 + 'javelin-diffusion-locate-file-source' => 'c93358e3', 723 723 'javelin-dom' => '805b806a', 724 724 'javelin-dynval' => 'f6555212', 725 725 'javelin-event' => '2ee659ce', ··· 1878 1878 'b3e7d692' => array( 1879 1879 'javelin-install', 1880 1880 ), 1881 - 'b42eddc7' => array( 1882 - 'javelin-install', 1883 - 'javelin-dom', 1884 - 'javelin-typeahead-preloaded-source', 1885 - 'javelin-util', 1886 - ), 1887 1881 'b59e1e96' => array( 1888 1882 'javelin-behavior', 1889 1883 'javelin-stratcom', ··· 1996 1990 'javelin-reactor', 1997 1991 'javelin-reactornode', 1998 1992 'javelin-install', 1993 + 'javelin-util', 1994 + ), 1995 + 'c93358e3' => array( 1996 + 'javelin-install', 1997 + 'javelin-dom', 1998 + 'javelin-typeahead-preloaded-source', 1999 1999 'javelin-util', 2000 2000 ), 2001 2001 'c989ade3' => array(
+5
webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
··· 23 23 24 24 ondata: function(results) { 25 25 this.tree = results.tree; 26 + 27 + if (this.lastValue !== null) { 28 + this.matchResults(this.lastValue); 29 + } 30 + 26 31 this.setReady(true); 27 32 }, 28 33