From 9a15129b402fd7a15e81df3b5fe6fdf4a68d1ae0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 13 Aug 2018 11:35:02 -0700 Subject: [PATCH] Remove 750ms timeout on owners path validation Summary: Ref T13164. See PHI748. Path validation has a 750ms timeout which blames to rP5038ab850c, in 2011. Production path validation is sometimes taking more than 750ms, particularly on the initial page load where we may validate many paths simultaneously. I have no idea why we have this timeout, and it isn't consistent with how we perform other AJAX requests. Just remove it. Test Plan: - Reproduced issue in production, saw all validation calls failing at 750ms. Actual underlying calls succeed, they just take more than 750ms to resolve. - Loaded path validator locally, got green checkmark. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13164 Differential Revision: https://secure.phabricator.com/D19575 --- resources/celerity/map.php | 20 +++++++++---------- .../js/application/herald/PathTypeahead.js | 2 -- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 12d47cd5f9..2b81560e43 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -393,7 +393,7 @@ return array( 'rsrc/js/application/files/behavior-launch-icon-composer.js' => '48086888', 'rsrc/js/application/harbormaster/behavior-harbormaster-log.js' => '549459b8', 'rsrc/js/application/herald/HeraldRuleEditor.js' => 'dca75c0e', - 'rsrc/js/application/herald/PathTypeahead.js' => '662e9cea', + 'rsrc/js/application/herald/PathTypeahead.js' => '6d8c7912', 'rsrc/js/application/herald/herald-rule-editor.js' => '7ebaeed3', 'rsrc/js/application/maniphest/behavior-batch-selector.js' => 'ad54037e', 'rsrc/js/application/maniphest/behavior-line-chart.js' => 'e4232876', @@ -739,7 +739,7 @@ return array( 'owners-path-editor' => 'c96502cf', 'owners-path-editor-css' => '9c136c29', 'paste-css' => '9fcc9773', - 'path-typeahead' => '662e9cea', + 'path-typeahead' => '6d8c7912', 'people-picture-menu-item-css' => 'a06f7f34', 'people-profile-css' => '4df76faf', 'phabricator-action-list-view-css' => '0bcd9a45', @@ -1353,14 +1353,6 @@ return array( 'javelin-workflow', 'javelin-dom', ), - '662e9cea' => array( - 'javelin-install', - 'javelin-typeahead', - 'javelin-dom', - 'javelin-request', - 'javelin-typeahead-ondemand-source', - 'javelin-util', - ), 66888767 => array( 'javelin-behavior', 'javelin-stratcom', @@ -1436,6 +1428,14 @@ return array( 'javelin-typeahead', 'javelin-uri', ), + '6d8c7912' => array( + 'javelin-install', + 'javelin-typeahead', + 'javelin-dom', + 'javelin-request', + 'javelin-typeahead-ondemand-source', + 'javelin-util', + ), '70baed2f' => array( 'javelin-install', 'javelin-dom', diff --git a/webroot/rsrc/js/application/herald/PathTypeahead.js b/webroot/rsrc/js/application/herald/PathTypeahead.js index 0ce9823d13..eed6e62b62 100644 --- a/webroot/rsrc/js/application/herald/PathTypeahead.js +++ b/webroot/rsrc/js/application/herald/PathTypeahead.js @@ -208,8 +208,6 @@ JX.install('PathTypeahead', { this._validationInflight = validation_request; JX.DOM.setContent(error_display, JX.$H(this._icons.test)); - - validation_request.setTimeout(750); validation_request.send(); } }