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

Replace EnumValidator - Unit Tests and Changing the Validator #4782

Merged
2 commits merged into from
Jun 4, 2021

Conversation

wreuel
Copy link
Contributor

@wreuel wreuel commented Apr 13, 2021

Fixes #4639

Proposed changes

  • Created tests to Label and RadioButton
  • Remove Enum Validator on class

Customer Impact

  • None

Regression?

  • No

Risk

  • None

Test methodology

  • Unit Tests created before change

.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.2.21155.3
Commit: 1a9103db2d

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\

Host (useful for support):
Version: 6.0.0-preview.2.21154.6
Commit: 3eaf1f316b

.NET SDKs installed:
3.1.407 [C:\Program Files\dotnet\sdk]
5.0.104 [C:\Program Files\dotnet\sdk]
5.0.201 [C:\Program Files\dotnet\sdk]
6.0.100-preview.2.21155.3 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.2.21154.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Microsoft Reviewers: Open in CodeFlow

@wreuel wreuel requested a review from a team as a code owner April 13, 2021 09:10
@ghost ghost assigned wreuel Apr 13, 2021
@wreuel wreuel changed the title Task/replace enum validator Replace EnumValidator - Unit Tests and Changing the Validator Apr 13, 2021
@wreuel
Copy link
Contributor Author

wreuel commented Apr 13, 2021

@RussKie I couldn't do the squash to my 4 PR Merge (To Update my Fork), I did get it why, but I did for a new with all the code done. If you can recommend a doc or video on how to do the squash or on how to update my Fork, I would be gratefull.

@RussKie
Copy link
Member

RussKie commented Apr 13, 2021

There was no reason to close the other PR 😉
Please have a look at these guidelines, hopefully you'd find them helpful.

@RussKie
Copy link
Member

RussKie commented Apr 13, 2021

image

You still have 4 unrelated commits in the PR. The easiest way to remove those is to perform an interactive rebase on top of the latest main branch, dropping the unrelated commits.
It would look something like this:

  1. Fetch the latest main, e.g. git fetch --progress "remote" +refs/heads/main
  2. Rebase on to the latest main, e.g. git -c rebase.autoSquash=false rebase -i --autosquash <sha of the latest main HEAD>
  3. In the dialog drop irrelevant commits, e.g.
    image
  4. Force-push back into your fork.

@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label Apr 13, 2021
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Apr 28, 2021
@wreuel
Copy link
Contributor Author

wreuel commented Apr 28, 2021

Sorry my delay @RussKie, but now I think is good to go!

@AraHaan
Copy link
Member

AraHaan commented May 1, 2021

After thinking about it, should this get merged when #4809 is done? I will try to get it done as soon as I fix #4751 so then it will also unblock #4746.

But then again perhaps #4809 should be merged first, then this one rebase on top of that, and then that way this would remove that entire EnumValidator class the rest of the way.

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

👍
Few comments

@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label May 11, 2021
@RussKie
Copy link
Member

RussKie commented May 24, 2021

@wreuel a friendly nudge

@wreuel
Copy link
Contributor Author

wreuel commented May 24, 2021

@RussKie got a problem with my pc, and in the end I forgot this, gonna fix this week! 😃

@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label May 24, 2021
@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label May 25, 2021
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label May 25, 2021
@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label May 26, 2021
@RussKie RussKie force-pushed the task/ReplaceEnumValidator branch from 827914d to ec9943b Compare June 4, 2021 02:32
@RussKie RussKie force-pushed the task/ReplaceEnumValidator branch from ec9943b to 0cf6b94 Compare June 4, 2021 02:34
@RussKie RussKie added :octocat: automerge and removed 📭 waiting-author-feedback The team requires more information from the author labels Jun 4, 2021
@ghost
Copy link

ghost commented Jun 4, 2021

Hello @RussKie!

Because this pull request has the :octocat: automerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Happy to oblige

@ghost ghost merged commit 1841686 into dotnet:main Jun 4, 2021
@ghost ghost added this to the 6.0 Preview6 milestone Jun 4, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jan 28, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove remaining EnumValidator
3 participants