-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(developermanual): move new and deprecated APIs to dedicated pages #14183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ChristophWurst
wants to merge
1
commit into
master
Choose a base branch
from
feat/developer/new-deprecations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| .. _database: | ||
|
|
||
| =============== | ||
| Database access | ||
| =============== | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| .. _deprecated-apis: | ||
|
|
||
| ============ | ||
| Deprecations | ||
| ============ | ||
|
|
||
| In order to improve our platform we are phasing out some APIs. Deprecated APIs are not removed before ???, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓❓❓ lol
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. That brings up the old discussion about what we promise as deprecation period. IIRC it was three years. Should I write it down or skip? |
||
| unless the breakage can not be avoided. | ||
|
|
||
| We highly recommend using the `Nextcloud Rector <https://packagist.org/packages/nextcloud/rector>`_ | ||
| rules, which can fix some API changes automatically. | ||
|
|
||
| .. | ||
| Add one section for each group of deprecations (e.g. group files api changes, authentication changes). | ||
| Also deprecate the feature at their dedicated documentation page. | ||
| After branch-off the contents below will be cleared. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ============= | ||
| Release notes | ||
| ============= | ||
|
|
||
| This section is for developers and maintainers who are familiar with an earlier version of the documentation. | ||
|
|
||
| Here we try to summarize what's new. You will find the breaking changes at :ref:`upgrade_to_34`, new deprecations at :ref:`deprecated-apis` and new API features at :ref:`new-apis`. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 3 | ||
|
|
||
| new | ||
| deprecations | ||
| ../app_publishing_maintenance/app_upgrade_guide/upgrade_to_34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| .. _new-apis: | ||
|
|
||
| =================== | ||
| New in this release | ||
| =================== | ||
|
|
||
| This pages covers new features of the platform. | ||
|
|
||
| .. | ||
| Add one section for each new feature. | ||
| Every feature should just have a brief description. Details have to be documented on a dedicated, persistent page. | ||
| After branch-off the contents below will be cleared. | ||
|
|
||
| Typed query builder | ||
| ------------------- | ||
|
|
||
| ``\OCP\DB\QueryBuilder\ITypedQueryBuilder`` was added in favour of ``\OCP\DB\QueryBuilder\IQueryBuilder`` and can be accessed through ``\OCP\IDBConnection::getTypedQueryBuilder``. | ||
|
|
||
| This query builder has the benefit of accurately returning the selected columns in a query result, increasing type safety. | ||
|
|
||
| .. todo:: This linked page does not have coverage for the new API. | ||
|
|
||
| See :ref:`database` for details. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also be a file per major for better linking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like it. This will get messy quickly. It also makes it impossible to have a stable link as every major release will have the version embedded in the URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could collect all current deprecations on this page. First we list the new ones, then there's the rest. When a deprecation is finally removed, it's also removed from the page.
It's equally messy, but there is one stable URL for the page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have a second page then for those?