Skip to content
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

Shorten long lines in VB REVIEW (3rd) AFTER #12489 DRAFT #12118

Draft
wants to merge 727 commits into
base: main
Choose a base branch
from

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Sep 11, 2024

Fixes VB Long lines

Proposed changes

  • shorten long lines in VB

Customer Impact

  • None

Regression?

  • No

Risk

-Minimal No code changes except formatting

Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 89.91445% with 224 lines in your changes missing coverage. Please review.

Project coverage is 75.86628%. Comparing base (441fb2a) to head (340c744).

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12118         +/-   ##
===================================================
+ Coverage   75.74060%   75.86628%   +0.12568%     
===================================================
  Files           3157        3161          +4     
  Lines         636104      638041       +1937     
  Branches       47003       47075         +72     
===================================================
+ Hits          481789      484058       +2269     
+ Misses        150854      150521        -333     
- Partials        3461        3462          +1     
Flag Coverage Δ
Debug 75.86628% <89.91445%> (+0.12568%) ⬆️
integration 18.16307% <7.95181%> (-0.01185%) ⬇️
production 49.52310% <73.01205%> (+0.21634%) ⬆️
test 97.05686% <100.00000%> (+0.01151%) ⬆️
unit 46.72742% <66.02410%> (+0.20812%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

---- 🚨 Try these New Features:

@Tanya-Solyanik Tanya-Solyanik added waiting-review This item is waiting on review by one or more members of team 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Sep 11, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 11, 2024
@paul1956 paul1956 changed the title Shorten long lines in VB review after fix issue#9807 Shorten long lines in VB REVIEW AFTER fix issue#9807 Sep 12, 2024
@LeafShi1 LeafShi1 added 📭 waiting-author-feedback The team requires more information from the author a11y-external An accessibility bug that is external to WinForms (for example, a Common Dialog in Win32) labels Sep 12, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 12, 2024
@Tanya-Solyanik Tanya-Solyanik added 📭 waiting-author-feedback The team requires more information from the author and removed a11y-external An accessibility bug that is external to WinForms (for example, a Common Dialog in Win32) labels Sep 12, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 13, 2024
Copy link
Member

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

@paul1956 - is this PR ready for a review, or are you still waiting to merge previous PRs? I would suggest factoring out parts of this PR that are not based on the previous changes and are dedicated only to comments and long code lines.


Imports NetInfoAlias = System.Net.NetworkInformation

Namespace Microsoft.VisualBasic.Devices
Copy link
Member

Choose a reason for hiding this comment

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

Why did you move this file, the namespace matches Microsoft\VisualBasic\Devices path. And this directory contains only 11 items, so it is manageable. I don't see a reason for this move.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previous Feedback to move classes into their own file

Copy link
Member

Choose a reason for hiding this comment

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

Into their own file, not into a new folder.

Copy link
Contributor Author

@paul1956 paul1956 Sep 14, 2024

Choose a reason for hiding this comment

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

@Tanya-Solyanik The entire focus of all the VB PR's was to fix the networking code. Putting it all together in a directory just make it simpler for me. Originally it was all in 1 file. I have moved them back.

Imports System.Threading
Imports Microsoft.VisualBasic.Devices.NetworkUtilities

Namespace Microsoft.VisualBasic.MyServices.Internal
Copy link
Member

Choose a reason for hiding this comment

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

Could you please pull out this refactoring from this PR into a separate one? It will be easier to review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Tanya-Solyanik It is, this PR should be reviewed in order then only 6 files core to the issue are changed, httpClientCopy is the whole purpose of this PR. I have changed everything to DRAFT except 1.

Sorry my lack of knowledge of PR process has caused you to do large reviews and almost null reviews.

Everything I have done is to get to this PR which has the critical fix as webClient is going to be made obsolete.

Copy link
Member

Choose a reason for hiding this comment

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

Did you factor out "critical fix as webClient"?

Copy link
Contributor Author

@paul1956 paul1956 Sep 14, 2024

Choose a reason for hiding this comment

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

Did you factor out "critical fix as webClient"?

@Tanya-Solyanik the Critical fix was to replace WebClient with HttpClient for both network upload and download.

WebCient was split into two parts the Upload part is currently unchanged because I have no acceptable way to test without 3rd party code/server (my prototype used public servers to test existing code). I created my own download server in the repo so I can test download and replaced WebClient with HttpClient for download only.

Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't test WebClient or HttpClient because we don't own them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Tanya-Solyanik the replacement needs to return the identical error codes to not be a breaking change. I am not testing WebClient or HttpClient by themselves just as they are used in NetworkDownload.


Imports System.Runtime.CompilerServices

<Assembly: InternalsVisibleTo("Microsoft.VisualBasic.Forms.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")>
Copy link
Member

Choose a reason for hiding this comment

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

Is this coming from another PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes one being discussed by @LeafShi1 and @KlausLoeffelmann

@Tanya-Solyanik Tanya-Solyanik added the 📭 waiting-author-feedback The team requires more information from the author label Sep 13, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 13, 2024
@paul1956 paul1956 changed the title Shorten long lines in VB REVIEW AFTER fix issue#9807 Shorten long lines in VB REVIEW AFTER fix issue#9807 DRAFT Sep 13, 2024
@Tanya-Solyanik Tanya-Solyanik added the draft draft PR label Sep 14, 2024
@Tanya-Solyanik Tanya-Solyanik marked this pull request as draft September 14, 2024 00:23
@paul1956 paul1956 changed the title Shorten long lines in VB REVIEW AFTER fix issue#9807 DRAFT Shorten long lines in VB REVIEW (4th) AFTER fix issue#9807 DRAFT Sep 16, 2024
@@ -109,7 +109,8 @@ public string LayoutName
}

