Repository navigation
Strike deprecated API operations everywhere and list them last #4988
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
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
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
11 changes: 11 additions & 0 deletions
11
src/Elastic.Documentation.Navigation/IDeprecatableNavigationItem.cs
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,11 @@ | ||
| // Licensed to Elasticsearch B.V under one or more agreements. | ||
| // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
| // See the LICENSE file in the project root for more information | ||
|
|
||
| namespace Elastic.Documentation.Navigation; | ||
|
|
||
| /// <summary>A navigation item the sidebar strikes through when it is deprecated.</summary> | ||
| public interface IDeprecatableNavigationItem : INavigationItem | ||
| { | ||
| bool Deprecated { get; } | ||
| } |
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
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
1 change: 1 addition & 0 deletions
1
...ests/.snapshots/ApiGroupDeprecationTests/Render_MixedGroupPage_ShowsNoBadge.verified.html
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 @@ | ||
| <h1>Mixed</h1> |
88 changes: 88 additions & 0 deletions
88
...DeprecationTests/Render_ProductLanding_StrikesRetiredGroupAndDeprecatedRows.verified.html
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,88 @@ | ||
| <h3 class="api-index-group-title"> | ||
| <a href="/api/test/group/endpoint-mixed" preload="mousedown">Mixed</a> | ||
| <span class="api-index-count">2</span> | ||
| </h3> | ||
| <ul class="api-index-list"> | ||
| <li> | ||
| <a class="api-index-item" href="/api/test/operation/operation-mixed-get" preload="mousedown"> | ||
| <span class="api-method api-method-get"> | ||
| <span class="api-method-icon" aria-hidden="true"> | ||
| <svg width="12" height="12" viewBox="0 0 12 12"> | ||
| <use href="#icon-api-arrow"></use> | ||
| </svg> | ||
| </span> | ||
| <span class="api-method-label">GET</span> | ||
| </span> | ||
| <span class="api-index-item-text"> | ||
| <span class="api-index-item-title">Get mixed</span> | ||
| <code class="api-index-item-path">/mixed/{id}</code> | ||
| </span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a class="api-index-item api-index-item--deprecated" href="/api/test/operation/operation-mixed-create" preload="mousedown"> | ||
| <span class="api-method api-method-post"> | ||
| <span class="api-method-icon" aria-hidden="true"> | ||
| <svg width="12" height="12" viewBox="0 0 12 12"> | ||
| <use href="#icon-api-arrow"></use> | ||
| </svg> | ||
| </span> | ||
| <span class="api-method-label">POST</span> | ||
| </span> | ||
| <span class="api-index-item-text"> | ||
| <span class="api-index-item-title"> | ||
| <s class="api-deprecated-title">Create mixed</s> | ||
| <span class="sr-only">Deprecated</span> | ||
| </span> | ||
| <code class="api-index-item-path">/mixed</code> | ||
| </span> | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| <h3 class="api-index-group-title"> | ||
| <a href="/api/test/group/endpoint-retired" preload="mousedown"> | ||
| <s class="api-deprecated-title">Retired</s> | ||
| <span class="sr-only">Deprecated</span> | ||
| </a> | ||
| <span class="api-index-count">2</span> | ||
| </h3> | ||
| <ul class="api-index-list"> | ||
| <li> | ||
| <a class="api-index-item api-index-item--deprecated" href="/api/test/operation/operation-retired-list" preload="mousedown"> | ||
| <span class="api-method api-method-get"> | ||
| <span class="api-method-icon" aria-hidden="true"> | ||
| <svg width="12" height="12" viewBox="0 0 12 12"> | ||
| <use href="#icon-api-arrow"></use> | ||
| </svg> | ||
| </span> | ||
| <span class="api-method-label">GET</span> | ||
| </span> | ||
| <span class="api-index-item-text"> | ||
| <span class="api-index-item-title"> | ||
| <s class="api-deprecated-title">List retired</s> | ||
| <span class="sr-only">Deprecated</span> | ||
| </span> | ||
| <code class="api-index-item-path">/retired</code> | ||
| </span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a class="api-index-item api-index-item--deprecated" href="/api/test/operation/operation-retired-delete" preload="mousedown"> | ||
| <span class="api-method api-method-delete"> | ||
| <span class="api-method-icon" aria-hidden="true"> | ||
| <svg width="12" height="12" viewBox="0 0 12 12"> | ||
| <use href="#icon-api-x"></use> | ||
| </svg> | ||
| </span> | ||
| <span class="api-method-label">DELETE</span> | ||
| </span> | ||
| <span class="api-index-item-text"> | ||
| <span class="api-index-item-title"> | ||
| <s class="api-deprecated-title">Delete retired</s> | ||
| <span class="sr-only">Deprecated</span> | ||
| </span> | ||
| <code class="api-index-item-path">/retired/{id}</code> | ||
| </span> | ||
| </a> | ||
| </li> | ||
| </ul> |
8 changes: 8 additions & 0 deletions
8
...recationTests/Render_RetiredGroupPage_ShowsTheDeprecatedBadgeBesideTheTitle.verified.html
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,8 @@ | ||
| <h1>Retired</h1> | ||
| <span class="api-title-badges"> | ||
| <span class="applies applies-inline"> | ||
| <span class="applicable-info api-badge--danger"> | ||
| <span class="applicable-name">Deprecated</span> | ||
| </span> | ||
| </span> | ||
| </span> |
23 changes: 23 additions & 0 deletions
23
...ApiGroupDeprecationTests/Render_RetiredGroup_StrikesItsSidebarFolder.legacy.verified.html
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 @@ | ||
| <a href="/api/test/group/endpoint-mixed" class="sidebar-link nav-folder-link font-semibold"> | ||
| <span>Mixed</span> | ||
| </a> | ||
| <label for="3F8FEE62" class="group/label flex mr-2 items-start"> | ||
| <div class="nav-toggle-btn"> | ||
| <svg class="nav-chevron" viewBox="0 0 24 24"> | ||
| <use href="#icon-chevron-down"></use> | ||
| </svg> | ||
| </div> | ||
| <input id="3F8FEE62" type="checkbox" class="hidden" aria-hidden="true"> | ||
| </label> | ||
| <a href="/api/test/group/endpoint-retired" class="sidebar-link nav-folder-link font-semibold nav-link--deprecated"> | ||
| <span>Retired</span> | ||
| <span class="sr-only">Deprecated</span> | ||
| </a> | ||
| <label for="5B720147" class="group/label flex mr-2 items-start"> | ||
| <div class="nav-toggle-btn"> | ||
| <svg class="nav-chevron" viewBox="0 0 24 24"> | ||
| <use href="#icon-chevron-down"></use> | ||
| </svg> | ||
| </div> | ||
| <input id="5B720147" type="checkbox" class="hidden" aria-hidden="true"> | ||
| </label> |
18 changes: 18 additions & 0 deletions
18
...piGroupDeprecationTests/Render_RetiredGroup_StrikesItsSidebarFolder.preview.verified.html
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 @@ | ||
| <span class="nav-tree__text">Operations</span> | ||
| <a class="nav-tree__link" href="/api/test/group/endpoint-mixed"> | ||
| <span class="nav-tree__text">Mixed</span> | ||
| </a> | ||
| <label class="nav-tree__chevron" for="3F8FEE62" aria-hidden="true"> | ||
| <svg class="icon icon--sm" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"> | ||
| <path fill-rule="evenodd" d="m8 10.293 5.646-5.647.708.708L8 11.707 1.646 5.354l.708-.708L8 10.293Z" clip-rule="evenodd"></path> | ||
| </svg> | ||
| </label> | ||
| <a class="nav-tree__link nav-tree__link--deprecated" href="/api/test/group/endpoint-retired"> | ||
| <span class="nav-tree__text">Retired</span> | ||
| <span class="sr-only">Deprecated</span> | ||
| </a> | ||
| <label class="nav-tree__chevron" for="5B720147" aria-hidden="true"> | ||
| <svg class="icon icon--sm" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"> | ||
| <path fill-rule="evenodd" d="m8 10.293 5.646-5.647.708.708L8 11.707 1.646 5.354l.708-.708L8 10.293Z" clip-rule="evenodd"></path> | ||
| </svg> | ||
| </label> |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.