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

Fixes issue #9807 REVIEW (2nd) AFTER #12221 merged DRAFT #11867

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

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Aug 13, 2024

Fixes #9807

Proposed changes

  • Add Remove dependance on WebClient for VB FileDownload by using HttpClient
  • Add a Visual Basic Scratch Project so that Microsoft.VisualBasic.Forms dependent code can be tested from a Visual Basic project (even an empty WinForms project written in VB does not work)
  • Upload still uses WebClient that also needs to be done as a separate PR

Customer Impact

Adds Async file download support to VB, and if WebClient goes away this will allow existing Visual Basic programs using synchronous File Download to still work.
It also enable Async NetworkDownload is API is approved

Regression?

  • Yes when WebClient if and when goes away, no today

Risk

  • The code as is completely untested as I can't test without a working Scratch Project.
  • The existing code uses ICredentials in some of the paths, it is unclear how compatible that is between WebClient and HttpClient

Test methodology

Close to 100% Code Coverage Before and After change, original tests had no tests and there Error Message handling was odd

There are Exception Messages that need to move from WebClient to this PR and be translated.

Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 95.44264% with 87 lines in your changes missing coverage. Please review.

Project coverage is 75.79110%. Comparing base (21f6a05) to head (08df5f8).

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #11867         +/-   ##
===================================================
+ Coverage   75.69745%   75.79110%   +0.09364%     
===================================================
  Files           3151        3155          +4     
  Lines         635600      637344       +1744     
  Branches       46951       47025         +74     
===================================================
+ Hits          481133      483050       +1917     
+ Misses        151036      150853        -183     
- Partials        3431        3441         +10     
Flag Coverage Δ
Debug 75.79110% <95.44264%> (+0.09364%) ⬆️
integration 18.15091% <0.00000%> (-0.11644%) ⬇️
production 49.36994% <84.15301%> (+0.12906%) ⬆️
test 97.06217% <100.00000%> (+0.01163%) ⬆️
unit 46.46063% <84.15301%> (+0.24080%) ⬆️

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

@lonitra lonitra changed the base branch from feature/10.0 to main August 15, 2024 00:56
paul1956 and others added 30 commits October 30, 2024 22:31
[main] Update dependencies from dotnet/runtime
* Removing reference to ContextMenuStrip when dispose control

* Merge 'main' to current branch

* Detach ContextMenuStrip from control when executing Dispose

* Use pattern matching for judge variable menu
* Update InitializeComponent() template

* Removing extra namespace
…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.
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.

Refactor VB's Application Framework Network Class
5 participants