Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13959445
D16263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16263.diff
View Options
diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
--- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
@@ -1160,7 +1160,11 @@
$saved_query->setParameter($field->getKey(), $value);
}
- $this->saveQuery($saved_query);
+ // NOTE: Currently, when running an ad-hoc query we never persist it into
+ // a saved query. We might want to add an option to do this in the future
+ // (for example, to enable a CLI-to-Web workflow where user can view more
+ // details about results by following a link), but have no use cases for
+ // it today. If we do identify a use case, we could save the query here.
$query = $this->buildQueryFromSavedQuery($saved_query);
$pager = $this->newPagerForSavedQuery($saved_query);
@@ -1234,6 +1238,7 @@
'data' => $data,
'maps' => $method->getQueryMaps($query),
'query' => array(
+ // This may be `null` if we have not saved the query.
'queryKey' => $saved_query->getQueryKey(),
),
'cursor' => array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 15 2024, 7:27 PM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714069
Default Alt Text
D16263.diff (1 KB)
Attached To
Mode
D16263: By default, do not save queries when executing Conduit "*.search" calls
Attached
Detach File
Event Timeline
Log In to Comment