Skip to content

[Azure Search] Remove inheritdoc and improve SearchCredentials documentation#4516

Merged
bitsforthought merged 5 commits into
Azure:search-previewfrom
bitsforthought:search-creds
Jul 29, 2018
Merged

[Azure Search] Remove inheritdoc and improve SearchCredentials documentation#4516
bitsforthought merged 5 commits into
Azure:search-previewfrom
bitsforthought:search-creds

Conversation

@bitsforthought
Copy link
Copy Markdown
Member

@bitsforthought bitsforthought commented Jun 30, 2018

<inheritdoc /> is not supported by the .NET API browser. As a workaround, I'm copying documentation instead. Also adding more detail to SearchCredentials per feedback from Heidi.

Once this is in the preview SDK, I'll merge it back to the GA SDK.

FYI @HeidiSteen @Yahnoosh @mhko @jeji1101

Description


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

<inheritdoc /> is a feature of Sandcastle and is not supported by the current
.NET API Browser on docs.microsoft.com. The workaround is to copy the content
that would have otherwise been inherited from a base class/interface.
@HeidiSteen
Copy link
Copy Markdown
Contributor

minor inconsistancy -- not an error, just noting it: "otherwise, false" vs "false otherwise"
Customizations/Search/Models/ExtensibleEnum.cs
Lines 73 and 88

On the short parameter descriptions, some have periods and some don't
Customizations/DataSources/DataSourceOperations.Customization.cs
Customizations/Indexers/IndexersOperations.Customization.cs
Customizations/Indexes/IndexesOperations.Customization.cs

unfamiliar HTML code -- I've never seen
There are 9 instances -- maybe do a search on the PR?
Here is one:
Customizations/Indexers/IndexersOperations.Customization.cs
Line 64
true if the indexer exists; false otherwise.

@HeidiSteen
Copy link
Copy Markdown
Contributor

I approve the PR as long as the is valid HTML syntax.

@bitsforthought
Copy link
Copy Markdown
Member Author

@HeidiSteen Ironically, it's the tags you didn't recognize that turned out to be the correct ones. This is technically .NET XML docs, not HTML, which can fool me sometimes. Not all HTML tags are supported by the .NET API Browser. In this case, <c></c> is supported, because it's how references or emphasis is indicated in .NET XML docs. Looking at how the existing docs are rendered on docs.microsoft.com, it appears that <b></b> is not supported, so I'm going to replace all the b's with c's.

@bitsforthought bitsforthought requested review from mhko and updixit July 3, 2018 01:24
@bitsforthought
Copy link
Copy Markdown
Member Author

FYI @mhko and @updixit Please review as Heidi is out of the office until next week and I'd like to merge this week. Thanks!

/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing 'returns' tag

/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a 'returns' tag

/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null.
/// </exception>
/// <return>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tag is set to 'returns' at quite a few places. Please correct these.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like an issue with the generated code that copied over to the custom code. It's supposed to be <returns> everywhere. I'll fix it in the custom code. In the meantime, I've filed an issue on AutoRest: https://github.com/Azure/autorest/issues/2957

@bitsforthought
Copy link
Copy Markdown
Member Author

@UD1412 Would you mind approving using your other GitHub account, @updixit? The PR needs to be approved by an account with merge permissions to the search-preview branch.

@shahabhijeet
Copy link
Copy Markdown
Contributor

@brjohnstmsft @HeidiSteen is this ready to be merged.
We are in middle of upgrading our repo, so if this PR is ready to be merged, this has to be approved and merged today, else we will close this PR and you will need to open a new PR against the upgraded repo.

@HeidiSteen
Copy link
Copy Markdown
Contributor

#sign-off

1 similar comment
@updixit
Copy link
Copy Markdown

updixit commented Jul 13, 2018

#sign-off

@UD1412
Copy link
Copy Markdown

UD1412 commented Jul 13, 2018

#sign-off

@shahabhijeet
Copy link
Copy Markdown
Contributor

@azuresdkci retest this please

@bitsforthought bitsforthought merged commit 457c1b1 into Azure:search-preview Jul 29, 2018
@bitsforthought bitsforthought deleted the search-creds branch July 29, 2018 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants