Skip to content

Update IgnoreNullValues obsoletion message - #41141

Merged
layomia merged 2 commits into
dotnet:masterfrom
layomia:ignore_condition
Aug 28, 2020
Merged

layomia merged 2 commits into
dotnet:masterfrom
layomia:ignore_condition

Conversation

@layomia

@layomia layomia commented Aug 21, 2020

Copy link
Copy Markdown
Contributor

Should have been part of #39388.

@layomia layomia added this to the 5.0.0 milestone Aug 21, 2020
@layomia
layomia requested a review from ericstj August 21, 2020 03:48
@layomia layomia self-assigned this Aug 21, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this also be added to the ref?

@layomia layomia Aug 28, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes it should. @safern, I had to manually add the attributes in 3989b19; using /t:GenerateReferenceSource did not update the property with the attributes. Is this expected?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ObsoleteAttribute is part of: https://github.com/dotnet/runtime/blob/master/eng/DefaultGenApiDocIds.txt#L57 which causes the tools to ignore these attributes. We haven't enforced this attribute on both the ref and the src, we just care about it on the ref. However, I think we should start enforcing that as that could potentially cause miss matches or us forgetting to include them on the ref.

@layomia
layomia requested a review from ericstj August 28, 2020 17:51
@layomia
layomia merged commit 56585a6 into dotnet:master Aug 28, 2020
@layomia
layomia deleted the ignore_condition branch August 28, 2020 20:39
@layomia

layomia commented Aug 28, 2020

Copy link
Copy Markdown
Contributor Author

/backport to release/5.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/229313545

@github-actions

Copy link
Copy Markdown
Contributor

@layomia backporting to release/5.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Update IgnoreNullValues obsoletion message
Applying: Add attributes to ref file
error: sha1 information is lacking or useless (src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 Add attributes to ref file
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@layomia
layomia restored the ignore_condition branch August 28, 2020 21:39
@layomia

layomia commented Aug 28, 2020

Copy link
Copy Markdown
Contributor Author

/backport to release/5.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/229316735

@github-actions

Copy link
Copy Markdown
Contributor

@layomia backporting to release/5.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Update IgnoreNullValues obsoletion message
Applying: Add attributes to ref file
error: sha1 information is lacking or useless (src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 Add attributes to ref file
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

layomia added a commit to layomia/dotnet_runtime that referenced this pull request Aug 28, 2020
* Update IgnoreNullValues obsoletion message

* Add attributes to ref file
@layomia
layomia deleted the ignore_condition branch August 28, 2020 22:29
layomia added a commit that referenced this pull request Aug 30, 2020
* Update IgnoreNullValues obsoletion message (#41141)

* Update IgnoreNullValues obsoletion message

* Add attributes to ref file

* Remove obsolete attribute from IgnoreNullValues
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@jeffhandley jeffhandley added the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Apr 23, 2021
@ghost ghost added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Apr 23, 2021
@jeffhandley

Copy link
Copy Markdown
Member

The obsoletion breaking change will be covered by dotnet/docs#23856.

@jeffhandley jeffhandley removed the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.Json breaking-change Issue or PR that represents a breaking API or functional change over a previous release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants