-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Corrected casing of Typo enum members (2nd attempt) #8499
base: dev
Are you sure you want to change the base?
Corrected casing of Typo enum members (2nd attempt) #8499
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8499 +/- ##
==========================================
+ Coverage 89.01% 89.07% +0.06%
==========================================
Files 411 411
Lines 12175 12175
Branches 2431 2431
==========================================
+ Hits 10837 10845 +8
+ Misses 803 796 -7
+ Partials 535 534 -1 ☔ View full report in Codecov by Sentry. |
I will let other team members to take a decision on this PR. |
I agree in theory but like @ScarletKuro said it would be super breaking. I don't really see the value gained in bikeshedding it at this point since it's functionally the same. I would keep it lowercase. |
For sure it's to follow html casing. |
The secondary reason for doing this PR it that it seemed like a good time, with all the breaking changes going on. My primary reason is that the lowercase names have been bothering me since I started using MudBlazor +-5 years ago, |
We had arguments for it and arguments against it. I have one for the middle ground. What if we make a non-breaking change in v7, obsolete the lowercase enum members and remove them in a later breaking release after the user base has had enough time and warning? |
How about I create a new PR that ONLY does this for now so that nothings breaks. Update: Not that good as intended because it'll raise compile errors, forcing people to still modify code.
|
Of course in our code base we'd have to replace all usages because warnings are errors for us. But that would be very easy to do with Find And Replace |
Only if you treat warnings as errors. Most don't do this. |
|
But what is ultimately gained from making this change? Even with advanced warning it still seems like pure busywork. Does it being lowercase break anyone's workflow? |
I guess I have no counter argument to that @danielchalmers ;) |
We have the 'Treat warnings as errors' enabled as well. Ultimately there is nothing to gain; things don't get faster or better, and I can also So, I think it then depends on how strict one would want to follow |
Refinements are great but you have to weigh the pros and cons. The con in this is breaking every user and also documentation like answers on StackOverflow etc. |
This reasoning is how we built a lot of code-debt over the years. |
This isn't code debt |
It is OK to disagree but please do it respectfully. Here is my take. I think we'll postpone discussion on this because there are a lot of things planned for v7 that are much more important, I'll admit. We may still do it later as we decided that we'll have regular breaking releases in the future. It is probably not much hussle for our users to make this change. A simple find and replace over the code base and it is done. |
Apologies if I came across disrespectfully, certainly not my intention. |
No worries :) |
Description
I've corrected the casing of the
Typo
enum members.e.g.
Typo.body1
->Typo.Body1
,Typo.subtitle1
->Typo.Subtitle1
and so on.The attributes are left untouched:
[Description("subtitle1")]
as this will wreak havoc in the Docs.How Has This Been Tested?
Visually; Browsing through the Docs and comparing it with the online Docs.
Types of changes
Checklist:
dev
).