winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Split Network.VB into 7 Files from PR #11863

Open paul1956 opened this issue 1 year ago • 3 comments

Proposed changes

  • Split Network.Vb in 7 files to prepare for replacement of WebClient for download

Customer Impact

  • Developer only improvement

Regression?

  • No

Risk

  • Minimal all tests from #11863 pass
Microsoft Reviewers: Open in CodeFlow

paul1956 avatar Sep 25 '24 21:09 paul1956

Codecov Report

Attention: Patch coverage is 6.58784% with 553 lines in your changes missing coverage. Please review.

Project coverage is 75.63889%. Comparing base (d223c9e) to head (72a8f30). Report is 5 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #12226          +/-   ##
====================================================
+ Coverage   49.20480%   75.63889%   +26.43409%     
====================================================
  Files           1985        3147        +1162     
  Lines         283954      635792      +351838     
  Branches       41730       47010        +5280     
====================================================
+ Hits          139719      480906      +341187     
- Misses        141535      151440        +9905     
- Partials        2700        3446         +746     
Flag Coverage Δ
Debug 75.63889% <6.58784%> (+26.43409%) :arrow_up:
integration 18.23820% <0.00000%> (-0.01352%) :arrow_down:
production 49.16450% <6.58784%> (-0.04031%) :arrow_down:
test 97.03085% <ø> (?)
unit 46.14524% <6.58784%> (-0.04640%) :arrow_down:

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

codecov[bot] avatar Sep 25 '24 22:09 codecov[bot]

Reviewer note: coverage is identical to current unmodified code. The tests are in a separate PR #12221 .

paul1956 avatar Sep 26 '24 03:09 paul1956

@KlausLoeffelmann there are no code changes in this PR, it just splits 1 large file into logical parts. Changes happen in follow on PR's. Having someone else do review might give you more time to work on other projects.

paul1956 avatar Oct 10 '24 20:10 paul1956

@Tanya-Solyanik would it be possible to prioritize this PR over my others. It mostly splits 1 file into 7 using VS code fixes. There is also some cleanup of privates from m_name to _Name to follow updated .Net naming guidelines. It should be possible to eliminate most of the locals but that seemed to me like too big a change without the tests, which is a separate PR that is waiting for Klaus.

paul1956 avatar Oct 24 '24 10:10 paul1956

@lonitra network.vb being completely rewritten in PR #11863 to replace WebClient which is obsolete. There are 3 separate (independent) pieces of functionality (upload, download and ping), in PR #11863 Async functions are also added in a separate file (PR review will decide if they ever become public). This allows the changes to be more isolated and the reviews simpler.

paul1956 avatar Oct 25 '24 21:10 paul1956