Skip to content

Commit e8f1767

Browse files
committed
chore: only show deprecated API in one place
As noted here: #15067 (review) Deprecations should stay only in this location, they are only removed when removed from code. Until then "new deprecations" are just moved to "older deprecations" on branch-off. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent b96fa69 commit e8f1767

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

developer_manual/release_notes/deprecations.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@ New deprecations
2121
.. todo:: This page needs a section for every new deprecation.
2222

2323
- ``\OCP\Broadcast\Events\\IBroadcastEvent`` is now deprecated as it is unused.
24+
- ``\OCP\TaskProcessing\ISynchronousWatermarkingProvider`` is now deprecated. ``\OCP\TaskProcessing\ISynchronousOptionsAwareProvider`` should now be used.
2425

2526
Older deprecations
2627
------------------
2728

2829
You find all current deprecations in this section.
2930

3031
..
31-
This is where we will move the deprecations after the branch off. Entries will stay until actual removal.
32+
This is where we will move the deprecations from the "new deprecations" section after the branch off. Entries will stay until actual removal.
33+
34+
- Deprecated since Nextcloud 34
35+
36+
- ``\OCP\Util::setChannel`` is deprecated in favor of ``\OCP\ServerVersion::setChannel``.
37+
- ``\OCP\Util::linkToAbsolute`` is deprecated in favor of ``\OCP\IUrlGenerator::getAbsoluteUrl`` and ``\OCP\IUrlGenerator::linkTo``.
38+
- ``\OCP\Util::linkToRemove`` is deprecated in favor of ``\OCP\IUrlGenerator::linkToRemote``.
39+
- ``\OCP\Util::isPublicLinkPasswordRequired`` is deprecated in favor of ``\OCP\Share\IManager::shareApiLinkEnforcePassword``.
40+
- ``\OCP\Util::isDefaultExpireDateEnforced`` is deprecated in favor of ``\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced``.
3241

3342
Also see the older :ref:`Release Notes <previous-versions>` for deprecations.

developer_manual/release_notes/new.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Expensive repair steps are only executed when explicitly requested by the admini
3535

3636
See :ref:`migration-repair-steps` for details.
3737

38+
Task Processing
39+
---------------
40+
3841
Added APIs
3942
^^^^^^^^^^
4043

@@ -45,8 +48,3 @@ Changed APIs
4548

4649
- The ``\OCP\TaskProcessing\Task`` class now has ``getPreferStreaming`` and ``setPreferStreaming`` methods for indicating whether the provider should report the output progressively if it supports it.
4750
- The TaskProcessing OCS API now also accepts the ``preferStreaming`` flag when scheduling tasks.
48-
49-
Deprecated APIs
50-
^^^^^^^^^^^^^^^
51-
52-
- ``\OCP\TaskProcessing\ISynchronousWatermarkingProvider`` is now deprecated. ``\OCP\TaskProcessing\ISynchronousOptionsAwareProvider`` should now be used instead.

developer_manual/release_notes/previous/upgrade_to_34.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ Upgrade to Nextcloud 34
55
Deprecations
66
------------
77

8-
- ``\OCP\Util::setChannel`` is now deprecated and you need to use ``\OCP\ServerVersion::setChannel`` instead.
9-
- ``\OCP\Util::linkToAbsolute`` is now deprecated and you need to use ``\OCP\IUrlGenerator::getAbsoluteUrl`` and ``\OCP\IUrlGenerator::linkTo`` instead.
10-
- ``\OCP\Util::linkToRemove`` is now deprecated and you need to use ``\OCP\IUrlGenerator::linkToRemote`` instead.
11-
- ``\OCP\Util::isPublicLinkPasswordRequired`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkEnforcePassword`` instead.
12-
- ``\OCP\Util::isDefaultExpireDateEnforced`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced`` instead.
8+
All deprecations that were announced in the :ref:`Deprecated APIs <deprecated-apis>` section.
139

1410
Removed front-end APIs and libraries
1511
------------------------------------

0 commit comments

Comments
 (0)