Skip to content

Fix grammar, spelling, word casing, whitespace #9132

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jbampton
Copy link
Member

Description

This PR cleans up the code base and standardizes some terms for casing.

Fixes in exception messages, log messages, code comments and more.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copy link

codecov bot commented May 28, 2024

Codecov Report

Attention: Patch coverage is 5.88235% with 32 lines in your changes missing coverage. Please review.

Project coverage is 16.06%. Comparing base (b1ba9bf) to head (02d59c0).
Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
...he/cloudstack/api/command/user/vm/DeployVMCmd.java 0.00% 3 Missing ⚠️
...stack/engine/orchestration/VolumeOrchestrator.java 0.00% 2 Missing ⚠️
...command/admin/internallb/StartInternalLBVMCmd.java 0.00% 1 Missing ⚠️
.../command/admin/internallb/StopInternalLBVMCmd.java 0.00% 1 Missing ⚠️
...api/command/admin/systemvm/DestroySystemVmCmd.java 0.00% 1 Missing ⚠️
.../api/command/admin/systemvm/RebootSystemVmCmd.java 0.00% 1 Missing ⚠️
...k/api/command/admin/systemvm/ScaleSystemVMCmd.java 0.00% 1 Missing ⚠️
...k/api/command/admin/systemvm/StartSystemVMCmd.java 0.00% 1 Missing ⚠️
...ck/api/command/admin/systemvm/StopSystemVmCmd.java 0.00% 1 Missing ⚠️
...api/command/admin/systemvm/UpgradeSystemVMCmd.java 0.00% 1 Missing ⚠️
... and 19 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9132      +/-   ##
============================================
- Coverage     16.06%   16.06%   -0.01%     
+ Complexity    12872    12871       -1     
============================================
  Files          5642     5642              
  Lines        493953   493953              
  Branches      59889    59889              
============================================
- Hits          79351    79350       -1     
- Misses       405817   405818       +1     
  Partials       8785     8785              
Flag Coverage Δ
uitests 4.01% <ø> (ø)
unittests 16.90% <5.88%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

I immagine I missed a few, and in dutch (intended mistake) these would be considered shouting, but for consistency some sugestions...

Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

jbampton and others added 7 commits July 10, 2024 21:05
…ployVMCmd.java

Co-authored-by: dahn <daan.hoogland@gmail.com>
…ployVMCmd.java

Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
…ache/cloudstack/network/contrail/management/ServiceManagerImpl.java

Co-authored-by: dahn <daan.hoogland@gmail.com>
…/commands/StopNetScalerVMCmd.java

Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
@@ -134,7 +134,7 @@ private ServiceVirtualMachine createServiceVM(DataCenter zone, Account owner, Vi
} catch (InsufficientCapacityException ex) {
throw new CloudRuntimeException("Insufficient capacity", ex);
}
CallContext.current().setEventDetails("Vm Id: " + svm.getId());
CallContext.current().setEventDetails("VM ID: " + svm.getId());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
CallContext.current().setEventDetails("VM ID: " + svm.getId());
CallContext.current().setEventDetails("VM Id: " + svm.getId());

Copy link
Contributor

Choose a reason for hiding this comment

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

@FelipeM525 , 'ID' is an acronym for 'identification' according to english rules it should be capatalised. Am I correct @jbampton ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@DaanHoogland

I agree with capitalizing both letters, but, regardless of what convention we use (both capitalized or not), there should be a convention. Currently, this PR, that has a focus on fixing word casing inconsistencies, is doing the opposite, by changing some instances of Id to ID and leaving others as they are. Either all instances of the word in this PR should be ID or all should be Id.

Copy link
Contributor

Choose a reason for hiding this comment

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

well, agree to disagree. I am happy to conform to conventions, but these are completely unnecessary and gratuit. I am leaving this with the embedded English speaker(s) ;)

@jbampton jbampton marked this pull request as draft October 14, 2024 12:46
@jbampton
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11340

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11418

Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@DaanHoogland
Copy link
Contributor

@GaOrtiga @FelipeM525 @JoaoJandre , @jbampton is the only native english speaker active on this ticket. As contributor we have are specialities and as coders we get to decide on coding stardards, but not on English language standards, so I suggest we go with @jbampton 's suggestions where it come to log messages. What do you guys think?

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11864

@JoaoJandre
Copy link
Contributor

@GaOrtiga @FelipeM525 @JoaoJandre , @jbampton is the only native english speaker active on this ticket. As contributor we have are specialities and as coders we get to decide on coding stardards, but not on English language standards, so I suggest we go with @jbampton 's suggestions where it come to log messages. What do you guys think?

@DaanHoogland, what @FelipeM525 and @GaOrtiga were pointing out in this comment #9132 (comment), is that, in some changed lines, the abbreviation (it is not an acronym) ID is left as Id (such as in line 106 of api/src/main/java/org/apache/cloudstack/api/command/admin/internallb/StartInternalLBVMCmd.java), whereas in other lines, it is changed to ID (such as line 137 of plugins/network-elements/juniper-contrail/src/main/java/org/apache/cloudstack/network/contrail/management/ServiceManagerImpl.java).

I agree that the correct abbreviation is ID, and not Id, and thus, my suggestion is to change all occurrences of Id to ID (at least in the lines that this PR is touching).

In any case, I would refrain from going for "argumentum ad verecundiam", as this is not a healthy way of solving conflicts in a community. @jbampton may be a native speaker, but he is not perfect, and non-native speakers may catch errors in his English nonetheless.

@jbampton jbampton mentioned this pull request Dec 31, 2024
13 tasks
@DaanHoogland
Copy link
Contributor

@jbampton (cc @JoaoJandre ) is there anything to discuss on this or a guideline to codify somewhere, still?

Is it maybe possible to split this PR into smaller chunks so we can merge the parts where no discussion is being held about?

@JoaoJandre
Copy link
Contributor

@jbampton (cc @JoaoJandre ) is there anything to discuss on this or a guideline to codify somewhere, still?

Is it maybe possible to split this PR into smaller chunks so we can merge the parts where no discussion is being held about?

@DaanHoogland I think we all agree that the abbreviation for identification should be ID and not Id, right? is there anything to discuss here?

@DaanHoogland
Copy link
Contributor

@jbampton (cc @JoaoJandre ) is there anything to discuss on this or a guideline to codify somewhere, still?
Is it maybe possible to split this PR into smaller chunks so we can merge the parts where no discussion is being held about?

@DaanHoogland I think we all agree that the abbreviation for identification should be ID and not Id, right? is there anything to discuss here?

If nothing is blocking this PR anymore, no (cc @FelipeM525 )

@JoaoJandre
Copy link
Contributor

JoaoJandre commented Jan 2, 2025

@jbampton (cc @JoaoJandre ) is there anything to discuss on this or a guideline to codify somewhere, still?
Is it maybe possible to split this PR into smaller chunks so we can merge the parts where no discussion is being held about?

@DaanHoogland I think we all agree that the abbreviation for identification should be ID and not Id, right? is there anything to discuss here?

If nothing is blocking this PR anymore, no (cc @FelipeM525 )

@DaanHoogland , in my last message I pointed out that there are parts of the PR where ID is written as "ID", and some other parts where it is written as "Id". I mean, that is what we all (me, @FelipeM525 and @GaOrtiga) have been pointing out so far. We are trying to say that the author should fix it.

Copy link

github-actions bot commented Jan 8, 2025

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants