Skip to content

Commit f5ad328

Browse files
committed
feat: add note about new OCP \OCP\Search\IExternalProvider interface
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
1 parent 680bc7b commit f5ad328

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_32.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Added APIs
5151
- New method ``\OCP\Files\Template\BeforeGetTemplatesEvent::shouldGetFields`` to get the event's ``withFields`` property, which should determine whether or not to perform template field extraction on the returned templates.
5252
- New interface ``\OCP\OCM\ICapabilityAwareOCMProvider`` to extend the OCM provider with 1.1 and 1.2 extensions of the Open Cloud Mesh Discovery API
5353
- New task processing task type ``OCP\TaskProcessing\AnalyzeImages`` to ask questions about images.
54+
- New interface ``\OCP\Search\IExternalProvider`` allows extending the search provider with an explicit flag to indicate that the search is performed on external (3rd-party) resources. This is used in Unified Search to disable searches through these by default (via a toggle switch).
5455

5556
Changed APIs
5657
^^^^^^^^^^^^

developer_manual/digging_deeper/search.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ This interface allows to supports other filtering types.
228228

229229
``getCustomFilters`` allows to declare specific filters. In current state, the specific filters will only be available in the API.
230230

231+
External search provider
232+
------------------------
233+
234+
Since Nextcloud 32, to improve privacy, you can extend your provider with the ``\OCP\Search\IExternalProvider`` interface and implement the ``isExternalProvider()`` method to indicate that the search is performed on external (3rd-party) resources.
235+
In the Unified Search UI, searching through these providers is disabled by default (via toggle switch).
236+
237+
231238
Provider registration
232239
---------------------
233240

0 commit comments

Comments
 (0)