GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Clean Up Full CLR Code From Web Cmdlets by markekraus · Pull Request #5376 · PowerShell/PowerShell

Conversation

@markekraus

@markekraus Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

closes #5373
reference #4357
reference #3267

  • Removes/normalizes #ifdef code for Full CLR
  • Removes Full CLR files already marked for removal in Microsoft.PowerShell.Commands.Utility.csproj
  • Makes -UseBasicParsing parameter hidden.
  • Removes logic for -UseBasicParsing as the cmdlets now always basic parsing Webcmdlets should parse the <html><head><meta charset="foo"> attribute for the correct encoding if not in http header #3267 (comment)
  • Removes Format data for HtmlWebResponseObject
  • removes phantom properties Forms and ParsedHtml from format data for BasicHtmlWebResponseObject

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@markekraus
Mark Kraus (markekraus) requested review from James Truher (JamesWTruher), Paul Higinbotham (PaulHigin) and Dan Travison (dantraMSFT) as code owners November 8, 2017 10:59
@iSazonov

Ilya (iSazonov) commented Nov 8, 2017

Copy link
Copy Markdown
Collaborator

Mark Kraus (@markekraus) Could you please review all files and add a newline at EOF?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus

Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor Author

Ilya (@iSazonov) All of the files I modified in the PR have a newline EOF. Some of them did not have one before and just ended with #endif.

iSazonov reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Nov 8, 2017

Copy link
Copy Markdown
Member

Mark Kraus (@markekraus) does it make sense to move the files in common and CoreCLR to the parent and get rid of those subdirs?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus

Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor Author

Steve Lee (@SteveL-MSFT) If it were up to me. I would combine the core partials and the common partials and move them all to the parent webcmdlet folder. It would definitely make these a lot easier to work on since there is no FullCLR to contend with. I'm not sure if it makes sense to do that and this cleanup in the same PR, though. But I would definitely want it that way, whether in this PR or another.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iSazonov

Ilya (iSazonov) commented Nov 8, 2017

Copy link
Copy Markdown
Collaborator

I believe it is more easily and faster to review small PRs.
The PR LGTM and I vote to merge now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus

Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor Author

Ilya (@iSazonov) do you think I should do the merging of partials in one PR and then the file moves in another? otherwise... it will just look like I created new classes in parent folder and deleted old ones. Hard to see how they were put together. I could just do them as 2 commits in the same PR too.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Nov 8, 2017

Copy link
Copy Markdown
Member

Mark Kraus (@markekraus) use git mv and git will report the file was just moved

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus

Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor Author

Steve Lee (@SteveL-MSFT) as an example, I want to take WebCmdlet\Common\BasicHtmlWebResponseObject.Common.cs and WebCmdlet\CoreCLR\BasicHtmlWebResponseObject.CoreClr.cs, and combine them to WebCmdlet\BasicHtmlWebResponseObject.cs

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Nov 8, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Mark Kraus (@markekraus) I see, if you're combining files, I agree you should do that as a separate PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

SteveL-MSFT
Steve Lee (SteveL-MSFT) approved these changes Nov 8, 2017
View reviewed changes
@SteveL-MSFT Steve Lee (SteveL-MSFT) assigned Ilya (iSazonov) Nov 8, 2017
@markekraus

Mark Kraus (markekraus) commented Nov 8, 2017

Copy link
Copy Markdown
Contributor Author

Steve Lee (@SteveL-MSFT) for clarity, should I do 1 PR for combining, and another PR for the move? Or just do both in 1 PR (with 2 commits)?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Nov 8, 2017

Copy link
Copy Markdown
Member

Mark Kraus (@markekraus) I think you can just do 1 PR for combining/move and have them as separate commits

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus Mark Kraus (markekraus) mentioned this pull request Nov 8, 2017
Format data for BasicHtmlWebResponseObject contains ParsedHtml and Forms properties #5373
Closed
@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Nov 9, 2017

Copy link
Copy Markdown
Member

Mark Kraus (@markekraus) can you resolve the merge conflict? As discussed in the issue, we'll defer further clean-up work and should merge this once the merge conflict is resolved

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus
Clean up Full CLR code from Web Cmdlets
375a3c3
@markekraus
Mark Kraus (markekraus) force-pushed the WebCmdletsFullClrCleanup branch from e9d8a8f to 375a3c3 Compare November 9, 2017 01:51
@markekraus

Mark Kraus (markekraus) commented Nov 9, 2017

Copy link
Copy Markdown
Contributor Author

Steve Lee (@SteveL-MSFT) conflict resolved, but I just realized I never ran Feature tests in this PR. so running now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus
Mark Kraus (markekraus) force-pushed the WebCmdletsFullClrCleanup branch from 76edeff to 3ae8dcd Compare November 9, 2017 09:59
@markekraus

Mark Kraus (markekraus) commented Nov 9, 2017

Copy link
Copy Markdown
Contributor Author

The one of the fails (EventResource) in AppVeyor is appearing in all builds, not just this one. I assume it's a known issue.

The other is a timeout fail from httpbin.org (I will get those tests all moved over to WebListener someday).

As for Travis CI, it seems to be having unrelated issues

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iSazonov

Ilya (iSazonov) commented Nov 9, 2017

Copy link
Copy Markdown
Collaborator

Yes, we are waiting #5379 to pass CI AppVeyor.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markekraus
[Feature] Run Feature tests
b6cdbb1
* rerun CI
@markekraus
Mark Kraus (markekraus) force-pushed the WebCmdletsFullClrCleanup branch from 3ae8dcd to b6cdbb1 Compare November 10, 2017 01:02
@markekraus

Mark Kraus (markekraus) commented Nov 10, 2017

Copy link
Copy Markdown
Contributor Author

Ilya (@iSazonov) al tests pass now

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iSazonov
Ilya (iSazonov) merged commit f5f3fab into PowerShell:master Nov 10, 2017
@markekraus Mark Kraus (markekraus) mentioned this pull request Nov 21, 2017
Merge Web Cmdlet Partial Classes and Relocate to Common Path #5518
Closed
@markekraus
Mark Kraus (markekraus) deleted the WebCmdletsFullClrCleanup branch January 19, 2018 19:00
@ThreeFive-O ThreeFive-O mentioned this pull request Mar 23, 2019
Remove non-existent paths from csproj files #9214
Merged
7 of 11 tasks
@KalleOlaviNiemitalo Kalle Olavi Niemitalo (KalleOlaviNiemitalo) mentioned this pull request May 8, 2021
Changes to the HtmlDocument/HtmlElement class namespace dotnet/runtime#52498
Closed
@CarloToso CarloToso mentioned this pull request Feb 9, 2023
Merge partials in WebRequestPSCmdlet.Common.cs #19126
Merged
7 of 22 tasks
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
@markekraus @iSazonov
Clean Up Full CLR Code From Web Cmdlets (PowerShell#5376)
0375c18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@SteveL-MSFT Steve Lee (SteveL-MSFT) SteveL-MSFT approved these changes
@dantraMSFT Dan Travison (dantraMSFT) Awaiting requested review from dantraMSFT
@JamesWTruher James Truher (JamesWTruher) Awaiting requested review from JamesWTruher
@PaulHigin Paul Higinbotham (PaulHigin) Awaiting requested review from PaulHigin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@iSazonov Ilya (iSazonov)

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Format data for BasicHtmlWebResponseObject contains ParsedHtml and Forms properties

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@markekraus @iSazonov @SteveL-MSFT
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.