Skip to content

Conversation

carlossanlop
Copy link
Contributor

@carlossanlop carlossanlop commented May 26, 2020

@steveharter @layomia @jozkee

We want area owners to learn the process of automatically porting new documentation using this tool, and we want people to get used to do this once a month for any new APIs, so they are available in the next Preview.

This PR is to show the commands they can use to run DocsPortingTool, in case they are not yet familiar with them, so you learn how to port documents in your area for the next preview.

Steps:

  1. I used this command first:
    .\DocsPortingTool.exe -Docs D:\dotnet-api-docs\xml\ -TripleSlash D:\runtime\artifacts\bin,D:\runtime\artifacts\bin\coreclr\Windows_NT.x64.Release\IL -Save true -IncludedAssemblies System.Text.Json

  2. Merged a commit for what was found in step 1, making sure it all looks ok.

  3. Then I ran this command on top of the already commited changes, to find exceptions:
    .\DocsPortingTool.exe -Docs D:\dotnet-api-docs\xml\ -TripleSlash D:\runtime\artifacts\bin,D:\runtime\artifacts\bin\coreclr\Windows_NT.x64.Release\IL -Save true -IncludedAssemblies System.Text.Json -SkipExceptions false
    Note: This command is noisy because the tool does not have an easy way to determine if an exception already exists in dotnet-api-docs or not, mainly because tends to change a lot compared to triple slash comments.

@carlossanlop carlossanlop added new-content Indicates PRs that contain new articles 🏁 Release: .NET 5 Identifies work items for the .NET 5 release labels May 26, 2020
@carlossanlop carlossanlop added this to the May 2020 milestone May 26, 2020
@carlossanlop carlossanlop self-assigned this May 26, 2020
@carlossanlop carlossanlop requested a review from a team May 26, 2020 20:59
@carlossanlop
Copy link
Contributor Author

ping @layomia @steveharter @jozkee @dotnet/docs can I get a review?

Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

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

I left a few suggestions that try to address some formatting issues.

@layomia
Copy link
Contributor

layomia commented Jun 2, 2020

Apologies for the delay. I wanted to note earlier that the ReferenceHandling API shape is changing in this PR dotnet/runtime#36829. Can we incorporate those changes in this PR once it goes in? cc @jozkee

<summary>This class defines how the <see cref="T:System.Text.Json.JsonSerializer" /> deals with references on serialization and deserialization.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
Copy link
Member

Choose a reason for hiding this comment

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

Few things here:

  • We recently removed Default property, is there something left to do here to avoid conflicts?
  • We also renamed ReferenceHandling to ReferenceHandler; same question as above.
  • Even though Default was removed, I think it is worth to salvage its remarks section and link that to the ReferenceHandler == null behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any API structure updates will be reflected after the next ref assembly batch gets uploaded to the Docs build. Until then, we can leave these changes here, and then you can address the updates as needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jozkee let's clean this up in a new batch that will include the new dictionary support, field support and others.

Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
Copy link
Contributor

@layomia layomia left a comment

Choose a reason for hiding this comment

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

A few comments, but LGTM. Stale APIs can be addressed in a follow up that will include upcoming features. Thanks!

<MemberValue>2</MemberValue>
<Docs>
<summary>To be added.</summary>
<summary>Property will always be serialized and deserialized, regardless of <see cref="P:System.Text.Json.JsonSerializerOptions.IgnoreNullValues" /> configuration.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<summary>Property will always be serialized and deserialized, regardless of <see cref="P:System.Text.Json.JsonSerializerOptions.IgnoreNullValues" /> configuration.</summary>
<summary>Property will always be serialized and deserialized, regardless of <see cref="P:System.Text.Json.JsonSerializerOptions.DefaultIgnoreCondition" /> configuration.</summary>

This will need to be changed when the docs for this property are added - https://github.com/dotnet/runtime/blob/master/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs#L239.

<summary>This class defines how the <see cref="T:System.Text.Json.JsonSerializer" /> deals with references on serialization and deserialization.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
Copy link
Contributor

Choose a reason for hiding this comment

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

@jozkee let's clean this up in a new batch that will include the new dictionary support, field support and others.

@gewarren
Copy link
Contributor

@carlossanlop What's the status on this PR? Hopefully we can push it through soon? Do you need help?

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Make list unordered.

gewarren and others added 2 commits August 3, 2020 14:34
Co-authored-by: David Cantu <dacantu@microsoft.com>
Co-authored-by: Layomi Akinrinade <layomia@gmail.com>
@gewarren gewarren merged commit 047317f into dotnet:master Aug 3, 2020
@carlossanlop carlossanlop deleted the Json50 branch September 15, 2020 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 5 Identifies work items for the .NET 5 release new-content Indicates PRs that contain new articles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants