Skip to content

Commit 151e8a3

Browse files
Merge pull request #10414 from nextcloud/feat/noid/27-dev-changes
feat(developer): Copy over changes for developers from GitHub issue
2 parents 0dbfed0 + a862fdf commit 151e8a3

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_27.rst

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,22 @@ Make sure your ``appinfo/info.xml`` allows for Nextcloud 27.
1616
.. code-block:: xml
1717
1818
<dependencies>
19-
<nextcloud min-version="23" max-version="27" />
19+
<nextcloud min-version="25" max-version="27" />
2020
</dependencies>
2121
2222
Front-end changes
2323
-----------------
2424

25-
Removed APIs
26-
^^^^^^^^^^^^
25+
Added APIs
26+
^^^^^^^^^^
27+
28+
* A new Files Router API allows you to control the files router service and update views, querys or param without page reload (`nextcloud/server#37824 <https://github.com/nextcloud/server/pull/37824>`_)
2729

28-
* tbd
30+
.. code-block:: js
31+
32+
// https://github.com/nextcloud/server/blob/master/apps/files/src/services/RouterService.ts
33+
OCP.Files.Router.goTo('/trashbin?dir=/Unsplash.d1680193199')
34+
OCP.Files.Router.goToRoute('fileslist', { view: 'files' }, { dir: '/Folders/Group folder' })
2935
3036
Back-end changes
3137
----------------
@@ -38,19 +44,36 @@ Nextcloud 27 no longer loads classes in the deprecated :ref:`PSR-0 naming standa
3844
Added APIs
3945
^^^^^^^^^^
4046

41-
* tbd
42-
43-
Changed APIs
44-
^^^^^^^^^^^^
47+
* ``\OCP\AppFramework\Utility\ITimeFactory`` is now a ``\PSR\Clock\ClockInterface`` following the `PSR-20 standard <https://www.php-fig.org/psr/psr-20/#21-clockinterface>`_. (`nextcloud/server#35872 <https://github.com/nextcloud/server/pull/35872>`_)
48+
* ``\OCP\Accounts\IAccountManager::PROPERTY_DISPLAYNAME_LEGACY`` was added to keep the provisioning API compatible. (`nextcloud/server#36665 <https://github.com/nextcloud/server/pull/36665>`_)
49+
* A new system config ``ratelimit.protection.enabled`` (boolean, default true) was added to allow developers to **disable** rate limiting. It is **not** recommended to disable this on a production/live system. (`nextcloud/server#37542 <https://github.com/nextcloud/server/pull/37542>`_)
50+
* A new OCP API under ``\OCP\SpeechToText`` was introduced to allow automatic transcription of media (`nextcloud/server#37674 <https://github.com/nextcloud/server/pull/37674>`_)
51+
* Added a new interface ``\OCP\BackgroundJob\IParallelAwareJob`` that ``\OCP\BackgroundJob\Job`` now implements. It can be used to allow specifying that multiple instances of a job should not be run at the same time. Also added ``\OCP\BackgroundJob\IJobList#hasReservedJob(?string $className = null)`` method to check the condition (`nextcloud/server#37835 <https://github.com/nextcloud/server/pull/37835>`_)
52+
* New property ``$actionLabel`` has been added to the ``\OCP\Files\Template\TemplateFileCreator`` class with a respective setter ``TemplateFileCreator::setActionLabel`` and getter ``TemplateFileCreator::getActionLabel``. (`nextcloud/server#37929 <https://github.com/nextcloud/server/pull/37929>`_ + `nextcloud/server#37955 <https://github.com/nextcloud/server/pull/37955>`_)
53+
* A new interface ``\OCP\Group\Backend\ISearchableGroupBackend`` was added for group backends supporting new method ``searchInGroup`` to search among a group users in an efficient way. (`nextcloud/server#32866 <https://github.com/nextcloud/server/pull/32866>`_)
4554

46-
* tbd
4755

4856
Deprecated APIs
4957
^^^^^^^^^^^^^^^
5058

51-
* tbd
59+
* ``\OCP\AppFramework\Utility\ITimeFactory::getTime()`` and ``\OCP\AppFramework\Utility\ITimeFactory::getDateTime()`` were deprecated, because the interface is now a ``\PSR\Clock\ClockInterface`` following the `PSR-20standard <https://www.php-fig.org/psr/psr-20/#21-clockinterface>`_. (`nextcloud/server#35872 <https://github.com/nextcloud/server/pull/35872>`_)
60+
* ``\OCP\GroupInterface::usersInGroup()`` is deprecated in favor of newly added ``\OCP\Group\Backend\ISearchableGroupBackend`` interface. (`nextcloud/server#32866 <https://github.com/nextcloud/server/pull/32866>`_)
5261

5362
Removed APIs
5463
^^^^^^^^^^^^
5564

56-
* tbd
65+
* Intermediate transition event classes ``\OCP\WorkflowEngine\IEntityCompat`` and ``\OCP\WorkflowEngine\IOperationCompat`` have been removed as advertised for 2023 (`nextcloud/server#37040 <https://github.com/nextcloud/server/pull/37040>`_)
66+
67+
68+
Behavioral changes
69+
^^^^^^^^^^^^^^^^^^
70+
71+
* ``\OCP\Files\Cache\CacheEntryRemovedEvent`` will now be dispatched for all files and folders inside the deleted node. (`nextcloud/server#34773 <https://github.com/nextcloud/server/pull/34773>`_)
72+
73+
Client APIs
74+
-----------
75+
76+
Changed APIs
77+
^^^^^^^^^^^^
78+
79+
* The OCS translation API was extended to return the ``from`` language attribute so in case no from was given, clients can afterwards show in the UI which language was detected and used for translating. (`nextcloud/server#38003 <https://github.com/nextcloud/server/pull/38003>`_)

0 commit comments

Comments
 (0)