/// <summary>
/// Returns the <see href="https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamew">
/// Returns the
/// <see href="https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamew">
/// keyboard layout identifier</see> of the current input language.
Copy link
Member

Choose a reason for hiding this comment

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

I think this better follows the pattern of the other see tags in the source code:

    /// <summary>
    ///  Returns the
    ///  <see href="https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamew">
    ///  keyboard layout identifier
    ///  </see>
    ///  of the current input language.
    /// </summary>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ricardobossan good feedback but why are you reviewing a draft PR? All the draft PRs depend on the previous ones. So there would be a tremendous amounts of duplicate work. There are 3 that need to merge before this one.

Copy link
Member

Choose a reason for hiding this comment

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

Because there were comments being made already. But I'll wait out next time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ricardobossan sorry that was my fault I did not understand the review process and only learned about Draft Friday.

There are several more I did without Draft that could be reviewed but I will need a little time at apply this comment to them.

Thanks for your understanding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ricardobossan opened a new PR #12151 based on main to just deal with this issue, there are just a few places where it does not follow the pattern. I will address expected merge conflicts in future PR's where they occur.

Zheng-Li01 and others added 27 commits November 5, 2024 11:30
…StripComboBoxFlatComboAdapter (dotnet#12394)

* Add code coverage for ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks

* Fixed the error

* Remove failed test case
* Update dependencies from https://github.com/dotnet/runtime build 20241103.1

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24552.2 -> To Version 10.0.0-alpha.1.24553.1

* Update dependencies from https://github.com/dotnet/runtime build 20241104.9

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24552.2 -> To Version 10.0.0-alpha.1.24554.9

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Update dependencies from https://github.com/dotnet/arcade build 20241104.2

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.CMake.Sdk , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.XUnitExtensions
 From Version 10.0.0-beta.24551.1 -> To Version 10.0.0-beta.24554.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
…dotnet#12418)

Add tests for VB Application Services Exceptions and fix UserTests.UserIdentity to use Auto Properties to stop compiler from giving suggestion.
[main] Update dependencies from dotnet/arcade
* Add code coverage for TrackBarRenderer

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks
[main] Update dependencies from dotnet/arcade
It doesn't really matter anymore and is creating extra maintenance cost as we add new APIs. Remove versioning.targets as it did very little and all over the override attributes.

See a discussion on this here: dotnet/runtime#44194
@paul1956 paul1956 changed the title Shorten long lines in VB REVIEW (3rd) AFTER fix issue#9807 DRAFT Shorten long lines in VB REVIEW (3rd) AFTER #12489 DRAFT Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft draft PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants