-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cosmos Samples issues #12571
Comments
@jongio , for notification. |
@Melanie-Ma - these are not samples - but rather just the code snippets used in documentation. |
@kushagraThapar - I agree that the code snippets are used in documentation. However, I think that the code documentation also need right example for users ′ reference. Therefore, I think the issue need to be fixed. |
@Melanie-Ma - For your #1 issue -> The reason we cannot use endpoints and keys in code snippets is because we cannot have real endpoints in the documentation. Regarding #2 -> @moderakh - please take a look at the analytical storage issue. |
Howdy - Sample code should be copy and paste-able. We aren't suggesting an actual endpoint, just code that will work if the user tries to use it. @Melanie-Ma - Would be great to see a PR for your suggestions. For the first issue. Can you open another issue for the second issue you found so we can track that separately? Thanks, |
@jongio - I think the argument is incorrect here. At first place, this is not sample code, this is code snippet. To treat code snippets as samples is incorrect in my opinion. Because the relative part of the code snippet that is present in the docs works correctly. We don't want users to look at these code snippets directly through source code, but rather through documentation. I think the directory structure is making it a wrong impression, because it says @srnagar @alzimmermsft - thoughts ? |
2 is not an issue in the SDK. you need to enable the feature on the service side before attempting to use it. |
Added examples for Microsoft.Solutions 2018-06-01 for S360 item. (#12571) * Added examples for Microsoft.Solutions 2018-06-01 for S360 item. * Added examples for Microsoft.Solutions 2018-06-01 for S360 item.
Section Link:
![image](https://user-images.githubusercontent.com/64007802/85942441-ed24dd00-b95b-11ea-8533-8fda3bab4350.png)
![image](https://user-images.githubusercontent.com/64007802/85942443-f31abe00-b95b-11ea-9def-00d0a64361de.png)
Reason:
Suggestion:
Update the code:
CosmosAsyncClient cosmosAsyncClient = new CosmosClientBuilder().buildAsyncClient();
to:
CosmosAsyncClient cosmosAsyncClient = new CosmosClientBuilder() .endpoint(TestConfigurations.HOST) .key(TestConfigurations.MASTER_KEY) .buildAsyncClient();
The text was updated successfully, but these errors were encountered: