Skip to content

Commit becff64

Browse files
authored
Merge pull request #12513 from nextcloud/enh/document-new-userbackend-interface
feat: Document add of ILimitAwareCountUsersBackend and deprecation of…
2 parents 243148f + f7188de commit becff64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ Added APIs
126126
which need to check HTTP calls to the the server itself.
127127
- Any implementation of ``OCP\Files\Mount\IMountPoint`` can additionally implement ``OCP\Files\Mount\IShareOwnerlessMount`` which allows everyone with share permission to edit and delete any share on the files and directories below the mountpoint.
128128
- ``OCP\Navigation\Events\LoadAdditionalEntriesEvent`` is dispatched when the navigation manager needs to know about its entries, apart of standard app entries that are loaded automatically. This is only relevant for apps that provide extraneous entries.
129+
- ``OCP\User\Backend\ILimitAwareCountUsersBackend`` was added as a replacement for ``ICountUsersBackend``. It allows to specify a limit to the user count to avoid counting all users when the caller do not need it. You can safely ignore the limit if it does not make sense for your usecase.
129130

130131
Changed APIs
131132
^^^^^^^^^^^^
@@ -159,6 +160,7 @@ Deprecated APIs
159160
Instead use the Nextcloud provided :ref:`WebDAV endpoint<webdav-download-folders>`.
160161
- ``OCP\DB\QueryBuilder\IQueryBuilder::PARAM_DATE`` is deprecated in favor of ``PARAM_DATETIME_MUTABLE``
161162
to make clear that this type also includes the time part of a date time instance.
163+
- ``OCP\User\Backend\ICountUsersBackend`` was deprecated. Please implement and use ``OCP\User\Backend\ILimitAwareCountUsersBackend`` instead.
162164

163165
Removed APIs
164166
^^^^^^^^^^^^

0 commit comments

Comments
 (0)