-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Merge Web Cmdlet Partial Classes and Relocate to Common Path #5518
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
Conversation
* Merges all partial classs for the Web Cmdlets * Sets all Web Cmdlet Partial classes to non-partial clases. * sorts using statements
| <Compile Remove="commands\utility\ShowCommand\ShowCommandProxy.cs" /> | ||
| <Compile Remove="commands\utility\update-list.cs" /> | ||
| <Compile Remove="singleshell\installer\MshUtilityMshSnapin.cs" /> | ||
| <Compile Remove="commands\utility\WebCmdlet\Common\BasicHtmlWebResponseObject.Common.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing these files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have all been merged and then moved. They no longer need to live in separate files. The old paths are no longer there so I added them to the remove list, as I saw that was done for other files that are no longer in the project. I assumed it was to prevent the build process form picking them up in an unclean environment? If these entries here arn't needed, I can remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the files don't exist we should remove these enties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed them.
iSazonov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markekraus I believe after file merges we could replace some internal with private modifiers - can you confirm that you reviewed this?
| <Compile Remove="commands\utility\ShowCommand\ShowCommandProxy.cs" /> | ||
| <Compile Remove="commands\utility\update-list.cs" /> | ||
| <Compile Remove="singleshell\installer\MshUtilityMshSnapin.cs" /> | ||
| <Compile Remove="commands\utility\WebCmdlet\Common\BasicHtmlWebResponseObject.Common.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the files don't exist we should remove these enties.
|
@iSazonov I don't think merging partial classes makes any change to what is internal vs private. A partial class just means the class code is split between multiple files. The class can access its own members regardless of what file they are in. Private and internal would affect how the rest of the assembly accesses the class. I can look into it after the next set of cleanup PRs, but I don't think there will be any changes. |
|
@markekraus I don't found any issues with |
|
@iSazonov I have that kind of clean up planned for another PR. Other than Partial, I really did not want to mess with the code with hopes that it would be easy to see that it was just lifted from one file and put in another. As for move in separate PR. I asked before about this. I was told to do it in a single PR with 2 commits. The first commit is the merge, the second commit is the move. |
|
It is ok if we have only two commits. If more a code review becomes difficult. |
|
I'm ok with that. It makes sense to me. Only reservation i have is that the commit history of the repo then has a bunch of janitorial commits. |
|
Can I do anything to speed this PR along? I have been holding off on web cmdlets work because this will make them all have very odd rebasing. |
|
@markekraus I am very sorry the PR is very large for me to review accurately line by line. 😕 If nobody grub this I'll try on next week. (Or maybe split it on some small PRs). |
|
If you think splitting this into 2 PRs will speed up the process I will gladly do it. But if it will take 2 weeks for each PR, that wont help. I want to work on the web cmdlet back log for the holidays and this one needs to be cleared first, or I need to withdraw it completely and submit it later. Also, if I am to split this into separate PRs, to save time can we all agree on just how I should do that? I'm thinking 3 PRs would be the easiest to review:
|
|
@markekraus I think the main reason for the delay in such changes is that any reviewer immediately realizes that he's going to spend a very long time. I think the main problem with these changes is typos. We need at least two review to eliminate the risk of typos. We don't cover all the options with tests to fully trust them. I think your plan is good, if we're going to remove by one class. And yes - we're very slow. This is not only a problem of this open project. I guess it's a headache for the team. I don't know how to solve it, but we definitely have to do it if we want to use the resources of Komuniti to grow fast. /cc @joeyaiello @SteveL-MSFT |
|
If I'm doing a lift and shift, is there a need to look for typos? Especially if there is a cleanup action to follow? I understand some of the slowness and I'm aware of how rough this is for both us and the PS Team. I don't work in development or even close to it, so much of the entire process is new to me anyway. I'm not too concerned about that. My concern is how to use my time. The reason I mentioned this one being slow is because it is somewhat blocking to other things I could be doing. But if this will block for too long, I can just do those things now since I have time and save this for when I need a breather or don't have time. I'm not sure of your situation, but for mine my work doesn't exactly me provide me time to spend on this project. I fit PowerShell work in the tiny gaps I have at work and then use much of my own time outside of work. The minor improvement would be at least some communication on when certain PRs will take longer. That is some of my own inexperience in not knowing what is easier or harder to review and lack of familiarity with development processes. But that is also a problem when I have PRs that are sitting with passing tests and all comments addressed for long periods of time with no clue why. I don't want to bug or rush anyone, but I also don't want my PRs to fall through the cracks and be forgotten. Some back and forth communication in that regard would go a long way. I will close this PR and break up the work. |
|
#5610 to track this as separate PRs |
Full the same!!! Thank you for the exact wording. If we have an failure with CIs or a problem with build process, that time gaps is wasted, which is very pathetic. |
This is a continuation of Full CLR Cleanup for the Web Cmdlets. Ref #5376. This change does not add or remove any functionality.
partial classtoclassusingstatementsThis PR has 2 commits. The first merges the partial classes. The second moves all classes to
WebCmdletparent folder.Separate PRs will be done for sorting the classes and fixing formatting.