FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert the PRs that made `DBNull.Value` and `NullString.Value` treated as `$null` by daxian-dbw · Pull Request #11584 · PowerShell/PowerShell · GitHub

Revert the PRs that made DBNull.Value and NullString.Value treated as $null - #11584

Merged
Aditya Patwardhan (adityapatwardhan) merged 5 commits into
PowerShell:release/v7.0.0-rc.2from
daxian-dbw:revert
Jan 15, 2020
Merged

Revert the PRs that made DBNull.Value and NullString.Value treated as $null#11584
Aditya Patwardhan (adityapatwardhan) merged 5 commits into
PowerShell:release/v7.0.0-rc.2from
daxian-dbw:revert

Conversation

Dongbo Wang (daxian-dbw) commented Jan 14, 2020
edited
Loading

Copy link
Copy Markdown
Member

PR Summary

Revert the PRs that made DBNull.Value and NullString.Value treated as $null:

Also update code for Coalescing and Null-conditional operators to use 'IsNull' instead.

PR Checklist

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Approved with nitpicks

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) You just need to review the 3rd commit. The previous 2 are from git revert those 2 PRs.

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) Travis Plunk (@TravisEz13) Also, the windows build failed at the packaging phase with a "calling method on null-value" error:

You cannot call a method on a null-valued expression.
at Invoke-CIFinish, D:\a\1\s\tools\ci.psm1: line 452
at <ScriptBlock>, D:\a\_temp\00413339-7785-4f63-ab8a-bab4a33c6cbe.ps1: line 4
at <ScriptBlock>, <No file>: line 1
You cannot call a method on a null-valued expression.
At D:\a\1\s\tools\ci.psm1:452 char:9
+         $previewLabel = $previewVersion[1].replace('.','')
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

See https://dev.azure.com/powershell/PowerShell/_build/results?buildId=43557&view=logs&j=1057fe42-c88b-5deb-88ad-59245c714665&t=1888043b-254d-5761-80ec-47d0d8adc59a

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) The PR is targetting RC.2 branch so it is auto approved for RC.

Merged this even though there were failures in Windows packaging as we have differences in content in metadata.json in RC.2 branch. It was fixed to unblock CI with PR #11372
We do not need to take this change to the RC.2 branch.

Dongbo Wang (daxian-dbw) added CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log CL-Engine Indicates that a PR should be marked as an engine change in the Change Log and removed CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log labels Jan 15, 2020

Copy link
Copy Markdown

🎉v7.0.0-rc.2 has been released which incorporates this pull request.:tada:

Handy links:

ili101 commented Jan 17, 2020

Copy link
Copy Markdown

Why was this reverted?
Is this final or are you planing to change it again in the future?
BTW probably should have been listed under the "Breaking Changes" category in the v7.0.0-rc.2 Release note.

Rain Sallow (/u/ta11ow) (vexx32) commented Jan 17, 2020
edited
Loading

Copy link
Copy Markdown
Collaborator

ili101 the change was never included in a stable release, so reverting it is not a breaking change. Please see this issue for discussion -- depending on what is decided by the PS team and community, the change may be reintroduced, likely with some alterations if it is, in a later release, likely at least 7.1 🙂

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL